InfoQ

News

Ruby VM Roundup: MacRuby 0.5 Beta 2 Adds AOT Tooling, Rubinius 0.13 Released

Posted by Werner Schuster on Nov 20, 2009

Community
Ruby
Topics
Runtimes ,
Performance & Scalability
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

Brian Marick on 4 Challenges and 5 Guiding Values of Agile Software Development

Brian Marick takes us through a quick tour of the most important values and challenges to adopting Agile successfully (they aren't the typical challenges and values we hear in the community).

Are You a Software Architect?

The line between development and architecture is tricky. Does it exist at all? Is an ivory tower actually needed? There's a balance in the middle, but how do you move from developer to architect?

Agile – A Way of Life and Pragmatic Use of Authority

The word 'authority' sometimes produces an allergic response in hard-line agilists. Freedom and authority – both are bad if misused and both are good if used in right spirit for a noble cause.

Getting Started with Grails, Second Edition

"Getting Started with Grails" brings you up to speed on this modern web framework. Companies as varied as LinkedIn, Wired, and Taco Bell are all using Grails. Are you ready to get started as well?

Using ITIL V3 as a Foundation for SOA Governance

Those familiar with only ITIL V2 often scoff at the thought that ITIL could serve as a governance framework for SOA. With ITIL V3, the focus of the framework shifted towards service-orientation.

Adrian Colyer on AspectJ, tc Server and dm Server

SpringSource CTO Adrian Colyer discusses AspectJ, SpringSource's dm Server and tc Server products, OSGi and Scrum.

Adam Wiggins on Heroku

Heroku's Adam Wiggins talks about Rails, Background Jobs, Add-Ons, Ruby, and how Heroku manages to work around Ruby's inefficiencies using Erlang and other languages.

SOA as an Architectural Pattern: Best Practices in Software Architecture

For Grady Booch the foundation of a good architecture is patterns, SOA being just one of many patterns. In this Second Life presentation, Booch attempts to bring more clarity on what architecture is.