InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

JRuby Roundup: JRuby 1.3 Released, ruby2java, JSR 292 Progress

Posted by Werner Schuster on Jun 09, 2009

Sections
Development,
Architecture & Design
Topics
Performance & Scalability ,
JRuby ,
Java ,
Runtimes ,
Ruby ,
Compilers
Tags
Virtual Machines ,
JVM ,
Performance Tuning ,
Google AppEngine ,
JRuby

JRuby 1.3 is now available, and brings many performance improvements and bug fixes. New improvements are the inclusion of Nailgun, faster timeout and others(more detailed information of the changes in 1.3 such as Nailgun or dropped Java 1.4 support).

JRuby 1.3 is also the first stable release that works with Google AppEngine's Java support.

There seems to be an issue with the new version of timeout). The issue is fixed in JRuby's trunk version. There are workarounds, such as building JRuby from trunk, but a 1.3.1 release with a fix might become available too.

Meanwhile, the work on improving JRuby's speed continues. One project to improve compiled JRuby is ruby2java:

The Ruby2Java compiler inspects the *runtime* definition of classes to produce a normal-looking Java class. All metaprogrammed methods are reflected on the Java class, as are runtime modifications to those methods.

The ruby2java project is hosted at Kenai. Ruby2java requires at least JRuby 1.3 to work.

Ruby2java aims to improve JRuby speed on currently existing JVMs. However, some new changes in the JDK/Java 7 might allow some more significant improvements in efficiency. JSR-292 collects the first few changes to the JVM to achieve this goal.
One change is the introduction of a new bytecode invokedynamic, which allows to provide custom lookup methods for a call site, ie. if a message is sent to a receiver, the language runtime is invoked to handle the lookup and return the actual method to execute. While this might not bring major improvements in itself, the idea is that JVMs could provide better optimizations for these types of call sites.
This approach has been discussed for years, but it's slowly becoming real. Some talks at JavaOne'09 were dedicated to JSR-292: Towards a Renaissance VM (link to online version of slides) and JSR 292 Cookbook (link to online version of slides). The two talks discuss the changes in depth and also provide ideas for future changes to the JVM.

Charles Nutter also made progress in using using invokedynamic and the new method handles in JRuby, an early version of the code is available in a JRuby branch.
The new features are only available on research versions of the JVM or early JDK 7 builds (invokedynamic landed in the JDK 7 tree a few weeks ago).

No comments

Watch Thread Reply

Educational Content

Jesper Boeg on Priming Kanban

In this interview, Jesper Boeg, author of the new InfoQ book – Priming Kanban, discusses the keys to using Kanban effectively, and how to get started if you are currently using other approaches.

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.