Standalone Nashorn 15.0 is out
11–20 of 35 posts
Re: Standalone Nashorn 15.0 is out
#12Earlier quoted context omitted.
To add to that. It was previously included directly in the JDK but is now a standalone product.
Why do they keep doing that, it makes dependecy management etc, more complicated. Sometime ago they did that with JavaFx, while still retaining AWT as part of JDK: what a baffling move, discard the best GUI framework on the platform, while including the most obsolete one.
Re: Standalone Nashorn 15.0 is out
#13Is this just for those who are stuck with Nashorn, or will there be new development?
GraalJS is ECMASCript 2020 compatible and is said to rival V8 on performance, so I would've thought it the obvious choice for new projects going forward.
https://github.com/graalvm/graaljs
Edit: found more info about this release in the initial announcement:
https://mail.openjdk.java.net/pipermail/nashorn-dev/2020-Oct...
Re: Standalone Nashorn 15.0 is out
#14For anyone else wondering what Nashorn is: It is Javascript running in the JVM https://en.wikipedia.org/wiki/Nashorn_(JavaScript_engine)
Re: Standalone Nashorn 15.0 is out
#15For anyone else wondering what Nashorn is: It is Javascript running in the JVM https://en.wikipedia.org/wiki/Nashorn_(JavaScript_engine)
any good reason to use this over v8/Node?
Using node/v8 requires another distributable and starting up a new process.
Re: Standalone Nashorn 15.0 is out
#16I wonder how performance compares to other JavaScript engines.
Graal JS is much closer to being on par with modern JS engines. Nashorn is on par with JS engines from 10 years ago.
Re: Standalone Nashorn 15.0 is out
#17Hasn't Nashorn been superseded by GraalJS? Is this just for those who are stuck with Nashorn, or will there be new development? GraalJS is ECMASCript 2020 compatible and is said to rival V8 on performance, so I would've thought it the obvious choice for new projects going forward. https://github.com/graalvm/graaljs Edit: found more info about this release in the initial announcement: https://mail.openjdk.java.net/pip…
Re: Standalone Nashorn 15.0 is out
#18For anyone else wondering what Nashorn is: It is Javascript running in the JVM https://en.wikipedia.org/wiki/Nashorn_(JavaScript_engine)
I remember it being a bit of a pig, both in memory consumption and CPU use, but I'm sure that was just relative to the black magic behind V8.
Re: Standalone Nashorn 15.0 is out
#19Earlier quoted context omitted.
any good reason to use this over v8/Node?
You are using java but want access to Javascript for various reasons. (Maybe you want to add scripting? Maybe you want to use a JS lib? Really sort of depends on the circumstance). Using node/v8 requires another distributable and starting up a new process.
I used it to add Markdown to a Java app, because JS-based Markdown libraries were better than Java-based ones.
Re: Standalone Nashorn 15.0 is out
#20Hasn't Nashorn been superseded by GraalJS? Is this just for those who are stuck with Nashorn, or will there be new development? GraalJS is ECMASCript 2020 compatible and is said to rival V8 on performance, so I would've thought it the obvious choice for new projects going forward. https://github.com/graalvm/graaljs Edit: found more info about this release in the initial announcement: https://mail.openjdk.java.net/pip…