by hansjorg · 6y ago · 0 comments
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/pipermail/nashorn-dev/2020-Oct...
> The preferred way to run GraalVM JavaScript is from a GraalVM. If you prefer running it on a stock JVM, please have a look at the documentation in RunOnJDK.md.
I'm running it on a stock OpenJDK JVM without any issue, just by including a Maven dependency. For best performance you should run it on GraalVM (where the Community Edition is based on OpenJDK).
https://github.com/graalvm/graaljs/blob/master/LICENSE
"The Universal Permissive License (UPL), Version 1.0"
And about the UPL:
https://tldrlegal.com/license/universal-permissive-license-1...
"... including an explicit patent grant, clear ability to relicense ..."
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