Tim Felgentreff

1.9K posts

Tim Felgentreff

Tim Felgentreff

@timfelgentreff

Graal Python implementation lead at Oracle Labs. Opinions are my own.

Potsdam Katılım Mart 2009
311 Takip Edilen505 Takipçiler
Tim Felgentreff
Tim Felgentreff@timfelgentreff·
I wanted a small tool to graphically manage ADF disk images. There's a Python library to work with them on the commandline. Whipped up a quick Java UI with @jbangdev using the #graalpy template and got myself a standalone native app thanks to @graalvm native image :)
Tim Felgentreff tweet media
English
1
5
11
2.4K
Tim Felgentreff
Tim Felgentreff@timfelgentreff·
We run the tests of ~600 PyPI packages every day to catch #GraalPy regressions and generate compatibility tickets for ourselves - a lot of stuff "just works" these days and we're working hard to match CPython: #why-graalpy" target="_blank" rel="nofollow noopener">github.com/oracle/graalpy… #graalvm
English
0
4
18
1.1K
Tim Felgentreff
Tim Felgentreff@timfelgentreff·
@eatonphil @thomaswue Yes, CPython is using the Cython code compiled to a native extension. If CPython runs the same Python code as GraalPy or PyPy, I get 13fps for this demo
English
0
0
2
122
Tim Felgentreff
Tim Felgentreff@timfelgentreff·
Years ago github.com/Baekalfen/PyBoy had to rewrite code to Cython to provide enough performance on CPython. Today, GraalPy can JIT the pure Python to within a few percent of the natively compiled Cython code (demo Gejmbåj by Snorpung) #graalvm #graalpy
GIF
Tim Felgentreff tweet media
English
1
5
23
3.6K
Tim Felgentreff
Tim Felgentreff@timfelgentreff·
@dainius_jocas @thomaswue @graalvm Yes, we don't strip the Python parts of the image at all, so even for a "Hello World" the image includes the entire Python language core, tooling, Python standard library and JIT infrastructure code. Definitely something we are looking into improving!
English
0
0
1
245
Dainius Jocas
Dainius Jocas@dainius_jocas·
@thomaswue @graalvm Awesome! But it took 7 minutes to compile hello world on M3 cpu and the binary is 280 MB
English
1
0
0
138
Tim Felgentreff
Tim Felgentreff@timfelgentreff·
@johan_tlb @thomaswue @graalvm Yes, there's a venv argument to the command @thomaswue posted, the venv is automatically included into the binary. See e.g. #tweaked-to-work-with-graalpy-standalone" target="_blank" rel="nofollow noopener">github.com/timfel/racing-… for an example
English
1
0
4
165
Tim Felgentreff
Tim Felgentreff@timfelgentreff·
How do other people deploy their pygames? With GraalPy 23.1, it can all be in single binary file, ready to run. Try "graalpy -m standalone --help" #graalpy #graalvm
GIF
English
1
7
16
2.2K
Tim Felgentreff
Tim Felgentreff@timfelgentreff·
@fwbrasil @grashalm_ Getting there, PyTorch works well (>80% of their tests passing), the latest Tensorflow has started running a wee bit too late for this release. Both that and some cool Java integration features will land in master very soon and go into the next release :)
English
0
0
1
25
Flavio Brasil
Flavio Brasil@fwbrasil·
@grashalm_ congrats! How mature is the python support nowadays? It'd be great to use some LLM-related python libs on the JVM
English
1
0
1
87
Christian Humer
Christian Humer@grashalm_·
GraalVM for JDK 21/Polyglot 23.1 just landed! 🤩 GU is dead! You can now use all languages from Maven Central without barriers. This is such a big change that we felt the need to justify it with a blog post: medium.com/graalvm/truffl…
English
2
23
85
7.1K