From: Eric Peden Date: 2005-03-01T00:44:00+09:00 Subject: Re: structuring complexly-interdependent C/Ruby libraries On Feb 28, 2005, at 5:05 AM, Michael Neumann wrote: > You might take a look at RubyInline: > > http://rubyforge.org/projects/rubyinline/ > > It will allow you to put the C code right into your Ruby classes. I have looked at RubyInline (and in fact use it in a couple of places in my code). It works great for shorter methods. However, for longer methods, or classes where I C-ify several methods, I prefer breaking the code out in a .c file. This makes my text editor happy, and lets me work with C-specific syntax highlighting and autocompletion features. There are also a few times where I want to work directly with the C representation of another optimized class, and I had trouble doing this with Inline. This was early on in my explorations, so it's likely I was just doing things the wrong way. Thanks for the suggestion! -- eric