Hi Friend! This is a static copy of Mendicant's old Community Site. This project has been sunset therefore we are no longer updating it. For the latest news about the school, check out our main site. Thanks for visiting!
MRI’s C internals are not so scary, or how Ruby shares string values

Pat Shaughnessy wrote another post about how MRI implements Strings – and if you’ve always wanted to dip your toes in the whole C side of Ruby’s original implementation, but were afraid of the complexity or your lack of C knowledge, this is a great starting point. The post not only shows the C structs behind Ruby Strings, but also contains a sweet, small example on how to implement a Ruby method in C, along with the right mkmf invocation.

« There is more where that came from