Ruby Under a Microscope: An Illustrated Guide to Ruby Internals

  • 5h 10m
  • Pat Shaughnessy
  • No Starch Press
  • 2014

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.

About the Author

Well known for his coding expertise and passion for the Ruby programming language, Pat Shaughnessy blogs and writes tutorials at patshaughnessy.net/. He also develops Ruby applications at management consulting firm McKinsey & Co. Shaughnessy is a regular presenter on the Ruby conference circuit, and his articles and presentations have been featured in the Ruby Weekly newsletter, the Ruby5 podcast, and The Ruby Show.

In this Book

  • Ruby Under a Microscope—An Illustrated Guide to Ruby Internals
  • Tokenization and Parsing
  • Compilation
  • How Ruby Executes Your Code
  • Control Structures and Method Dispatch
  • Objects and Classes
  • Method Lookup and Constant Lookup
  • The Hash Table: The Workhorse of Ruby Internals
  • How Ruby Borrowed a Decades-Old Idea from Lisp
  • Metaprogramming
  • JRuby: Ruby on the JVM
  • Rubinius: Ruby Implemented with Ruby
  • Garbage Collection in MRI, JRuby, and Rubinius
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.5 of 122 users Rating 4.5 of 122 users (122)