Ruby Under a Microscope: An Illustrated Guide to Ruby Internals

Category: Programming
Author: Pat Shaughnessy
4.9
This Month Stack Overflow 1

Comments

by tadkar   2020-09-19
There's also this wonderful book [1] covering similar ground for Ruby. An extract from a review gives a flavour:

"Ruby Under a Microscope" does something fairly ambitious. It attempts to write a system internals book in a language that non computer scientists can readily understand. While there are numerous code snippets and examples to try and examine, the ability to look at the various Ruby internals and systems and see how they fit together can be accomplished by someone with general skills and basic familiarity with programming at the script level (which for many of us is as far as we typically get). An old saying says you can’t tell where yo hare going if you don’t know where you’ve been. Similarly, we can’t expect to get the most out of languages like ruby without having a more clear idea what’s happening under the hood. It’s entirely possible to work with Ruby and never learn some of this stuff, but having a guide like "Ruby Under a Microscope” opens up a variety of avenues, and does so in a way that will make the journey interesting and, dare I say it, even a little fun.

[1] https://www.amazon.com/Ruby-Under-Microscope-Illustrated-Int...

by anonymous   2019-01-13

This article focuses on the way ruby works in versions from 1.7 to 1.8. With introduction of YARV things have changed a lot. To better understand how Ruby works internally I'd recommend Ruby Under a Microscope. There are chapters on how Ruby execution stack works