[ANN] java-inline 0.0.3, with Duby support

Just released java-inline 0.0.3, which now supports Duby as well.
Install the duby gem separately.

Here’s an example from the project: dubymath.rb · GitHub

Have fun!

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Charles Nutter wrote:

Just released java-inline 0.0.3, which now supports Duby as well.
Install the duby gem separately.

Here’s an example from the project: dubymath.rb · GitHub

I wonder if java-inline could be used from within a C interpreter, as
well…that might be useful for popularizing duby.

link to the main page for the gem?

Also is the duby example ‘exactly as fast’ as a straight java inline
example would be?
-r

On Mon, Jan 18, 2010 at 9:02 PM, Roger P. [email protected]
wrote:

I wonder if java-inline could be used from within a C interpreter, as
well…that might be useful for popularizing duby.

It’s probably possible using something like RJB. I’ve never used RJB
for anything though.

link to the main page for the gem?

http://www.kenai.com/projects/java-inline. There’s not much there, and
the source is located on github.com/jruby/java-inline.

Also is the duby example ‘exactly as fast’ as a straight java inline
example would be?

Yes. Exactly as fast.

  • Charlie

I wonder if java-inline could be used from within a C interpreter, as
well…that might be useful for popularizing duby.

It’s probably possible using something like RJB. I’ve never used RJB
for anything though.

My first feature request would be to allow it to work in other
interpreters – I can probably speak for others by saying that I would
definitely prefer using java inline to c inline.

-r

On Thu, Jan 21, 2010 at 12:04 AM, Roger P. [email protected]
wrote:

It’s probably possible using something like RJB. I’ve never used RJB
for anything though.

My first feature request would be to allow it to work in other
interpreters – I can probably speak for others by saying that I would
definitely prefer using java inline to c inline.

Patches enthusiastically accepted :slight_smile: I have never used RJB, but
java_inline’s logic is pretty trivial. All you’d need to do is compile
the generated source, get RJB to load the class, and bind that class
however you normally do with RJB. In JRuby it’s almost no code at all;
in RJB, it probably wouldn’t be a whole lot more.

  • Charlie

Charles Nutter wrote in post #881371:

On Mon, Jan 18, 2010 at 9:02 PM, Roger P. [email protected]
wrote:

I wonder if java-inline could be used from within a C interpreter, as
well…that might be useful for popularizing duby.

It’s probably possible using something like RJB. I’ve never used RJB
for anything though.

Ok if anyone ever has interest in something like this let me know, I’ll
hack it up.
-roger-