On 17. 04. 24 14:27, Victor Stinner wrote:
On Wed, Apr 10, 2024 at 8:23 PM Miro Hrončok
<mhroncok(a)redhat.com> wrote:
> Python 3.13 has an experimental JIT compiler:
>
https://docs.python.org/dev/whatsnew/3.13.html#experimental-jit-compiler
>
> Enabling it is a configure (hence build-time) option.
>
> How do we handle this in Fedora?
>
> - We can keep it disabled, as it is experimental.
I concur with that.
> - We can enable it, but be ready to revert if it causes problems.
> - We can add yet another build variant, but we already have 4 of those
> (regular, debug, freethreading, freethreading-debug), so I'd rather not make it
> 6 (or 8, if we include freethreading+jit combinations). I don't know yet if it
> would be co-installable.
I don't think it's worth it.
Moreover, it doesn't build on Fedora 39 with clang-17, since Python
3.13 currently requires exactly clang-16.
We have multiple clangs/llvms:
https://src.fedoraproject.org/rpms/llvm16
https://src.fedoraproject.org/rpms/clang16
Victor, do you think it would be possible to build in the JIT support but have
a runtime opt-out/opt-in switch? That way, we can build it, but disable it by
default, unless our users want to experiment with it.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok