Hi,
jArchi 1.0.0 is available at the usual outlets.
This is a significant release for those of you who have run into limitations with the Nashorn JS engine. There is now an option in Preferences to use the GraalVM engine which supports the ECMAScript 2020 specification. For more info see https://github.com/archimatetool/archi-scripting-plugin/issues/85
Note that the GraalVM option is experimental because there may be some issues with it. Try it, and see if it works for you. If not, use one of the Nashorn engines.
Change log - https://github.com/archimatetool/archi-scripting-plugin/wiki/Change-Log
The wiki has also been updated with the new API descriptions - https://github.com/archimatetool/archi-scripting-plugin/wiki/jArchi-Object
Found a bug. Where shall I report it ?
Quote from: rchevallier on January 04, 2021, 19:48:52 PM
Found a bug. Where shall I report it ?
https://github.com/archimatetool/archi-scripting-plugin/issues
Just a heads up that there are some differences between Nashorn and GraalVM.
For example:
https://github.com/archimatetool/archi-scripting-plugin/issues/87
https://github.com/archimatetool/archi-scripting-plugin/issues/88
The GraalVM option is experimental so if you find something that works in Nashorn but not GraalVM please experiment/debug/whatever in order to narrow it down and perhaps use an alternate idiom.
It also might be worth searching the GraalVM issues tracker - https://github.com/oracle/graaljs/issues
The GraalVM option is something that we can all try to see if it's worth supporting. I think it has merit, but we must be prepared to adjust our jArchi scripts if necessary. Remember, you can always fall back to Nashorn.
IMHO, having a full recent version of Javascript standard is really a plus (even if it means having to adapt the current jarchi script).
Nashorn is deprecated and will disappear in the long run. Better convert sooner than later
Thanks for the great work
Quote from: rchevallier on January 05, 2021, 18:15:31 PM
IMHO, having a full recent version of Javascript standard is really a plus (even if it means having to adapt the current jarchi script).
Nashorn is deprecated and will disappear in the long run. Better convert sooner than later
Thanks for the great work
I agree. I think we should regard, at least for now, GraalVM support as a work in progress. Therefore, any API might change. I'm sure over time we can solve or work around any issues arising. I think I already solved this one - https://github.com/archimatetool/archi-scripting-plugin/issues/87