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
《中国农村:从小康到全面小康》内容简介:实现小康社会,是几千年中国人的梦想。全面小康,是小康的升级版,其本质依然是小康。按
《下一代移动网络应用:在Web2.0和Mobile2.0环境中创建移动应用(第2版)》为无线移动领域的从业人员提供一种思考以及应对日益复杂的
《JavaScript模式》包含了实现每个讨论的模式的实践建议,并附有数个可以立即上手的范例。同时还可以学到一些反模式,一些常见的
本书详细介绍Windows图形系统,包括Win32GDI和DirectDrawAPI的技术细节:设备环境、坐标空间和变换、像素、填充区域、位图、图像
京都的料理、京都的神社、京都的雜貨、京都的甜點、京都的楓葉、京都的建築、京都的咖啡……在體驗過這些之後,那些靜靜矗立在街
《孩子们的小提琴练习曲3(缩编版)》内容简介:本书包括了沃尔法特、开塞、马扎斯、顿特、克莱采尔的练习曲,这些练习曲接近按照技
云计算落地已成事实。从前几年的概念普及,到如今越来越多的企业将业务迁移至云上,云计算正在改变整个社会的信息资源使用观念和
《前期与后期》内容简介:☆清华国学研究院副院长刘东教授 ☆以独特视角探讨学者从前期到后期的发展 断裂还是延续?一生中的前期与
《颠覆式学习》内容简介:人工智能的进步咄咄逼人,似乎在不远的未来将让我们中的许多人失业。但我们当然不想坐以待毙,而且我们还
《我的小小团》内容简介:“烽火少年”系列讲述了发生在一群抗日儿童团成员身上的故事,以儿童的视角,描绘抗日战争期间发生在战地
《空间的语言》介绍了:这部独特的理论著作为我们提供了一个完事的建筑空间理念论述。布莱恩·劳森用最精炼通俗的语言对这个理念
《产后恢复专业培训教材》内容简介:女性在生产完毕之后,常常会因为身体过于虚弱而需要一定的恢复和保养,这种恢复和保养被称为产
《我读:温一壶月光下酒》内容简介:《我读:温一壶月光下酒》是由梁文道主讲的书评集。《开卷八分钟》自2007年1月1日开播,2014年
《神探夏洛克·1》内容简介:《神探夏洛克》是近年上映的英剧逸品,主演“卷福”(本尼迪克特康伯巴奇)“花生”(马丁弗瑞曼)凭借
《婚礼策划实务与主题攻略》内容简介:本书根据多名婚礼策划者多年的从业经验,精选出21个具有代表性的婚礼主题,希望能够帮助有婚
《政德论:心理结构与伦理行动的二重维度》内容简介:本书在梳理“政德”内涵的历史演进的基础上,从伦理结构、心理结构和道德领导
国务院发展研究中心新经济导刊中国社会科学院信息化研究中心国家信息中心信息化研究部中国互联网协会分享经济工作委员会腾讯研究
Spring框架是主要的开源应用程序开发框架,它使得Java/J2EE开发更容易、效率更高。本书不仅向读者展示了Spring能做什么?而且揭示
《计算广告(第2版)》内容简介:计算广告是一项新兴的研究课题,它涉及大规模搜索和文本分析、信息获取、统计模型、机器学习、分类
《复杂数据统计方法——基于r的应用》用自由的日软件分析30多个可以从国外网站下载的真实数据,包括横截面数据、纵向数据和时间序