XRuby 0.2.0: More Ways of Bringing Ruby to Java
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.