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

GraalJS should support Ahead-of-Time(AOT) compilation to Native binary like GraalPy. #818

Open
Foxchandaisuki opened this issue Apr 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Foxchandaisuki
Copy link

GraalPy, which is Python implication of the GraalVM, supports AOT compilation to Native binary.

GraalPy is compiled ahead-of-time to a native executable.
This means that you do not need a JVM to run GraalPy and it is compact in size.

In time of now, most of main implications of Python and JavaScript do NOT support AOT compilation.

For example, NodeJS , Deno, and even Bun only supports Just-in-Time(JIT) compilation and they have no plan to support AOT.

However, the case of GraalPy shows us that making Script language to be compiled to Native binary is technically possible. And already there is an AOT compiler for Javascript like ChowJS, but unfortunately it is a closed source, and maybe a project NOT free of charge.

Static Hermes, which is being developed by Meta shows us that AOT compiling of JavaScript could be a killer feature of the project.

@woess woess added the enhancement New feature or request label May 10, 2024
@mio-19
Copy link

mio-19 commented Oct 12, 2024

I read that GraalPy only compile python to bytecode? Still it is useful to do parsing on build time. I am trying to integrate a JavaScript library into my JVM application and call it from JVM. It would be better to include bytecode instead of source code in the native image

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

No branches or pull requests

3 participants