Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I'm looking to add serious scripting into my Java app and JavaScript would be a great language choice. My concern though is the Rhino project and its future.

While Groovy/Jruby etc have seen constant updates, and engines like V8 and SpiderMonkey make continuous and significant performance boosts; Rhino languishes with its last release in March '09.

I've seen some work on hacking Rhino:

But nothing solid about actually merging this code into the project and getting an active committer community around it.

What is the Rhino road map? For example, is there any plan to bring invokedynamic to the Rhino world?

share|improve this question
Note that even though Javascript is included with some Oracle Java distributions, you are not guaranteed it will be there. – user1249 Jun 5 '11 at 5:48
I suspect it's because JavaScript and Java have about as much in common as cats and Ghorzog the Great Devourer of All Reason Who Also Happens to Hate Cats – Erik Reppen Jan 17 at 1:13

4 Answers

up vote 2 down vote accepted

Rhino development has picked up again because of the new features that have been added to the JVM. Here's the article on infoq detailing the development roadmap.

share|improve this answer

is there any plan to bring invokedynamic to the Rhino world

Oracle is working on Project Nashorn, which is a new Javascript engine implementation based on invokedynamic and whatever else in JSR-292.

Rhino will continue to be available for legacy JVMs.

share|improve this answer
1  
JDK8 b68 now has nashorn – pd40 Jan 16 at 11:29

Rhino is there around for more than a decade, I do not see any other alternative to Rhino to embed Javascript support in Java applications.

Developments of Rhino was slow in the past and it does not seem to be very active (for e.g. V8 engine). I am not aware of any official road map page, may be its worth checking with the developers mailing list.

share|improve this answer

You can also try scala, here some links : http://www.dzone.com/links/javaone_2011_script_bowl_jruby_vs_groovy_vs_scala.html

Scala has also a REPL so interactive coding is possible and fun!

Try it: Www.simplyscala.com

Depending on your needs you could embed a scala REPL in your app.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.