Replies: 2 comments
-
Moving from Jython to GraalPython: GraalPython with JBang integration demo: |
Beta Was this translation helpful? Give feedback.
-
// Install the Graal VM // Run the Graal Python code
The first run took 2+ minutes to complete. The second run finished in 11 seconds. $ time jbang run qrcode.java "Hello from GraalPy!"
Both times the following warning was printed on the console. This should be further investigated.
Experimental run with EnableJVMCI enabled. $ export JBANG_JAVA_OPTIONS="-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI"
Experimental run with EnableJVMCI enabled and Interpreter Warning set to false. $ export JBANG_JAVA_OPTIONS="-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -Dpolyglot.engine.WarnInterpreterOnly=false" $ time jbang run qrcode.java "Hello from GraalPy!"
TBD - test with optimizing Truffle runtime installed / enabled. |
Beta Was this translation helpful? Give feedback.
-
Starting a discussion exploring support for GraalPython in JBang. Is it feasible, how would it work, what are the benefits and limitations?
GraalPython in located in Maven Central at:
GraalPython is a Python 3.11 compliant runtime on top of the GraalVM (JVM):
Beta Was this translation helpful? Give feedback.
All reactions