News for hackers. Stuff that matters.
Re:Snarl - A JavaScript Bridge for JRuby by jcrosby on Monday November 09, 2009 @01:36PM (#931450)
Hi Ben. This first version attacks the most efficient way to use the bridge -- keep the Ruby and JavaScript parts as self-contained as possible, crossing the bridge only when absolutely necessary. A future version will likely provide the type of feature you are describing for use in scenarios where performance is less critical.
Re:Snarl - A JavaScript Bridge for JRuby by bensummers on Monday November 09, 2009 @04:17PM (#931747)
I've been looking into the JRuby / Rhino combination to implement server-side user plugins, where you can't trust the code[1]. I don't think it'll be that slow to let JS call Ruby code.

That said, I'm now wondering whether writing them in Java and using SecurityManagers plus byte-code verification and adding of checks for running too long in loops is the way to go.

[1] And of course, because it's Javascript, it can run in the browser too. With suitable shim code, you can then debug in Firebug. IDE for free!