Speaker Deck

Down the rb_newobj() Rabbit Hole

by Chris Kelly

Published February 21, 2013 in Programming

Take a walk through the C internals from Foo.new through garbage collection in Ruby's MRI. We’ll explore the idiom and optimizations in the C source and leave you feeling comfortable to work in the code yourself. Once we arrive at the end of the rabbit hole, we’ll examine the garbage collection algorithms used in Ruby 1.8, 1.9 and 2.0.