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
《数字化工厂+工业维修服务体系》内容简介:智能制造、工业互联网已成为中国乃至世界制造业的发展方向。制造业将在数字化、智能化方
VisualBasic程序设计教程 本书特色 本书特色:与本书配套的《visual basic程序设计教程题解与上机指导》(第四版)已出版。电子教案及例题程序代...
五笔字型经典教程 本书特色 本书是一本关于五笔字型输入法入门及应用的教程。全书共分为9章,包括指法训练、五笔字型输入法、拆分汉字、录入汉字、简码、词组、容错码、...
可视化程序设计与C#.NET语言 本书特色 visual c#.net是面向对象的可视化程序设计语言,具有简洁、高效 、安全、性能优良等特点,是面向对象程序设计...
《光幻中的论语:十七年电影的导演逻辑》内容简介:本书是徐皓峰最新的电影评论集。主要将新中国国建国后十七年的红色电影展开解读
Web安全设计之道-.NET代码安全.界面漏洞防范与程序优化 本书特色 黑客入侵、挂马、网页篡改……网络系统安全的种种问题令人困扰,是否有方法能彻底解决这些安全...
Thisthree-volumesetLNCS4554-4556constitutestherefereedproceedingsofthe4thInterna...
《进步的回退》内容简介:本书分为演讲、对话、记谈录三部分。主要内容包括:进步的回退;冷战后:文学写作新的处境;现代汉语再认
《C++面向对象程序设计》具备良好的编排体系,适合打算涉足编程领域的读者阅读,尤其适合大一学生。它最大的特色是Savitch教授最
吴国斌博士,PMP,微软亚洲研究院学术合作经理,负责中国高校及科研机构KinectforWindows学术合作计划及微软精英大挑战Kinect主题
設計是什麼?為什麼設計?原研哉與阿部雅世,東京與柏林,居住在兩個不同城市的設計者,進行了一場以「設計」為題的討論。本書是
Sinceitsfoundingin1989byTerrenceSejnowski,NeuralComputationhasbecometheleadingjo...
书中作者探讨了技术如何重塑人们对阅读的定义。数字阅读越来越受欢迎,更便利、节约成本、并把免费书籍提供给全世界的读者。但是
Photoshop建筑表现图专业技法与范例-附光盘 本书特色 《Photoshop建筑表现图专业技法与范例》:超值多媒体光盘12段多媒体全程配音教学视频30个建...
《经典剪发专业技术图解:蘑菇头(视频教学版)》内容简介:本书是专门针对蘑菇头剪发技术的详细图解教程,书中详细图解示范了12款
《PYTHON技术手册》随着计算机技术的成熟和广泛应用,人类正在步入一个技术迅猛发展的新时期。计算机技术的发展给人们的工业生产
《范仲淹》内容简介:范仲淹是北宋著名政治家、诗人、学者,在生前身后享有极高声誉:“本朝人物以仲淹为第一”“求之千百年间,盖
互联网接入服务现状及管理对策研究 本书特色这是一部全面系统探讨互联网接入服务现状及管理对策的研究专著。佟力强编写的《互联网接入服务现状及管理对策研究》从介绍互联...
属性拓扑理论及其应用 本书特色 本书以属性拓扑理论及其应用为主线,系统地介绍了属性拓扑基本理论及其应用的*研究成果. 全书分为基础知识、概念计算、关联分析、记忆...
《庆历四年秋》内容简介:“庆历四年春”,这是范仲淹千古经典《岳阳楼记》起首句所定格的不朽时间。宋仁宗庆历四年,这段貌似短暂