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
《就是爱吃肉》内容简介:但愿木可著的这本《就是爱吃肉(在家做饭很简单)》能为你开启一个全新的厨艺天地,哪怕你没有太多下厨时
《高盛帝国(上)》内容简介:《高盛帝国》(下)请移步:http://read.douban.com/ebook/262238/ 《高盛帝国》一书充分展现了为高盛
《智能机器人养成记》内容简介:本书中,作者先描述了人工智能的缺陷(一个关键的缺点是:它没有具象化),然后提出了一种制造类人机
笔记本电脑维修高级教程-芯片级 本书特色 《笔记本电脑维修高级教程(芯片级)》主要内容:笔记本电脑芯片级维修基础;笔记本电脑电路部分(保护隔离电路,3V、5V单...
《文化传播(2017年第1期/总第1期)》内容简介:本期《文化传播》共收入18篇文章,作者大多系海内外高校或研究机构长期从事人文社会
本书以超宽带冲激无线电(UltraWidebandImpulseRdio)为重点,系统阐述超宽带无线通信的基本原理和技术,内容包括超宽带无线通信
《交易员的自我修养:中国顶级交易员访谈实录(陈侃迪)》内容简介:本书是“中国顶级交易员访谈丛书”之一,丛书致力于通过十数年
本书从整体出发,全面讲述了软交换的各种技术,包括下一代网络技术概况、软交换的系统框架以及软交换中的媒体风头与信令风头技术
Photoshopcs6完全自学教程中文版 本书特色 photoshop 经典畅销书全新升级国内市场**本photoshop cs6图书荣耀上市完全的功能讲解,...
计算机操作系统-(第三版) 本书特色 本书全面介绍了计算机系统中的一个重要软件——操作系统(OS),本书是第三版,对2001年出版的修订版的各章内容均作了较多的...
《中国城市交通服务质量指数报告(2016)》内容简介:本书主要探讨城市交通服务质量指数问题。作者构建了一系列指标,对城市交通服
《关键对话:如何高效能沟通(原书第3版)》内容简介:无论在工作中还是生活中,每个人都会遇到许多“关键时刻”,比如:指出上司的
Thisbestsellingtextoncarryingoutresearchinrealworldsituationshasbeenthoroughlyre...
《朱子哲学思想的发展与完成》内容简介:本书剖析了集宋代理学之大成的朱熹的学思内涵,比较集中地体现了刘述先先生关于宋明儒学研
《插画师之路——100堂水彩插画手绘实战课》内容简介:这是一本水彩插画手绘技法书。本书共6章,第1章介绍了插画绘图工具及绘画技法
《马克思主义与伦理学(第3辑)》内容简介:《马克思主义与伦理学》是由中国人民大学伦理学与道德建设研究中心主办的专业学术集刊,
《能源互联网发展研究》内容简介:本书全面介绍了国内能源互联网的发展现状及进展,共分四篇,第1篇为战略篇,第2篇为技术篇,第3篇
《完美主义扼杀效率》内容简介:工作的目标是成果,而不是完美! 33个完美主义思维误区! 日本上班族人手一本!做出成果只需抓住20
《人生的每日忠告》内容简介:既然你热爱生活,就要爱它的。当满天的繁星落定,远处的歌声清灵地绽放,你询问手中的红莲,哪一朵光
《算法导论》自第一版出版以来,已经成为世界范围内广泛使用的大学教材和专业人员的标准参考手册。这本书全面论述了算法的内容,