How Ruby Works Under the Hood
Ruby is a powerful programming language with a focus on simplicity, but beneath its elegant syntax it performs countless unseen tasks.
Ruby Under a Microscope gives you a hands-on look at Ruby’s core, using extensive diagrams and thorough explanations to show you how Ruby is implemented (no C skills required). Author Pat Shaughnessy takes a scientific approach, laying out a series of experiments with Ruby code to take you behind the scenes of how programming languages work. You’ll even find information on JRuby and Rubinius (two alternative implementations of Ruby), as well as in-depth explorations of Ruby’s garbage collection algorithm.
Ruby Under a Microscope will teach you:
How a few computer science concepts underpin Ruby’s complex implementation
How Ruby executes your code using a virtual machine
How classes and modules are the same inside Ruby
How Ruby employs algorithms originally developed for Lisp
How Ruby uses grammar rules to parse and understand your code
How your Ruby code is translated into a different language by a compiler
No programming language needs to be a black box. Whether you’re already intrigued by language implementation or just want to dig deeper into Ruby, you’ll find Ruby Under a Microscope a fascinating way to become a better programmer.
Covers Ruby 2.x, 1.9 and 1.8
Foreword by Aaron Patterson
Acknowledgments
Introduction
Chapter 1: Tokenization and Parsing
Chapter 2: Compilation
Chapter 3: How Ruby Executes Your Code
Chapter 4: Control Structures and Method Dispatch
Chapter 5: Objects and Classes
Chapter 6: Method Lookup and Constant Lookup
Chapter 7: The Hash Table: The Workhorse of Ruby Internals
Chapter 8: How Ruby Borrowed a Decades-Old Idea from Lisp
Chapter 9: Metaprogramming
Chapter 10: JRuby: Ruby on the JVM
Chapter 11: Rubinius: Ruby Implemented with Ruby
Chapter 12: Garbage Collection in MRI, JRuby, and Rubinius
Index
ASP.NET程序设计教程 本书特色 《ASP.NET程序设计教程》共分四部分,由12章组成,**部分是ASP.NET基础部分。本部分讲述了ASP.NET基础知...
Inthisfollow-uptohisbestsellingbookExperientialMarketing,BerndSchmittintroducest...
《《辽史》探源》内容简介:本书希望重新对元修《辽史》的史源问题加以全面检讨,其中的学术旨趣主要有三:其一,系统深入地考证《
《财务共享的智能化升级:业财税一体化的深度融合》内容简介:财务共享是数字技术和管理变革的共同产物,是解决企业规模不断扩大的
《全球治理中的中国与上海:上海对接“一带一路”》内容简介:随着广泛参与全球治理,与世界深度联通,我国面临来自内外部的机遇和
《WCDMA关键技术详解》全面、深入地介绍了WCDMA系统核心技术的各个方面。《WCDMA关键技术详解》所涉及的技术细节分析包括:系统结
《让品牌说话:品牌营销高效准则》内容简介:这本书从“道”的角度说起,先从品牌营销的本质核心入手,让读者心中能有一个框架逻辑
GNUEmacsisthemostpopularandwidespreadoftheEmacsfamilyofeditors.Itisalsothemostpo...
Thisbookisapracticalguidefilledwithreal-worldexamplesthatwillhelpyoudiscovertheb...
大型强子对撞机(LHC)坐落于欧洲核子研究中心(CERN),在瑞士和法国交界处的乡村地下25.659千米长的环形隧道中。它的宏伟目标是
《口水民国:民国名人的笔墨官司》内容简介:本书主要围绕民国时期的口水公案、笔墨官司,详细叙述了民国时期学界、政界、工商界等
《明诗鉴赏》内容简介:《明诗鉴赏》是“新选中国名诗1000首”丛书中的一种,是由首都师范大学教育部长江学者特聘教授左东岭注评。
《数据挖掘(第2版)》较全面系统地介绍了数据挖掘中常用和常见的数据挖掘方法,以及文本与视频数据挖掘方法。《数据挖掘(第2版)》
《OpenShift在企业中的实践(第2版)》内容简介:本书以红帽OpenShift v4为核心编写,从客户的数字化转型入手,介绍如何通过OpenSh
《Scala编程(第5版)》内容简介:本书由直接参与Scala开发的一线人员编写,深入介绍Scala这门结合面向对象和函数式的编程语言的核
ScalatraisalightweightframeworkforbuildingwebapplicationsandAPIsthatadheretotheR...
《3D打印:从全面了解到亲手制作》一书不仅向读者全面介绍3D打印这一新兴技术,同时通过详细的引导,帮助零基础的爱好者们组装一
《齐梁皇室的佛教信仰与撰述》内容简介:兰陵萧氏作为齐梁皇室,在南朝的政治史、佛教史以及文学史上都有独特的位置,历来都是南北
《Android开发艺术探索》是一本Android进阶类书籍,采用理论、源码和实践相结合的方式来阐述高水准的Android应用开发要点。《And
《古画的故事(中华文化故事)》内容简介:《古画的故事》以时间为序,精选从石器时期代到11世纪之前的58幅经典绘画作品,既有彩陶