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.

New Ruby Enterprise Edition Release Switches to Ruby 1.8.7

Posted by Mirko Stocker on Oct 10, 2009

Sections
Operations & Infrastructure,
Process & Practices,
Development,
Architecture & Design
Topics
Ruby on Rails ,
Performance & Scalability ,
Ruby ,
Release
Tags
Performance Tuning

Phusion has published a new release of their Ruby Enterprise Edition in version 1.8.7-20090928. Previous releases have all based on Ruby 1.8.6, this one now has Ruby 1.8.7 as its origin. Ruby 1.8.7 has been available quite some time now, why switching just now? Phusion addresses this question in their release announcement:

We were initially reluctant about switching to 1.8.7: many people reported various incompatibility problems introduced by 1.8.7, and it seemed that alternative Ruby implementers were boycotting 1.8.7. However, the tide has now changed. Rails 3.0 will drop support for Ruby versions earlier than 1.8.7, JRuby had recently decided to support 1.8.7 and OS X Snow Leopard as well as all the Linux distros ship 1.8.7. We've received a lot of requests from the community for a 1.8.7-based version.

Other news in this release includes the integration of Brent Roman's MBARI patches that improve performance and lowers memory usage. To boost multithreaded speed, a patch from Joe Damato and Aman Gupta has been included as an optional and experimental feature.

How much improvement do these patches achieve? This Ruby Enterprise Edition release has been tested with Twitter, where it led to significant improvements in throughput, as Evan Weaver reported. Evan also noticed that "Ruby is faster if compiled with -Os (optimize for size) than with -O2 or -O3 (optimize for speed). [Phusion's] Hongli pointed out that Ruby has poor instruction locality and benefits most from squeezing tightly into the instruction cache".

InfoQ asked the team behind Ruby Enterprise Edition if there are problems upgrading to the new versions. Ninh Bui from Phusion answers:

Well, apart from the compatibility problems from 1.8.6 to 1.8.7, tcmalloc – the memory allocator we use – doesn't seem to work yet on snow leopard.

 Ninh's colleague Hongli Lai notes:

There are some issues with Xen support: REE is reported to print various (harmless) warning messages when run in Xen. We plan on fixing this in future releases with Xen-specific compilation flags. As for incompatibilities between 1.8.6 and 1.8.7, they're caused by semantic changes, e.g. some methods now return Enumerable instead of Array, some standard libraries classes changed in subtle ways, etc.

The community has caught on with these changes so I don't expect any incompatibility problems.
The new edition of the Ruby Enterprise Edition is available at www.rubyenterpriseedition.com.

No comments

Watch Thread Reply

Educational Content

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.

Beauty Is in the Eye of the Beholder

Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.

Architecting Visa for Massive Scale and Continuous Innovation

John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.

Max Protect: Scalability and Caching at ESPN.com

Sean Comerford unveils ESPN.com’s architecture, what components are used and why, and the current changes the website goes through.

The Seven Deadly Sins of Enterprise Agile Adoption

Are there repeated patterns of failure on Enterprise Agile Enablement efforts? Sanjiv and Arlen discuss Seven Deadly Sins to avoid when adopting Agile in an enterprise.

Questions for an Enterprise Architect

Erik Dörnenburg answers: What is Enterprise and Evolutionary Architecture?, discussing 4 issues: Turning strategy into execution, Ensuring conformance, Where do the architects sit? Buying or building?