4 ms·
Ruby VM in JavaScript
- alex_c 19y agoPretty neat... but I'm disappointed that the compilation is done server-side. An entirely in-browser solution would be so much cooler ;)
- Hexstream 19y ago"An entirely in-browser solution would be so much cooler" ... and slower.
- alex_c 19y agoOf course. But I see it as a neat proof of concept rather than something practical (even after reading the comments at the link), so I don't see speed as an issue... may as well go all the way ;) I AM also curious how much slower it would be, since this version is faster than regular Ruby. I suspect the size of the JS files would be a bigger issue than the speed.
- aston 19y agoHaha. Right when I saw the post title, I jokingly thought "it prolly runs faster than real Ruby..." Sometimes fact is stranger than fiction.
- jamongkad 19y agoI saw this a while back. But I never gotten around to try it out. If I'm not mistaken does this mean I can write JavaScript in Ruby?
- jamesbritt 19y agoThere's also RubyJS: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/233882 http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/... A tool to convert a subset of Ruby into JavaScript. I saw Michael's talk at RubyConf 2007; the video is probably up on the confreaks site. Really neat stuff.