Open Foxchandaisuki opened 5 months ago
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
GraalPy, which is Python implication of the GraalVM, supports AOT compilation to Native binary.
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.