2 ms·
Well, an official spec for Ruby is in the works and there's already one for JavaScript (ECMAScript). Someone is bound to build a Ruby VM in JS at some point and
by mpk 17y ago
Well, an official spec for Ruby is in the works and there's already one for JavaScript (ECMAScript). Someone is bound to build a Ruby VM in JS at some point and then it'll be trivial to build a site like this.
The performance will be horrible, of course, but once that happens some other person will come along and run a subset of Rails (or some other Ruby web framework) with an evented db backend on it (for async callbacks to the server over HTTP) to run an app in the browser.
Which would be pretty cool, though not useful. (But don't let that stop you, whoever you are!)
- ThinkWriteMute 17y agoI believe a Ruby VM is already in the works, but my cold addled brain can't google fu right now.
- Zev 17y agoThat would be HotRuby, http://hotruby.yukoba.jp http://hotruby.yukoba.jp.
- scotth 17y agoI can imagine a fairly clean mapping between languages. If the result of compilation was JavaScript code, to be passed on to the browser using eval(), the code would perform quite well. So, assuming that I'm correct, what you would be left with is the one-time cost of parsing. And how costly is parsing generally? (I am keeping in mind that Ruby may not be general)