InfoQ

News

Releases: JRuby 1.1.2; New Preview of Ruby 1.8.7

Posted by Werner Schuster on May 28, 2008 03:50 PM

Community
Java,
Ruby
Topics
Runtimes,
JRuby,
Programming
Tags
Open Source Project Releases,
JRuby,
Ruby1.9
Just in time for RailsConf 2008JRuby 1.1.2 was released  (download JRuby 1.1.2 versions).  This maintenance release in the 1.1.x branch consists of bug fixes and some major performance increases.

The startup performance boost (reported previously), is based on the idea to put JRuby .jar files into the bootclasspath - loading classes from the bootclasspath than from the regular classpath is faster because the bytecode doesn't get verified.

Another Ruby runtime release is available in the stable Ruby 1.8.x branch of MRI. Ruby 1.8.7 preview 4 has been released. You can see a rough list of features and API added since 1.8.6 or the full Changelog for MRI.

A quick diff of the new features in Ruby 1.8.7 preview 4 and previous previews, shows some activity and some previously introduced features disappeared and changed again.

A big change is the re-appearance of Symbol#to_proc. The feature made it's first appearance in Ruby 1.9. Ruby 1.8.7 preview 1 included a backported version - which was quickly discovered to break software using their custom versions of Symbol#to_proc, in particular Rails.  This caused the feature to be pulled - and now it's back, after the behavior was changed to comply with the test suite. As it seems now, Symbol#to_proc seems to be here to stay in Ruby 1.8.7.

Here's a list of further API changes not mentioned previously:
  • Binding#eval
  • __method__  which returns the name of the current method as a Symbol
  • String#bytesize returns the size of the string in bytes
  • Object#instance_exec
The behavior of a few APIs was changed, which might cause some applications to break:
  • Date.parse was changed so that  '##.##.##' is now interpreted as 'YY.MM.DD'  instead of 'MM.DD.YY'.
  • String#to_i, String#hex and String#oct changed the behavior for the underscore '_' character in number strings, eg '1__0'.to_i in Ruby 1.8.6 was turned into '10', but in Ruby 1.8.7 it is turned into '1'. See the release notes for a more complete overview.

No comments

Reply

Exclusive Content

VMware Infrastructure 3 Book Excerpt and Author Interview

VMware Infrastructure 3: Advanced Technical Design Guide and Advanced Operations Guide provides a wealth of practical insights into setting up virtualization in todays corporate environments.

Architectures of extraordinarily large, self-sustaining systems

Can a system that is so large it cannot be comprehended be "designed" in a conventional sense? The foundations of computing are about to change. In this talk, Richard P. Gabriel explores why and how.

Using Ruby Fibers for Async I/O: NeverBlock and Revactor

Ruby 1.9's Fibers and non-blocking I/O are getting more attention - we talked to Mohammad A. Ali of the NeverBlock project and Tony Arcieri of the Revactor project.

Agile and Beyond - The Power of Aspirational Teams

Tim Mackinnon talks about the aspirations behind the Agile principles and practices, the desire to become efficient, to write quality code which does not end up being thrown away.

Concurrency: Past and Present

Brian Goetz discusses the difficulties of creating multithreaded programs correctly, incorrect synchronization, race conditions, deadlock, STM, concurrency, alternatives to threads, Erlang, Scala.

ActionScript 3 for Java Programmers

Often the hardest part of changing technologies is language syntax differences. This new article provides Java developers with a transition guide to Actionscript which forms the foundation of Flex.

Neal Ford On Programming Languages and Platforms

Neal Ford talks about having multiple languages running on one of the two major platforms: Java and .NET. He also presents the advantages offered by Ruby compared to static languages like Java or C#.

Future Directions for Agile

David Anderson talks about the history of Agile, the current status of it and his vision for the future. The role of Agile consists in finding ways to implement its principles.