News for hackers. Stuff that matters.
Re:C for Rubyists by jewel on Tuesday September 30, 2014 @04:45PM (#8391077)
Being able to rewrite a small section of ruby code in C is a great way to speed up some types of manipulations. This has yielded me two magnitudes of speedup multiple times in my career so far.

Here's an example using RubyInline, which is a gem that handles the compilation step for you:

http://stevenjewel.com/2013/11/detecting-headphone-use/

Re:C for Rubyists by hayksaakian on Wednesday October 01, 2014 @04:45AM (#8393396)
Thank you for linking that.

I always imagined that ruby and c were worlds apart, and that it took a crazy level of mastery to make them work together.

That thought led me to this article about embedding rust in ruby

http://brson.github.io/2013/03/10/embedding-rust-in-ruby/