Hasn'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…
Standalone Nashorn 15.0 is out
31–35 of 35 posts
Re: Standalone Nashorn 15.0 is out
#32Hasn'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…
Is GraalJS just an interface to NodeJS, or why do they mention the NodeJS API?
Re: Standalone Nashorn 15.0 is out
#33Earlier quoted context omitted.
Is GraalJS just an interface to NodeJS, or why do they mention the NodeJS API?
They have both. GraalJS itself is just a JS runtime, but they've also made a separate package that reimplements the Node stdlib (but doesn't work on Windows yet, for example)
Re: Standalone Nashorn 15.0 is out
#34Earlier 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
#35Hasn'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…
It depends, do you want support for your JVM? If so:
* Graal CE has no support
* Graal EE requires either running on Oracle Cloud or calling Oracle Sales for a custom quote. These are non-starters for many.
* JVMCI requires `-XX:+UnlockExperimentalVMOptions` which often voids support.
* I believe Mandrel is supported but requires RHEL