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
《夏天最后一朵玫瑰》内容简介:本书是为初中至高中年龄的青少年精选的外国经典诗歌,均出自各国文学大师或大诗人之手,译者也是我
《因为懂得 所以慈悲》内容简介:她是中国文学史上的传奇,她是民国世界的临水照花人。她终其一生,横空出世的来,旁若无人的活,听
中文版Photoshop CC技术大全-(附光盘) 本书特色 这是一本全面介绍photoshop cc基本功能及实际运用的书。《中文版photoshop cc技...
Thedazzlingnewmasterworkfromtheprophetofsiliconvalley.JaronLanieristhebestsellin...
《新媒体跨界交互设计》内容简介:本书从传播媒介发展、网络互动、软硬件结合、可视化编程、体感交互技术、跨平台交互引擎六个方面
3ds MAX三维效果图制作案例教程 内容简介 本书是一本面向3DS MAX效果图制作初学者的书,本书根据3ds Max 9软件和效果图制作的特点,,由优秀效果...
拍卖之王从0到190亿美金的2100天。EBAY,1995年从创始人皮埃尔·奥米达的梦想出发,如今已然成为:全球最大的电子交易市场,全球
《价值投资者的财报分析》内容简介:本书以通俗易懂、图文并茂的方式,以海天味业为案例,系统地介绍了有效开展价值投资的财报分析
《51单片机零基础轻松入门视频教程》内容简介:本书以STC89C52(AT89S52)为例,介绍了51单片机的结构和特点、入门和提高所需的C语
《神经科学研究与进展•神经科学MATLAB教程:MATLAB科学计算导论(英文)(导读版)》内容简介:作为科学计算的数学软件,Matlab被广泛
《中原经济区竞争力报告(2017)》内容简介:本书围绕传统平原农区工业化与经济社会转型的这个主轴,就经济竞争力、社会保障建设、
《茶之书:识茶·懂茶·品茶》内容简介:本书以知识性随笔的方式,在介绍最具代表性的各类名茶的同时,加入了足够的关于茶道、茶文
《型和现代主义》简介:教学程序和由此产生创造性的思维的关系是《型和现代主义》的中心所在。它也是在对理论和教学实践两方面深
《金融公平的法律实现》内容简介:金融并不只意味着对利益的追逐,还应具备对社会公平的观照。理想的金融体系,应当既能从经济功能
《嵌入式Linux应用程序开发详解》主要分为3个部分,包括Linux基础、搭建嵌入式Linux环境和嵌入式Linux的应用开发。Linux基础部分
《水运与国运》内容简介:本书从大禹治水锻造中华民族早期统一体开篇,以“一带一路”战略打造中国连接大陆大洋、构建人类命运共同
《物联网:万物数字化的利器》内容简介:这是一本介绍物联网生态的技术专著。全书从世界经济周期的分析开始,介绍了第六次“经济长
Haveyoueverneededtocreateaniconforsomethingandnotknownwheretostart?Howdoyougoabo...
《趣学Python算法100例》内容简介:本书从一些经典算法出发,为读者展示了100个Python趣味编程实例。本书共12章,涵盖趣味算法入门
《天下》全景凸现通信业二十年嬗变,透视移动、电信、联通、网通等电信企业的内幕,昭示“战国七雄”的市场博弈之道。一男三女,