Ruby to JavaScript

drbrain | Wed, 05 Jul 2006 21:35:04 GMT

Posted in

Paul Battley wrote on the ruby-talk mailing list:

Here's something for the hungry mob to tear apart: automatic Ruby to JavaScript conversion. It seems somehow wrong, like grafting a pretty girl's head onto a donkey, but I've done it anyway!

[...]

It uses Ryan Davis et al's ParseTree and Florian Gro's ruby.js for most of the hard work. It's still very limited, and there are many warts, not least of which is the requirement for an explicit receiver on every method.

That said, the code's here: http://po-ru.com/files/ruby2js.tar.gz

This is a pretty nifty use of ParseTree, hopefully I'll get him using ParseTree's SexpProcessor, too. UPDATE: The Convert Ruby to JavaScript homepage. comment

Comments RSS FEED

great stuff!!! can’t wait

sam glover said 8 days later

Comments are disabled