r2d2 / mao.acc.umu.se (Niklas Frykholm) wrote:
[...]
>I'm using SWIG to wrap the C-interface and plan to put a more object-oriented
>pure-ruby module on top. The limitations of SWIG are sometimes a bit
>frustrating, but it is a lot faster than wrapping "by hand".  I'm currently
>working on translating all the sample programs in the Allegro distribution to
>Ruby, to make sure that the interface works reasonably well.

An idea that is floating around "out there" for wrapping C
libraries is to build something that will take a debug
version of the library, read the structures out of the
debugging symbols (which are pretty standard across
different compilers), and then write your wrapping code.

I don't know of anyone who is doing this yet, but I know
of at least 2 people in different languages who are looking
at it...

[...]

Cheers,
Ben