Post by Peter Cooper on March 31st, 2007
Ruby and C Integration Presentation

- In-Depth “acts_as_ferret” Tutorial - Add Search To Your Rails App
- Screen scraping with Ruby
- How to Profile Your Rails Application and Make Rails Go Vroom!



Mark Volkmann has put together a kickass presentation [PDF] that walks through topics relating to C/Ruby integration. If you want to write a library in C that integrates with Ruby, or vice versa, it's an essential read.
And while we're at it.. two years ago Garrett Rooney wrote an article called "Extending Ruby with C" that could come in useful too. It's a little old, but covers a lot. He demonstrates how to take a basic, pre-existing C library and make it accessible from Ruby.

Click here to add on del.icio.us
Tweet This









March 31st, 2007 at 10:03 am
It looks very difficult for me. I think, this issue is very useful, but not simple - only for professionals!
March 31st, 2007 at 11:58 am
Thanks! Should be useful ...
Vasudev Ram
http://www.dancingbison.com
April 2nd, 2007 at 1:41 pm
Looks good. There's a mistake I noticed - NIL_P() and FIXNUM_P() do not raise exceptions. They're boolean macro functions.