-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES6 Support for Automation #9266
Comments
Related discussion in forums: https://community.openhab.org/t/graalvm-for-automation/84116 |
I've transferred this issue to the addons repo since that's where PRs for automation add-ons should be created. That's also the repo where your #8516 PR is. |
currently the Nashorn script engine factory ( If the GraalVM on the other side is only thought of as an alternative to the default Nashorn implementation, having it as an addon is the right way to go. I guess that the platform maintainers must decide on this topic to reach a final and usable conclusion. Even if Nashon stays in OH3 as the default implementation, you could think about a separation of the Nashorn script engine from the The GraalVM implementation can then be put into another bundle, either as a core bundle or as an addon. This would give the user more control over what will be the default javascript engine. The setup procedure or the settings in OH3 can then take care of the default implementation with a suitable default for fresh installations. Your thoughts on this? |
Something to note is that Nashorn is deprecated, so my assumption is that GraalJS should replace it. That does raise the question of where these engines go though; they are currently spread across Another thing of note: having two engines both supporting |
Hey everybody, |
I (author of this PR) am not a maintainer, so I cannot really make progress myself. I'm hoping that it's picked up for review by someone who is, at which point it should move forward. |
Fixed by #8516. |
I have written a bundle which adds the GraalJS scripting engine to OH automation. This allows writing scripts in ES6 (well, even later versions), and should be more compatible with the future (given that Nashorn is deprecated).
Currently the bundle is self-contained and requires no changes in other bundles (although JS using Nashorn-specific extensions will break).
I'd like to contribute this, although I'm unsure of the desired structure for the automation stuff. Should I submit a PR to the openhab2-addons repo? Or should it be core, like the existing automation pieces are? Or a new repo entirely?
The text was updated successfully, but these errors were encountered: