Hacker News new | past | comments | ask | show | jobs | submit login

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/




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/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: