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
AlcAnderson感谢家人对他写作的支持.a他觉得与Ryan合作是件幸运的事.aAl是萨利什库特奈大学的学术IT服务主任,1教授网络服务、网络
在不久的将来,“智能”科技与“大数据”将更大规模地、无微不至地介入我们的政治、文化和日常生活。数字化生存的诱惑就在于,人
《江苏历代文化名人传·丁文江》内容简介:本书主要从“科学”与“近代化”两方面展现了地质学家、社会活动家丁文江波澜壮阔的一生
《跨海之战》内容简介:金门、海南和一江山三次跨海之战经历了一个相当复杂的过程。以三次战争为线索,体现国共双方在战略方针的较
成功的网站设计团队依赖开发人员与客户之间的良好沟通,也离不开开发团队内部成员之间的沟通。线框图、站点地图、流程图和其他设
《演化经济学与经济学的演进》内容简介:在生态经济学方面,本书从生态经济学学科基础和前沿应用方面对其学科进行了介绍和分析,从
《世界是設計》與構思設計本身的面向有關。在此,不把設計理解為精製、美化、裝飾。設計一字的最初意義隱含構思起草。設計首先是
伊达千代,日本知名专业平面设计师。于2007年设立TARTDESIGN,并从事与平面设计相关的教学。著有《设计的原理》等多种设计相关书
《中国经济的未来:热点、难点和增长点》内容简介:《中国经济的未来:热点、难点、增长点》是中国知名经济学家魏杰对中国经济热点
MichaelMorrison与电脑世界结下不解之缘的开端,就是他的第一台个人电脑TI-99/4A,配件包括至高无上的人体工程学键盘、黑白TV“显
《当戈壁遇见长江》内容简介:戈壁挑战赛是中国企业家的练兵场,是对个人意志、体能素质、战略战术和团队协作等方面的综合考验。在
《管理者如何让人长期追随》内容简介:◆管理者如何让人长期追随!只需要躲开这21种低级错误! ◆一堂价值25万美金的管理课程! ◆
《最新考博英语命题人高分策略:翻译强化特训》内容简介:博士研究生入学英语考试主要测试听力、语法、词汇、阅读理解、完形填空、
《崛起的中国数字经济(2018Number1)》内容简介:去中介化(Disintermediation)、分散化(Disaggregation)和非物质化(De...
《李小龙信札:功夫、表演和生命》内容简介:这本信札集记载了李小龙从赴美国求学到在香港逝世之间的十五年珍贵时光。在这些寄给家
《传播学原来很有趣:16位大师的精华课》内容简介:本书围绕生活中经常出现的传播学现象,选取了16位享誉世界的传播学大师,把他们
在线阅读本书BookDescriptionInthisrevolutionarybestseller,HarvardprofessorClaytonM.Chri...
《界:我奋斗的路》内容简介:本书为自传,分农村锻炼篇、香港学艺篇、回沪创业篇、回馈故乡篇四个部分,讲述了作者从上海到浙江慈
《神探夏洛克·1》内容简介:《神探夏洛克》是近年上映的英剧逸品,主演“卷福”(本尼迪克特康伯巴奇)“花生”(马丁弗瑞曼)凭借
《无线通信》重点论述当前各类无线通信系统中具有普遍性和代表性的基本知识,包括基本的理论、问题、设计思路和分析方法。全书内