Ruby 1.9.3 Preview 1 Released – What’s New?
I have just released Ruby 1.9.3 preview1. This is the first preview of Ruby 1.9.3 releases.
I know there are still minor known issues on 1.9.3 but I believe it will be fixed before the release of Ruby 1.9.3-p0. Let's try it out. If you have any trouble on it, please let us know it.
It's important to note that this is not the latest production release of Ruby 1.9 (that remains Ruby 1.9.2-p290 for now) but is a preview release so you can try out your libraries and other important code ahead of the full production release of Ruby 1.9.3-p0.
Pick up the tarfile of the release at http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-preview1.tar.gz if you fancy a crawl about. If you want to check it out with RVM, instructions follow.
Let's waltz through some of Ruby 1.9.3 preview 1's key updates over the existing Ruby 1.9.2:
- The load.c patch discussed at length in this post is in! Yes, faster loading times in Rails 3.x should now be yours to enjoy :-)
- Previously Ruby has been released under a joint GPLv2 and "Ruby" license. Ruby 1.9.3 is now licensed under a joint 2-clause BSD license and the "Ruby" license.
openssllibrary has new maintainers and is, supposedly, a lot better for it.
io/consoleis an all new library in the standard library. It's by Nobu Nakada and adds console capabilities to IO instances. On inclusion, it adds
ioflushmethods to IO instances and offers a class method called
console. I'll try and write about it soon.
test/unitgains parallel test running support
- Michael Edgar has made some significant improvments to Ripper, the built-in Ruby parser and parser hooks in 1.9. On Hacker News he suggests that "it's close to being ready to power a full Ruby implementation at this point"
datelibraries were reimplemented in C, primarily for performance reasons. A quick benchmark shows significant improvements in Date's performance.
Ruby 1.9.3 is also specifically covered in our Ruby 1.9 Walkthrough, a mega screencast aimed at Ruby 1.8.7 developers who want to learn all about what's new, what's gone, and what's different in Ruby 1.9.2 and 1.9.3.
How to Give 1.9.3 Preview 1 A Try With RVM
rvm get head rvm reload rvm install 1.9.3-preview1 rvm use 1.9.3
I wouldn't advise running an
rvm upgrade at this time since it's not production-ready, but you can try installing your usual gems and, ideally, libraries that you develop and maintain so that we can all have a smooth upgrade to 1.9.3 in the next couple of months.