News for hackers. Stuff that matters.
Re:GraalPy – A high-performance embeddable Python 3 runtime ... by fniephaus on Wednesday September 18, 2024 @02:43AM (#41576536)
OP here.

More details about this particular release are in the blog post at https://medium.com/graalvm/whats-new-in-graal-languages-24-1...

Happy to answer any additional questions!

Re:GraalPy – A high-performance embeddable Python 3 runtime ... by nurettin on Wednesday September 18, 2024 @11:08AM (#41580676)
Hi, what's the deployment process like? Is there a program similar to warbler (for jruby) that builds a jar for a python program?

EDIT: I tried the native binary command here on a simple hello world script.

It downloaded some stuff in the background, built the entire python and java and embedded it into a 350 MB ELF binary on linux after 15 minutes of using 24 GB RAM and 100% CPU.

But I'd much prefer a smaller jar file which I can distribute cross-platform.

https://www.graalvm.org/uploads/quick-references/GraalPy_v1/...

Re:GraalPy – A high-performance embeddable Python 3 runtime ... by fniephaus on Wednesday September 18, 2024 @04:15PM (#41584917)
Thanks for the question, nurettin.

Although GraalPy can create standalone applications [1], you don't have to turn your hello world script into a self-contained binary. You can, of course, create a JAR that depends on GraalPy, or a fat JAR that contains it, and deploy it just like any other Java application.

We are still updating our docs to mention more details on this and publish some guides, apologies for the delay.

[1] https://www.graalvm.org/latest/reference-manual/python/stand...