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.

Ruby 1.9.1 Is Close - Time To Switch From 1.8.x?

Posted by Werner Schuster on Jan 17, 2009

Sections
Development,
Architecture & Design
Topics
JRuby ,
Performance & Scalability ,
Ruby ,
Dynamic Languages ,
Runtimes
Tags
Ruby1.9 ,
JRuby

A year after Ruby 1.9.0 was released, it hasn't seen much use yet. Some of the reasons are incompatibilities with popular libraries or frameworks, and changes in behavior in some areas. David A. Black recently blogged a few small changes in 1.9.x that developers need to be aware of and which might break software in subtle ways. (InfoQ has reported on many of Ruby 1.9's other changes).

Now Ruby 1.9.1, the first stable release, is about to be released. Ruby 1.9.1 RC1 came out a few weeks ago, and RC2 will soon be released. Currently, the final Ruby 1.9.1 is expected in late January.

A stable 1.9.1 is one reason to take a closer look at running at 1.9.x, if only for the speed improvements. Some features, such as Fibers have been used to increase scalability (eg. NeverBlock for database access or I/O) or for workarounds (eg. NeverBlock HTTP library).

Ruby 1.9.x is also the version used for projects adding new features or usage scenarios for Ruby. The recently announced Rhodes framework (Rhodes is now available in version 0.2) for mobile applications uses 1.9.x versions of Ruby on some of the supported mobile platforms.
Another example is MacRuby, which should also soon see another release. MacRuby is based on Ruby 1.9.x, and focuses on tight integration with Objective-C, to the point where object such as Strings are actually Objective-C String objects; this tight integration allows to script Objective-C APIs with little to no overhead, as well as making use of Objective-C's Garbage Collector (the Objective-C GC (Autozone) was recently open sourced).

While JRuby is aiming to support 1.9.x, with full parsing and partial library support already in place in 1.1.6, other implementations (except for MacRuby), still lag behind in 1.9.x support.

What's keeping you on Ruby 1.8.x? What Ruby 1.9.1 features (performance, Fibers, threading changes, encoding changes, etc) are reasons for switching?

No by Daniel Berger Posted
I don't miss anything - yet by Hermann Schmidt Posted
beta! by David Fu Posted
  1. Back to top

    No

    by Daniel Berger

    If you're using 1.9.x, you're using beta software. Avoid.

  2. Back to top

    I don't miss anything - yet

    by Hermann Schmidt

    For the small scale things I do with (J)Ruby, I am happy with 1.8.6. I don't miss anything and it is very solid. Actually, the "String = byte array" concept was perfect for my applicaton.

    For serious multi-language enterprise applications, encoding and scaling issues are unavoidable and would make me consider 1.9.

    I think that wide-spread languages or APIs have not many chances for fundamental changes during their lifetime. Once one stable version is used all over the place, the acceptance of new features is slow. Java 5 features are an example. java.util.concurrent? XLST 2.0 anyone? The dreaded Java XML APIs (do one thing in five ways)?
    It takes years to settle into the developers' minds. Why? Because they didn't miss it that much and have to work in environments, which don't keep up for a long while (some never will). I still must write Java 1.3 code in some places!

  3. Back to top

    beta!

    by David Fu

    i think 2.0 is what's gonna come down the road soon and that will actually be the prod version!

Educational Content

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.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.