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

Provide graaljs that's useable across JDK versions 11 through 22 by backporting #7510 #9511

Open
mk opened this issue Aug 16, 2024 · 1 comment
Assignees
Labels

Comments

@mk
Copy link

mk commented Aug 16, 2024

Feature request

Is your feature request related to a problem? Please describe.
We've been using org.graalvm.js/js 21.3.2.1 in http://github.com/nextjournal/markdown for use in http://github.com/nextjournal/clerk. We've used graaljs to leverage markdown-it as a markdown parser.

`21.3.2.1. does not yet contain #7510, so it crashes on JDK 22 as reported in nextjournal/clerk#642 and nextjournal/markdown#23.

Upgrading to a later version would in turn break compatibility with JDK 11, which is still heavily used in the Clojure community (last year's state of Clojure survey still saw JDK 8 at 21% and JDK 11 at 47% respectively).

Describe the solution you'd like.
We would like to be able to depend on a org.graalvm.js/js library that works across JDK 11 to 22. One potential solution discussed with @chumer on slack is back porting #7510 to 21.3.

Describe who do you think will benefit the most.
Library authors. A version of org.graalvm.js/js that is usable across a wider range of JDK versions still in use today enables polyglot use cases in libraries where there's no control over the JDK version used and enterprise users are slow to adopt newer versions, especially in the Clojure community with its focus on backwards-compatibility.

Describe alternatives you've considered.
We evaluating moving away from using org.graalvm.js/js and switch our implementation to a Java-based one. Since markdown is not well specified, this is a substaintial task and we lose the ability to rely on the same implementation in browsers as well as on the JDK.

Additional context.

Express whether you'd like to help contributing this feature
Happy to help with testing.

@chumer
Copy link
Member

chumer commented Aug 16, 2024

I agree we should backport 23.1 to 21.3 to make it possible to run on JDK 22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants