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 VM Roundup: MacRuby 0.5 Beta 2 Adds AOT Tooling, Rubinius 0.13 Released

Posted by Werner Schuster on Nov 20, 2009

Sections
Development,
Architecture & Design
Topics
Ruby ,
Performance & Scalability ,
Runtimes
Tags
Rubinius ,
Virtual Machines

MacRuby 0.5 is coming along - now MacRuby 0.5 beta 2 is available, bringing lots of improvements and better compatibility with the RubySpec.

Ahead of Time (AOT) compilation was improved as well:

Also, macrubyc will generate by default executables linking against MacRuby.framework dynamically, which greatly reduces the executable size. In order to build a full standalone executable, the —static argument must be passed.


Writing a standalone, self contained application gets easier with a new tool:

A new utility, called macruby_deploy, is now available to help you deploy your MacRuby applications. It provides options to compile ahead-of-time your application’s Ruby source code as well as relocating the MacRuby framework inside the application bundle. This way your application is ready for deployment, with its source code hidden because it is pre-compiled.

InfoQ has covered the big changes in MacRuby 0.5 previously, including the removal of the GIL, the new LLVM-based VM and more.

Another Ruby VM has released a new version: Rubinius 0.13 is available. Some of the highlights of the release are the JIT that's now on by default and an overhauled compiler and parser.

One addition is the QueryAgent which might become useful in the future to connect to a live system. It's a system that runs inside the Rubinius VM and waits for connections on a configurable port. Clients can connect to it and query certain status or runtime information; at the moment only configuration items seem to be available. The system uses BERT to encode the data sent across the connection. To try out the system, launch Rubinius with /bin/rbx -Xagent.port=$PORT_NUMBER (choose an available $PORT_NUMBER). The protocol is undocumented, but the Agent implementation gives a clue as to what's supported.

To try Rubinius, get the Rubinius 0.13 from Github. To compile, run ./configure followed by rake; to build Rubinius with LLVM replace ./configure with ./configure --enable-llvm which will take care of getting and building LLVM.
To see how Rubinius stacks up against Ruby 1.8.7, try out ./bin/bm to run a whole batch of benchmarks against MRI and then Rubinius.

No comments

Watch Thread Reply

Educational Content

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?

Wrap Your SQL Head Around Riak MapReduce

Sean Cribbs explains what Map-Reduce and Riak are, why and how to use Map-Reduce with Riak, and how to convert SQL queries into their Map-Reduce equivalents.