Jason Yates on 19 Jan 2007 22:55:44 -0000

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] Ruby in a JVM

I'd be surprised if JRuby ran faster than regular Ruby, but I suppose
it's possible.  If speed interests you, you might want to investigate
YARV.  It just got merged into the Ruby trunk, so it'll be awhile
before it's production.  But it promises some major speed increases
(up to 11.7x in some cases):

I'd also be suprised. My understanding is you cannot use the JVM's method dispatching without static typing. So you'd have to emulate via software, hence slowing it down. Plus the JVM has very little support for modifying code at runtime. Even something like accessing instance variables in JRuby would be slower. In Java the instance variables are known at compile time. In Ruby this isn't the case. Nor does the JVM support closures or mixins.

YARV does look promising though.  There is also some talk of using
Strongtalk, a Smalltalk VM, for Ruby also.  Which looks pretty


Jason Yates
To unsubscribe or change your settings, visit: