Re:State of Python 3.13 Performance: Free-Threading
by dagmx on Tuesday November 05, 2024 @10:04AM
(#42052015)
To your last point: it’s neither the language nor the packages but rather it’s the ABI.
Python isn’t fully ABI stable (though it’s improved greatly) so you can’t just intermix compiled dependencies between different versions of Python.
This is true for many packages in your distro as well.
Re:State of Python 3.13 Performance: Free-Threading
by dbsmith83 on Tuesday November 05, 2024 @10:57AM
(#42052480)
There have been many breaking changes throughout python 3.x releases:
- standard library modules removed
- zip error handling behaves differently
- changes to collections module
- new reserved keywords (async, await, etc.)
You can argue how big of a deal it is or isn't, but there were definitely breakages that violate semantic versioning
Re:State of Python 3.13 Performance: Free-Threading
by eigenspace on Tuesday November 05, 2024 @11:16AM
(#42052693)
They removed entire standard library modules? Wut.
Re:State of Python 3.13 Performance: Free-Threading
by heisenzombie on Tuesday November 05, 2024 @06:30PM
(#42056125)
Yes, e.g. https://peps.python.org/pep-0594/
Re:State of Python 3.13 Performance: Free-Threading
by maleldil on Tuesday November 05, 2024 @08:04PM
(#42056576)
Python doesn't follow SemVer, that's why.
Re:State of Python 3.13 Performance: Free-Threading
by dbsmith83 on Wednesday November 06, 2024 @12:50AM
(#42057424)
Clearly, which is what I was showing. A poor design decision imo
Re:State of Python 3.13 Performance: Free-Threading
by eigenspace on Tuesday November 05, 2024 @10:19AM
(#42052159)
Ah I see. Yeah, I guess I just think that for a language that's so dependent on FFI, instability in the ABI is defacto instability in the language as far as I'm concerned. But I understand that not everyone feels the same.
Almost every major noteworthy Python package uses the ABI, so instability there is going to constantly be felt ecosystem wide.
Regarding breakage in 3.x, all I know is that I recall several times where I did a linux system update (rolling release), and that updated my Python to a newly released version which broke various things in my system. I'm pretty sure one of these was v3.10, but I forget which others caused me problems which I could only solve by pinning Python to an older release.
It's entirely possible though that no actual APIs were broken and that this was just accidentaly bugs in the release, or the packages were being naughty and relying on internals they shouldn't have relied on or something else.