News for hackers. Stuff that matters.
Re:Try Ruby (in your browser, now with 1.9) by mpk on Thursday January 07, 2010 @07:59PM (#1038492)
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!)

Re:Try Ruby (in your browser, now with 1.9) by scotth on Thursday January 07, 2010 @10:34PM (#1038767)
I 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)

Re:Try Ruby (in your browser, now with 1.9) by ThinkWriteMute on Thursday January 07, 2010 @08:12PM (#1038509)
I believe a Ruby VM is already in the works, but my cold addled brain can't google fu right now.
Re:Try Ruby (in your browser, now with 1.9) by Zev on Thursday January 07, 2010 @08:25PM (#1038526)
That would be HotRuby, http://hotruby.yukoba.jp.