BT

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

by Werner Schuster on Nov 20, 2009 |

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.

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT