foo.h -> foo.rb

A

ara.t.howard

anyone out there written a parser that makes ruby dl bindings for *.h files?
seems like such a beast would exist.

regards.

-a
 
M

MenTaLguY

anyone out there written a parser that makes ruby dl bindings for *.h files?
seems like such a beast would exist.

Well, you'd need more than just a parser, since you'd often have to pick
up on typedefs and other type information.

I wonder whether writing an alternate swig backend or something might
work.

-mental
 
A

ara.t.howard

Well, you'd need more than just a parser, since you'd often have to pick
up on typedefs and other type information.

I wonder whether writing an alternate swig backend or something might
work.

that's about what i was thinking too. the cool thing about it would be that
you'd end up with 'portable' ruby extension requiring no compilation...
probably too big for me - i'm waiting for ryan davis to jump on ;-)

-a
 
E

Eric Hodel

that's about what i was thinking too. the cool thing about it
would be that
you'd end up with 'portable' ruby extension requiring no
compilation...
probably too big for me - i'm waiting for ryan davis to jump on ;-)

I tried to use DL to wrap libc for MetaRuby but found that it is
lacking necessary features to make it 100% useable (like 64 bit
integers for stat(2)). Switching to DL2 adds an unfamiliar
dependency whereas RubyInline is a familiar dependency.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,662
Latest member
sxarexu

Latest Threads

Top