4 ms·
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 br
by jcrosby 17y ago
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.
- bensummers 17y agoI'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!