Hi,
Just wondering: with ffi’s jruby - C bridge and compiler2’s jruby - java
bridge, would it be possible for a ffi - compiler2 combo to act as a
lightweight jni to call C from java without the daunting stub-generation
step ?
Thanks for the great stuff, etc.
A.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Archiloque wrote:
Hi,
Just wondering: with ffi’s jruby - C bridge and compiler2’s jruby - java
bridge, would it be possible for a ffi - compiler2 combo to act as a
lightweight jni to call C from java without the daunting stub-generation
step ?
Yeah, in theory that would probably work pretty well, though the
generated Java class still dynamically calls the Ruby methods. That may
be enough of a hit to matter, or it may not; it’s essentially going to
be a hash hit for every call.
There’s also Wayne’s other FFI project, “jaffi” which intends to be a
“nice” Java FFI similar to the Ruby FFI. It’s backed by the same
library, jffi, and would not have the dynamic call overhead that using
Ruby FFI does. I don’t know how far along jaffi is though.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email