Subject:
[ruby-ffi] FFI from C?
From:
Mark Wotton
Date:
4/4/10 6:03 PM
To:
ruby-ffi

I know this is not the standard method of using the FFI, but is it
possible to do everything from C? I'm the author of Hubris, a bridge
between Haskell and Ruby, and because I have way more type information
on the Haskell side, I'd much rather keep computation on that side,
which means accessing the FFI from the C side. I'm currently using
libruby, and it's pretty painful - there's a lot of work to support
1.8 and 1.9, and I haven't even considered what it'd take to support
JRuby yet.

so, to recap: I need a way to reach into the ruby interpreter and get
type info, as well as access to basic data (numbers, strings, arrays
and hashes is probably sufficient for now). Is ruby-FFI a good bet?

cheers
Mark


-- To unsubscribe, reply using "remove me" as the subject.