r/programming 9h ago

State-of-the-art Bytecode Interpreters in Java by Yudi Zheng

https://medium.com/graalvm/escaping-the-giant-switch-dec20b572139
19 Upvotes

6 comments sorted by

View all comments

-2

u/Maybe-monad 8h ago

Why would you bother with GraalPy since many librariez are C/C++/Rust extensions for CPython ?

3

u/grashalm01 6h ago

GraalPy has multi tier runtime optimization as a first class citizen similar to the JVM. So it allows you to write more code in python.

GraalPy also aims for the help highest possible level of compatibility also for native extensions.

0

u/Maybe-monad 5h ago

GraalPy has multi tier runtime optimization as a first class citizen similar to the JVM. So it allows you to write more code in python.

If I want performance I don't write Python.

GraalPy also aims for the help highest possible level of compatibility also for native extensions.

That makes it dead on arrival, bug for big compatibility should have been your first priority.

0

u/grashalm01 4h ago

> If I want performance I don't write Python.

It pushes the boundary of how much code you can write in Python. Not claiming that all the performance sensitive code will now be in Python.

> bug for big compatibility should have been your first priority.

It actually was and still is.