▲ | wbpaelias 5 hours ago | ||||||||||||||||||||||
I wonder how much Julia’s JIT could help inform Python’s. Diagram: https://docs.julialang.org/en/v1/devdocs/img/compiler_diagra... Documentation: https://docs.julialang.org/en/v1/devdocs/eval/ From what I understand, Julia doesn’t do any tracing at all, it just compiles each function based on the types it receives. Obviously Python doesn’t have multiple dispatch, but that actually might make compilation easier. Swap out the LLVM step with python's IR and they could probably expect a pretty substantial performance improvement. That said I don’t know anything about compilers, I just use both Python and Julia. | |||||||||||||||||||||||
▲ | maplant 3 hours ago | parent [-] | ||||||||||||||||||||||
This is called a method based JIT, and is generally the more common approach to JIT compilation. Tracing JIT is a deliberate design choice that is quite different from method based JITs | |||||||||||||||||||||||
|