BT

Your opinion matters! Please fill in the InfoQ Survey!

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

| by Werner Schuster Follow 4 Followers on Nov 20, 2009. Estimated reading time: 1 minute |

A note to our readers: As per your request we have developed a set of features that allow you to reduce the noise, while not losing sight of anything that is important. Get email and web notifications by choosing the topics you are interested in.

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.

Rate this Article

Adoption Stage
Style

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

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT