2 ms·
Does it use Rhino (to compile JS into bytecode)?
by lisivka 10y ago
Does it use Rhino (to compile JS into bytecode)?
- stenrs 10y agoNo, it's using Nashorn which is bundled with Java 1.8+. It compiles Javascript into JVM bytecode as Rhino, but it's more performant.
- lisivka 10y agoThanks. Last time I looked at JS in Sun Java, it was in interpreter mode only due to license issues, so I always bundled Rhino with my projects to be able to precompile JS code, so it will run faster. But now performance of Nashorn is pretty impressive: https://blogs.oracle.com/nashorn/entry/nashorn_performance_work_in_the https://blogs.oracle.com/nashorn/entry/nashorn_performance_w... .