Skip to content
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

Issue 302: Switch from Nashorn to GraalVM for Javascript execution. #221

Merged
merged 2 commits into from
Oct 19, 2023

Commits on Oct 18, 2023

  1. Issue 302: Switch from Nashorn to GraalVM for Javascript execution.

    Instructions provided by issue are applied as-is with no observed problems.
    kaladay committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    f2f74c0 View commit details
    Browse the repository at this point in the history
  2. Issue 302: Include js-scriptengine and use upper case 'G' in 'Graal.js'.

    This dependency is also required:
    ```
        <dependency>
          <groupId>org.graalvm.js</groupId>
          <artifactId>js-scriptengine</artifactId>
          <version>22.3.3</version>
        </dependency>
    ```
    
    The following arning is observed:
    ```
    [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
    The guest application code will therefore be executed in interpreted mode only.
    Execution only in interpreted mode will strongly impact the guest application performance.
    For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
    To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
    [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
    The guest application code will therefore be executed in interpreted mode only.
    Execution only in interpreted mode will strongly impact the guest application performance.
    For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
    To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
    ```
    
    The configuration file appears to be case sensitive.
    Use `Graal.js` with an upper case `G` rather than a lower case `g`.
    kaladay committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    f220935 View commit details
    Browse the repository at this point in the history