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
《你就适可而止吧》内容简介:自以为聪明的吝啬,送礼就送一箱奶。一言不合就毒舌,情伤要绝食?跳楼吧!比较快。维持表面风光生活
《日本外务省藏档(二)》内容简介:本册文件集编纂收录的资料来自于日本亚洲历史资料中心所藏日本外务省档案和《日本外交文书》,
vim是一款功能丰富而强大的文本编辑器,其代码补全、编译及错误跳转等方便编程的功能特别丰富,在程序员中得到非常广泛的使用。v
《国际平面设计基础教程6:PRINT&FINISH印前印后》的每一个章节都主要讨论各种各样的印刷工艺和后期加工工艺。同时,章节中尽可能
《华与华使用说明书》内容简介:华与华为什么成功?因为它始终坚持为客户负责的原则,做客户需要的,而不只是给客户想要的。你如果
WhatsInside*HowRubyandRailswork,separatelyandtogether*ExtensiveRubylanguagetutor...
《温莎墓园日记》内容简介:“有人抑制不住惊叹,难道爱情真是,真是可能的吗……”木心散文小说系列之《温莎墓园日记》,经过年近
Java Script&Dynamic HTML 语法辞典 内容简介 本书实例主要在windows vista、internet explorer7.0、fir...
《闲言碎语》内容简介:本书是知名设计师历经7年沉淀的设计思路与方法论集合,其中既保留了个人的情绪与判断,也时常回想笔者多年来
《财经写作》内容简介:本书融入了应用写作“国家级精品资源共享课程 ”建设的探索成果,注重学生写作思维的训练和培养,以“公文正
本书全面介绍了经典的和现代的网络流技术,包括综合的理论、算法与应用。主要内容包括:路径、树与周期,算法设计与分析,最大流
《金融促进高质量发展之路》内容简介:随着我国经济不断发展,国家综合实力不断提升,加之受新冠肺炎疫情的影响,金融业发展在我国
本书为日本公认的最好的Ruby入门教程。松本行弘亲自审校并作序推荐。本书支持最新的Ruby2.0,也附带讲解了可运行于1.9版本的代码
《Java并发编程实战》内容简介:本书深入浅出地介绍了Java线程和并发,是一本完美的Java并发参考手册。书中从并发性和线程安全性的
《工业4.0落地之道》内容简介:本书作者基于其青岛中德生态园建设咨询专家团成员的身份与经验,对工业4.0的来龙去脉、工业4.0的具体
《钢琴套曲·胡桃夹子》内容简介:本书根据前苏联作曲家普罗科菲耶夫与1936年所作交响童话《彼得与狼》(作品67)而改编的钢琴套曲
《中国至2050年信息科技发展路线图》根据国家战略需求和科学技术发展的宏观规律,对信息科学技术未来40年的发展趋势和我国应选择
本书综合商业专业知识和数据挖掘模型开发于一体,系统地介绍了数据挖掘商业环境、数据挖掘技术及其在商业中的应用。在注重对数据
《东亚《诗经》学研究(精)》内容简介:本书为作者多年来有关《诗经》研究之部分成果,共收入十篇论文,内容涉及中、日、韩三地之
《天神和人》内容简介:本书讲述中西方的神话故事,主要是西方的希腊神话中宇宙体系的构建者和中华文明的古老神话中关于宇宙形成的