jArchi 1.0.0

Started by Phil Beauvoir, January 04, 2021, 11:46:03 AM

Previous topic - Next topic

Phil Beauvoir

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
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

rchevallier

Found a bug. Where shall I report it ?

Phil Beauvoir

If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

Phil Beauvoir

#3
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.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

rchevallier

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


Phil Beauvoir

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
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.