Ruby and C Integration Presentation
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.
March 31, 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 31, 2007 at 11:58 am
Thanks! Should be useful ...
Vasudev Ram
http://www.dancingbison.com
April 2, 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.