JRuby

Bundle JSR 223 support in JRuby

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.3RC1
  • Fix Version/s: JRuby 1.4
  • Component/s: Embedding, Java Integration
  • Labels:
    None
  • Number of attachments :
    0

Description

Groovy recently bundled JSR-223 (common interface to other scripting languages) to their JAR – so now Groovy "just works" as an available language option once the JAR is on the classpath. (See GROOVY-1594.)

It'd be nice for JRuby to do the same; currently support requires fishing one tiny (~24K) jruby-engine.jar out of a downloadable all-engines-distribution tar.gz from http://scripting.dev.java.net.

Activity

Hide
Morten Christensen added a comment -

Yes, I agree. Besides being easier, it would also be easier to ensure that the two versions are in sync that way. Too extra needed code is so tiny that there is really no reason for not doing as far as I see it.

Show
Morten Christensen added a comment - Yes, I agree. Besides being easier, it would also be easier to ensure that the two versions are in sync that way. Too extra needed code is so tiny that there is really no reason for not doing as far as I see it.
Hide
Yoko Harada added a comment -

I agree, too, though before I didn't think JSR 223 implementation was not necessary to bundle in JRuby. JSR 223 is a generalized API for many scripting languages, which does not always draw 100% power out from JRuby. So, I wrote the two layers implementation, JSR 223 was on the top of a middle layer. Currently, the preliminary middle layer, JRuby Embed API, is availabe to use. JSR 223 implementation on top of JRuby Embed API is missing now, but is easy to write.

Although JSR 223 implementation would be a subset of JRuby Embed API, many people want JSR 223 support by JRuby. Why don't we think about this?
Maybe, org.jruby.embed.jsr223 ?

Show
Yoko Harada added a comment - I agree, too, though before I didn't think JSR 223 implementation was not necessary to bundle in JRuby. JSR 223 is a generalized API for many scripting languages, which does not always draw 100% power out from JRuby. So, I wrote the two layers implementation, JSR 223 was on the top of a middle layer. Currently, the preliminary middle layer, JRuby Embed API, is availabe to use. JSR 223 implementation on top of JRuby Embed API is missing now, but is easy to write. Although JSR 223 implementation would be a subset of JRuby Embed API, many people want JSR 223 support by JRuby. Why don't we think about this? Maybe, org.jruby.embed.jsr223 ?
Hide
Charles Oliver Nutter added a comment -

We have wanted to get 223 in JRuby proper, but to be honest none of us are happy with the current implementation and would like one that we can license according to JRuby's existing licenses and implement the way we want to implement it. We want to work with Yoko to get a new 223 engine built "the right way" and shipped with JRuby before we start including anything and set an expectation on the existing version.

So I'll tell ya what...if we can all work together to get a really solid 223 impl built, we would include it in JRuby 1.4 so it's available for everyone. That gives us a hard goal to reach and a deadline for when we'll reach it. Is that acceptable?

Show
Charles Oliver Nutter added a comment - We have wanted to get 223 in JRuby proper, but to be honest none of us are happy with the current implementation and would like one that we can license according to JRuby's existing licenses and implement the way we want to implement it. We want to work with Yoko to get a new 223 engine built "the right way" and shipped with JRuby before we start including anything and set an expectation on the existing version. So I'll tell ya what...if we can all work together to get a really solid 223 impl built, we would include it in JRuby 1.4 so it's available for everyone. That gives us a hard goal to reach and a deadline for when we'll reach it. Is that acceptable?
Hide
Morten Christensen added a comment -

Fine with me to wait until JRuby 1.4 (but with a high priority!). I have a Java/Jruby app using JSR 223 so I can help testing the new version.

Show
Morten Christensen added a comment - Fine with me to wait until JRuby 1.4 (but with a high priority!). I have a Java/Jruby app using JSR 223 so I can help testing the new version.
Hide
Thomas E Enebo added a comment -

jruby-embed landing has added this support!

Show
Thomas E Enebo added a comment - jruby-embed landing has added this support!

People

Vote (5)
Watch (5)

Dates

  • Created:
    Updated:
    Resolved: