4 ms·
Rhino is fine if you have to use the JVM. If you have a choice then I would avoid it. It performs like a pig. The re-throws everything as a RuntimeException. It
by jm4 16y ago
Rhino is fine if you have to use the JVM. If you have a choice then I would avoid it. It performs like a pig. The re-throws everything as a RuntimeException. It uses statics all over the place so having more than one instance can cause all sorts of weird problems. The documentation is a little out of date and there are some gotchas that you are left to figure out on your own. Still, it's the only thing available on the JVM and it actually works so it's not all bad. I would love to have alternatives to look at, but it's not to the point where I want to start writing my own. FYI, I'm using it for DOM scripting in a custom spider.
Also, like someone else said, Rhino is an analog for V8 while RingoJS is an analog for NodeJS.