DevHeads.net

How much of the rubyspec does hotruby implement?

Greetings,

Does anyone know how feature complete hot ruby is?
That is, how much of the rubyspec it implements?

Also, does anyone know if it uses 1.8 or 1.9 syntax?

Thanks,
Andrew McElroy
TryRuby.org

Comments

Re: How much of the rubyspec does hotruby implement?

By =?utf-8?Q?J=C3=... at 07/20/2010 - 18:55

I don't know, but I have faint memories of reading an article which
mentioned that it didn't even implement enough of Ruby to *run* the
specs, let alone pass them. Although that was a long time ago, and it
probably has significantly improved since then.

Neither, actually. HotRuby doesn't run Ruby, it runs YARV bytecode.
So, if you can get your hands on a compiler that spits out YARV
bytecode, HotRuby runs it.

One such compiler is obviously the one built into YARV itself, which
implements Ruby 1.9, but there's nothing stopping you from writing a
compiler which compiles Ruby 1.8 or indeed *any* language to YARV
bytecode. Indeed, I vaguely remember reading about a Lisp
implementation which targets YARV bytecode.

jwm

Re: How much of the rubyspec does hotruby implement?

By andrew mcelroy at 07/20/2010 - 15:48

I realize that it targets ruby 1.9. I don't know why I asked this.