Monday, March 03, 2008

Catching up with Ruby 1.9

I finally got the time to play around with Ruby 1.9. It seems like Ruby can handle escaped unicode sequences now (finally! after all the pain we went through dealing with this encoding with Ruby 1.8.x...) :-)


puts "\u00fc"
=> ΓΌ

There have been some improvements regarding the speed. This benchmark went down from 12 sec (with Ruby 1.8.x) to 5 sec on my sweet Mac Mini (1.5 GHz, Core Solo). Ruby 1.9 looks promising so far - maybe i'll keep it in my toolbox.

2 comments:

Christian said...

The changes in Ruby 1.9.1 (what is the actual "release") look promising, but atm it´s not ready for productive use, but nice for playing around a bit...

Christian said...

yep, Ruby 1.9.x is only a kind of a testing or preview release for 2.0. After my experiences w/ Ruby in the past i doubt i'll use Ruby in an production environment again at all ;-) (Maybe JRuby could change my opion a bit...)

The Python testing releases like 2.5.x on the other hand are quite production ready imo...