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
《商业模式与战略共舞》内容简介:本书为T型商业模式系列第二本书,介绍了商业模式与战略之间的区别与联系,从理论上把商业模式的内
多媒体技术与创作 内容简介 《多媒体技术与创作》是数字媒体技术与创作系列教材中的一部。全书以多媒体软件项目管理的思想和软件工程学的方法为指导,以一个综合的...
HIGHLIGHTAninsidersperspectiveontheASP.NETMVCframework,ahighly-anticipatedproduc...
《移动基站设备与维护》全面、系统地阐述了现代移动基站的基本原理、基本技术和当今广泛使用的各类设备及维护技术规范,较充分地
《时尚的诞生》以通俗漫画的形式,配以妙趣横生的语言,讲述了26位近现代时尚史上最具代表性的伟大设计师与他们品牌的传奇故事,
《生活在哪个朝代最郁闷》内容简介:历史并不重复,只是押韵而已。——马克·吐温 历史给我们的教训就是,人们从来都不知道汲取历史
Computerscienceasanengineeringdisciplinehasbeenspectacularlysuccessful.Yetitisal...
本书由浅入深、循序渐进地介绍了HTML、XHTML和CSS的语法、元素、属性的使用方法,介绍了如何使用(X)HTML和CSS编写符合标准的Web页
《探索式软件测试》任命软件测试人员,OA专家、开发人员、程序经理和架构师阅读,对他们的工作具有重要的启发作用。探索式软件测
《射频通信电路学习指导(第2版)》是普通高等教育“十五”国家级规划教材《射频通信电路》(第二版)的配套教辅书。《射频通信电路
Mathematica基础与应用(含CD光盘1张) 本书特色 《Mathematica基础与应用(附光盘)》的前世是笔者丁大正编著的《科学计算强档Mathema...
在北欧严寒苛刻的自然环境下,只有洋溢着北欧美学观的设计作品如室内的花朵般恣意绽放。其设计师如何能孕育出温暖生活环境的作品
UMTS(通用移动通信系统)是ITU的IMT-2000第三代移动通信系统(3G)的重要组成部分,它能为用户带来高达2Mb/s(理论值)的数据传输速率
《云管理时代:解码中国管理模式⑤》内容简介:风起云涌,大浪淘沙,中国经济和全球商业环境的变化,正在对中国企业提出全新的挑战
《绽放:第二十届新概念作文获奖者作品精选(A卷)》内容简介:本书精选2018年第20届全国新概念作文大赛一、二等奖获奖者的作品,结
软件设计师2009至2014年试题分析与解答-全国计算机技术与软件专业技术资格(水平)考试指定用书 本书特色软件设计师级考试是全国计算机技术与软件专业技术资格(...
《数学也荒唐》内容简介:本书用20个数学问题探讨了代数、概率学、统计学、平面几何、图论、拓扑学等主题,在意想不到的趣题中探讨
《洞悉用户:用户研究方法与应用》内容简介:用户研究在现代设计中扮演着极为重要的角色。但就在若干年前,就连惠普、索尼、Tektr
《协同无线通信原理与应用》系统深入地介绍了无线协同通信的历史背景、理论基础、基本原理、通信机制、关键算法、实际应用以及未
FromthecoauthorsoftheNewYorkTimesbestsellerAbundancecomestheirmuchanticipatedfol...