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
《新手易学——Excel 2010电子表格制作》内容简介:本书主要针对Excel 2010软件进行讲解,读者可以从零学起,逐渐掌握并精通各种操
《Nikon D5200单反摄影从入门到精通》内容简介:《Nikon D5200单反摄影从入门到精通》以尼康D5200用户由浅入深的学习过程为线索,详
《商业地产5.0》内容简介:中国目前的商业地产处在一个爆发阶段,也是市场高度活跃期。截至2014年底,全国约有4 000家购物中心,累
VisualBasic程序设计实验教程 本书特色 吴昊编著的《Visual Basic程序设计实验教程》是《Visual Basic程序设计》配套的实验教材,帮...
《百年新路》内容简介:近年来,世界经济持续不景气,反全球化、民粹主义势力抬头,现有的国际政治经济秩序已难以为继,美国等西方
《可喜的寂寞:老舍散文》内容简介:老舍的写作精力是惊人的。他又最会利用他的时间,他在朋友谈话、社会活动和栽花、养猫之间,不
多媒体技术与创作 内容简介 《多媒体技术与创作》是数字媒体技术与创作系列教材中的一部。全书以多媒体软件项目管理的思想和软件工程学的方法为指导,以一个综合的...
REpresentationalStateTransfer,betterknownasREST,isthearchitecturalstylethatgover...
《打开餐巾纸(〈餐巾纸的背面〉之实用手册)》内容简介:难以置信,一张餐巾纸上曾诞生过这样的伟大创想:一个三角形,开创了美国
《嵌入式Linux系统开发》内容简介:通过本书,你将会学习OpenEmbedded构建系统如何工作、如何编写菜谱来构建你自己的软件组件、如何
《千金良方:MySQL性能优化金字塔法则》内容简介:本书一共分为3篇:基础篇、案例篇和工具篇。“基础篇”从理论基础和基本原理层面
《Python计算机视觉编程》内容简介:《python计算机视觉编程》是计算机视觉编程的权威实践指南,依赖python语言讲解了基础理论与算
Photoshop CS4平面广告设计经典108例-含2DVD 内容简介 本书是一本Photoshop CS4的平面设计案例教程,也是一本Photoshop商业...
《零基础学C语言》的特点是内容全面、翔实,通俗易懂,循序渐进地介绍了C语言各方面的知识,重点突出。《零基础学C语言》含有大量
《GoogleApps应用完全指南》介绍如何应用GoogleApps这套“云计算”的应用方案,来完成企业、学校或团体的通信和协作。全书共分为
《黑川雅之的产品设计》包括了理论一:时间含义理论二:身体感觉,触觉的时理论三:编辑的记忆理论四:物质和形体的理论五:晦暗
Automatedtestingisacornerstoneofagiledevelopment.Aneffectivetestingstrategywilld...
本书作者是北宋政治家、科学家苏颂对前代天文学成果进行了全面总结,在此基础上主持研制了一座全新的天文观测和报时的仪器“水运
《Java面向对象编程》内容由浅入深,紧密结合实际,利用大量典型实例,详细讲解Java面向对象的编程思想、编程语法和设计模式,介
《AcceleratedC++中文版》给人的印象会如此深刻呢?这是因为:●它一开始就向读者教导那些最有用的概念,而不是那些简单的注释读者