Re:Decorator JITs: Python as a DSL
by dec0dedab0de on Monday February 03, 2025 @10:44AM
(#42919314)
I would rather a JIT just built into the reference implementation. a JIT would help way more programs than removing the GIL but everyone thinks the GIL affects them for some reason.
[ Parent
| on HN ]
They serve different use cases. The function JIT pattern being a manual opt in it can be much more aggressive by only supporting restricted language patterns rather than... the entire thing. They can also use bespoke annotations for better codegen e.g. you can tell numba to only codegen for i32 -> i32 -> i32, rather than lazily codegen for any a -> b -> c.
There already is.
https://docs.python.org/3.13/whatsnew/3.13.html#an-experimen...