Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

A Simple Tour of the Ruby MRI Source Code with Pat Shaughnessy

By Peter Cooper / December 3, 2012

I'm not in Ruby core or, well, even a confident C coder anymore, but I've long enjoyed digging in the Ruby MRI source code to understand weird behavior and to pick up stuff for my Ruby course.

Pat Shaughnessy is also a fan of digging around in Ruby's internals and has written some great posts like How Ruby Executes Your Code, Objects, Classes and Modules, and Exploring Ruby's Regular Expression Algorithm.

When Pat released his Ruby Under a Microscope book, I knew it would be right up my street! He digs into how objects are represented internally, why MRI, Rubinius and JRuby act in certain ways and, of course, "lots more."

I invited Pat to take a very high level cruise through the MRI codebase with me so we could share that knowledge with Ruby programmers who haven't dared take a look 'under the hood' and to show it's not as scary or pointless as it may seem.

It's 100% free so enjoy it above or on YouTube in 720p HD.

P.S. Pat is happy to do another video digging deeper into how Ruby actually takes your code and executes it and he's able to walk through the actual virtual machine for us. If the reaction to this video is good, we'll sit down again and see if we can do it! :-)

Comments

  1. Jamal Abdou-Karim Bengeloun says:

    What is the editor used in the video?

  2. Peter Cooper says:

    Sublime Text 2.

  3. Jamal Abdou-Karim Bengeloun says:

    Thanks a lot. Any added plug-ins? It does not quite look like the standard look & feel. For example the search bar, etc.

  4. Jordon Bedwell says:

    The search bar is pretty standard, actually the entire thing looks standard to me, press (CMD|CTRL)+F to open it, or +H to get the more advanced search and replace.

  5. Peter Cooper says:

    It's the "Soda" theming. But I've switched to "Phoenix" in the last couple of days..

Other Posts to Enjoy

Twitter Mentions