[ANN] java-inline 0.0.3, with Duby support

  • Thread starter Charles Oliver Nutter
  • Start date
R

Roger Pack

Charles said:
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: http://gist.github.com/279641

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
 
C

Charles Oliver Nutter

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
 
R

Roger Pack

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
 
C

Charles Oliver Nutter

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 :) 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
 

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
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top