Skip to content

Compiling graal python app to Native Image #340

Closed Answered by msimacek
der-eugen asked this question in Q&A
Discussion options

You must be logged in to vote

No. You can ship self-contained binaries with no external dependencies, but they will always contain the interpreter. Having interpreter-less AOT for Python is not really feasible due to how dynamic Python is, at least in the sense that a theoretical AOT implementation won't meet the performance/footprint expectations you'd have. In python basically everything can be redefined at runtime at any point. Modules, functions, types, attributes, builtins. You can even add/remove methods to/from types for which there are already instances, change types of existing objects, change existing type's superclass... The JIT only works by making a lot of assumptions that this and that won't change and i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@der-eugen
Comment options

Answer selected by der-eugen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants