How much of the rubyspec does hotruby implement?

A

andrew mcelroy

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
 
A

andrew mcelroy

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?
I realize that it targets ruby 1.9. I don't know why I asked this.
 
J

Jörg W Mittag

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

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.
Also, does anyone know if it uses 1.8 or 1.9 syntax?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,147
Messages
2,570,833
Members
47,380
Latest member
AlinaBlevi

Latest Threads

Top