Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

XRuby 0.2.0: More Ways of Bringing Ruby to Java

By Hendy Irawan / June 6, 2007

Just a couple of weeks ago, the XRuby team released XRuby 0.2.0. XRuby is Ruby-to-Java bytecode compiler, so you can compile Ruby source code directly to Java classes. The latest version fixes several issues and adds debugging support.

The goal of this project is similar to JRuby, to run Ruby applications on the Java Virtual Machine. Each takes a different approach however. JRuby uses an interpreter written in Java to execute Ruby code at runtime. XRuby, on the other hand, compiles the Ruby code to Java bytecode (although JRuby is introducing a feature which also does this - the JIT perform of JRuby is beginning to become impressive) which means there is less overhead and potentially increased performance. According to the developers, it even runs most benchmarks faster than native Ruby which makes it one to watch in future.

About Hendy Irawan

Ruby programmer from Indonesia. View all posts by Hendy Irawan →

Comments

  1. dreamhead says:

    Thank you for your focus! XRuby can compile most Ruby scripts. JRuby has begun to move to compilation. JIT of JRuby depends on compilation, but just part of scripts can be compiled. XRuby and JRuby could help each other to enjoy Ruby on JVM.

  2. Hendy Irawan says:

    Dear dreamhead:

    Thank you for your kind comment. I really hope these projects do very well as it'll be very beneficial for many people.

    The following is a controversial opinion, perhaps, but one day you might even can say that "the world 'runs' on Ruby (or XRuby... or JRuby.. or...)" just because Google uses them. ;-)

Other Posts to Enjoy

Twitter Mentions