New to Rails 3? Check out the Ruby on Rails 3 Tutorial book and screencast.

A book and screencast series showing you how to develop and deploy industrial-strength Rails apps in a direct, step by step way. The screencast series includes 12 lessons over more than 15 hours! Get the best "over the shoulder" experience of following what a top Rails 3 developer does when building an app today. Click here to learn more.

MonkeySupport: Boosting Rails With Patches of C

In Miscellaneous

monkeh.pngMonkeySupport (or GitHub repo) is an intriguing new project by Burke Libbey that attempts to inject some crazy C power into Rails.

As you probably know, it's possible to use C to write Ruby extensions and even to use C inline with Ruby if you have RubyInline installed. MonkeySupport uses Ruby's C integration provisions to provide super-fast C equivalents of Rails' ActiveSupport library.

Burke advises against production use, but to get going, just add this line to your config/environment.rb and sync up the gems (making sure you have GitHub as a source, first):

config.gem 'burke-monkeysupport', :lib => 'monkeysupport', :source => ''

Burke's only tackled a little bit of ActiveSupport so far but has found a runtime decrease of about 75% on average, even with the calling back and forth taken into account. He's keen for other people to get involved, fork MonkeySupport, implement other parts of ActiveSupport, and send pull requests to him. I'm not sure about the viability of this technique in the long term and hope to look into it further for a Ruby Inside feature.

Post to Twitter Tweet This Post

Vaguely Related Posts (Usually)

3 Comment Responses to “MonkeySupport: Boosting Rails With Patches of C”

  1. #1
    Caffeine Driven Development » Blog Archive » L33t Links #20 Says:

    [...] MonkeySupport: Boosting Rails With Patches of C [...]

  2. #2 » Blog Archive » Rails Reading - Oct 7, 2009 Says:

    [...] MonkeySupport: Boosting Rails With Patches of C [...]

  3. #3
    quinn Says:

    If he really wants to encourage group participation, he should add anyone who shows an active interest as a contributor.

Leave a Reply