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
《海德格尔域性时间思想研究》内容简介:本书主要采用文本细读、与其他论著作者进行对话、对时间思想史进行梳理的方式来研究海德格
如果你希望通过并发编程来充分发挥多核处理器的强大功能,那么本书将为你提供所需的理论知识和实际经验。《并发的艺术》是为数不
《江南古典私家园林》内容简介:中国江南,自然山水秀美,物产丰饶,自魏晋以来一直是一方富庶的乐土。明清以降,更是文人巨贾会聚
SOLIDWORKS高级曲面教程-2015版 本书特色 美国ds solidworks公司所著的《solidworks高 级曲面教程》(2015版)根据soli...
《玩的就是调侃:打造你的金牌博客》按博客的主要内容,将纷繁复杂的博客群体划分为五大类,一一介绍,每章通过对该类博客总体情况
Youdontneedprogrammingexperiencetoaddinteractiveandvisualeffectstoyourwebpageswi...
《分科的学史与历史》内容简介:今天以前的一切都是历史,因而历史本不分科,况且中国治学讲究贯通,素来不重分科。可是今日的史学
《杰出青少年的哈佛智商》内容简介:本书从介绍智力的各个方面考虑,为家长和孩子提供切实可行的有效方法,对兴趣和智力的作用、非
《刘安评传(增订本)》内容简介:《刘安平传(增订本)》是一部以思想为着重点对西汉淮南王刘安进行全面评论的专著。书中对刘安其
《生命3.0》内容简介:在人工智能崛起的当下,你希望看到一个什么样的未来?当超越人类智慧的人工智能出现时,人类将何去何从?你是
《Web2.0策划指南(影印版)》是讲述战略的。书中的示例关注的是Web20的效率,而不聚焦于技术。你将了解到这样一个事实:创建Web20
《数字经济时代的智慧城市与信息安全(第2版)》内容简介:随着信息技术的迅猛发展,信息技术与经济社会的交汇融合,引发了数据的爆
《3D少儿游戏编程(原书第2版)》内容简介:你知道什么比玩游戏更有趣吗?自己编程!制作自己的在线游戏,即使你完全是一个初学者,
专门用途英语系列教材是教育部规划的高等学校(包括高等专科院校和高等职业院校)专业英语阶段的英语教材,也可供电大、各类成人
《零基础C语言学习笔记》内容简介:本书以初学者为对象,通过学习笔记的方式,系统地介绍了使用C语言进行程序开发的各种技术。本书
PHP编程-第3版 本书特色 这是一本可以让读者深入了解php 技术的书籍,作者用言简意赅的语言并结合了大量实例来解释每一个要素。本书涵盖了php 所有...
《牛虻》内容简介:故事背景设定在19世纪40年代干电地利络治下的意大利,描写了意大利革命党人牛虻为争取民族解放而奋斗的一生。全
《Redis开发与运维》内容简介:本书全面讲解Redis基本功能及其应用,并结合线上开发与运维监控中的实际使用案例,深入分析并总结了
《一本书读通历史典故》内容简介:华夏民族五千年悠久历史,先人们为我们留下了宝贵的文明遗产。《一本书读通历史典故》采用严谨平
《明解C语言》图文并茂,示例丰富,设有190段代码和164幅图表,对C语言的基础知识进行了彻底剖析,内容涉及数组、函数、指针、文