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
本书不仅描述了IMS域的体系结构,而且通过实例深入浅出地对IMS的关键概念、主要过程以及典型业务进行了剖析。本书内容远远超越了
Ifyouwanttolearnhowtobuildthingswithelectronics,getaholdofthishands-onbook.Witht...
《逆袭大学——传给IT学子的正能量》以作者近二十年的从教经历和义务为IT学子解答咨询的工作为基础,以认识专业为起点,以编程能
知识就是力量,信息就是能量,数据就是变量。本书全面阐述了人类从IT时代走向DT时代的基本特征和规律。《DT时代》认为,大数据正
《你好,乳房:塑造乳房健康美》内容简介:提到乳房疾病,只有极少数人有关注意识,而这少数人几乎把所有焦点都放在乳腺癌上,对其
学者型的弗洛伊德情场上风采依然,缠绵的爱恋、炽热的情感、渊博的学识向人们展示了欧洲最优秀知识分子的生活与精神状态。本书所
PHP经典实例(第2版)能够为您节省宝贵的Web开发时间。有了这些针对真实问题的解决方案放在手边,大多数编程难题都会迎刃而解。《
本书向我们介绍数字通信的基本概念,揭示了通信行业的发展历程,是通信修养专业的一本非常优秀的教材。在本书的全新版本中,作者
《WebGL编程指南》内容简介:WebGL是一项在网页上渲染三维图形的技术,也是HTML5草案的一部分。本书的主要篇幅讲解了WebGL原生API和
《软件测试的艺术》(原书第2版)成功、有效地进行软件测试的实用策略和技术:基本的测试原理和策略 验收测试程序检查和走查 安装
《闭上眼睛才能看清自己》内容简介:慈悲是一种爱,对家人、对朋友、对同事、对尘世间一草一木的爱。本书源于贤宗法师的人生体悟、
这是国内第一本Flex开发的书Flex是开发富互联网应用程序(RichInternetApplication,缩写为RIA)的利器,目前已广泛应用于各种商
《深入实践DDD》内容简介:本书是拥有二十年商业软件开发经验及十年技术管理经验的资深技术专家呕心沥血之作,也是目前市场上少有的
《写作高手:写出好文章的40个实用技巧》内容简介:业文字工作者亲身教学 全世界最有诚意、最多伏笔的“万能写作书”手把手教你写出
《学术与时势:民国的边疆研究》内容简介:该书系统梳理了近代中国边疆研究的发展演变历程,探讨各时期边疆研究内容、方法的不同特
《杜甫诗选注(增补本)》内容简介:杜甫(712—770),字子美,自号少陵野老,后世也称其杜拾遗、杜工部、杜少陵等。出生于河南巩
从新手到高手Photoshop手绘从新手到高手 本书特色 零基础Photoshop手绘实战类图书。Photoshop手绘初学者从入门到精通s选。涵盖Photos...
本书是国内外业界广泛关注的7卷本《计算机程序设计艺术》第2卷的最新版。本卷对半数值算法领域做了全面介绍,分“随机数”和“算
《伤寒论》内容简介:东汉张仲景的《伤寒论》是现存早的中医临床经典著作,它所确立的六经辨证论治体系,开拓了中医临证医学的新纪
《亮剑.NET:SharePointServer2007开发实战》共分为8章,详细讲解了SharePoint上常见的开发任务,讲述了各种开发场景下需要了解的