3 ms·
Since when do new systems get integrated into Java, then officially deprecated for removal less than 5 years later? New technologies take time to be integrated
by AgentK20 8y ago
Since when do new systems get integrated into Java, then officially deprecated for removal less than 5 years later? New technologies take time to be integrated into existing stacks, and new projects take time to come to market. I recognize that it's a lot of work to keep up with the ECMAScript language, but even if the ECMAScript language support lags behind official, that's better than removing a component that was hyped up in the Java 8 release.
My team uses the Nashorn engine as a sandboxed scripting engine in an upcoming game. Because of the nature of the transpiling of javascript into Java, we've got very granular control over what classes, fields, and methods can be accessed from the javascript context. I'm not sure at this point what we're going to do about this, so I'm looking at things like GraalJS. Anyone have any experience with a use case like ours?
- kjeetgill 8y agoI'm not that familiar with Nashorn but the Truffle framework on which GraalJS is built has considerations for sandboxing. see: hostClassFilter() https://github.com/oracle/graal/blob/master/sdk/src/org.graalvm.polyglot/src/org/graalvm/polyglot/Context.java#L835 https://github.com/oracle/graal/blob/master/sdk/src/org.graa... I suspect that your use-case might be easier to port than most (if it comes to that) since you probably aren't using as many platform APIs. I agree that the volatility in java-land is new and unsettling and Nashorn is pretty young to be removed but the js ecosystem itself has been changing fast lately. I hope they keep Nashorn around even of they don't keep up with newer language versions.