BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

JRuby Roundup: 1.4 Features, JRubyConf Schedule, MLVM

| by Werner Schuster Follow 3 Followers on Sep 29, 2009. Estimated reading time: 2 minutes |

A first release candidate of JRuby 1.4 is expected soon, so it's time to have a look at what's coming up.

JRuby team member Nick Sieger gave a quick overview of what's to come in JRuby 1.4. Next to new YAML support and further improvements in the 1.9 support, work on the JRuby's 1.8.7 support continues.

JRuby 1.4 will default to Ruby version 1.8.7. While most of the 1.8.7 support is done, Charles Nutter explains why external iterators, added in 1.9.x and 1.8.7, are currently slow and hard to optimize:

Ruby 1.8.7 added the ability to "next" your way through an Enumerator. At a glance, this seems fine; it's just external enumeration. The problem, however, is that enumeration can be arbitrarily complex. [..]
In Ruby 1.8.7 and Ruby 1.9, [external iterators are] implemented using continuations (delimited continuations, i.e. Fibers or coroutines), making it dreadfully slow to "next" your way through a collection. On JRuby, because there's an in-progress #each we have to pause for every element, Enumerator#next has to spin up a *new native thread*. Each #next call then pings the thread to produce a new result.

It remains to be seen whether a fast solution can be found.

JRuby 1.4 will probably also bring improvements in the Java integration, making it easier (or in some cases, at all possible) to access overloaded methods in Java classes from Ruby code. Possible changes will include improvements in type coercion and new methods such as java_send (GitHub commit for java_send) which takes the method signature of the method to invoke.
The specific feature set in 1.4 is still in flux, and it remains to be seen what parts of the Java integration overhaul make it in.

Future versions of the JVM are supposed to include support for improving the speed of dynamic languages. First bundles of JRuby and the MLVM with the new dynamic features are available.

Finally, very soon after the announcement of the first JRubyConf, it was booked out. EngineYard now announced the final program of JRubyConf
as well as the availability of further tickets:

Last, but certainly not least exciting: with the addition of our new sponsors, and some magic logistical mojo at the Embassy Suites, we've managed to move the event to a larger space, doubling the attendee headcount.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT