From: "Mauricio Fernández" Date: 2004-11-17T20:55:36+09:00 Subject: Re: Ruby to C to another language (perhaps Java (I Don't Need JRuby)) On Wed, Nov 17, 2004 at 03:42:19PM +0900, Zach Dennis wrote: > This posting is more for a learning thing then anything else at this > point. I've been playing with Java to C via JNI lately doing some pretty > basic tests; calling methods, getting and settings fields, passing > primitive types around, etc... > > A while back (a few months ago) I did some Ruby to C tests of pretty > much the same caliber. > > I would like to combine the two approaches and share some objects > between Ruby to C to Java and vise versa. I am not looking for the JVM > to be able to process ruby code. (no JRuby) > > Has anyone had a similar approach (even if it wasn't Java) where they > were able to wrap a few Objects and use C as the middle man to communicate? Take a look at the third issue of rubima (Rubyist Magazine); the Ruby Library Report introduces rjb and rjni: http://jp.rubyist.net/magazine/?0003-RLR They both use JNI. rjb is implemented as a C extension, and rjni as a simple wrapping of JNI (extension) + Ruby code for the higher layers. You might need http://excite.co.jp/world/url -- Hassle-free packages for Ruby? RPA is available from http://www.rubyarchive.org/