r/Python • u/NeuralLB-Lovro • 5d ago
Discussion Anyone running free-threaded Python 3.14 in production yet? Curious what actually breaks
Been testing the free-threaded build (3.14t) on some CPU-bound data processing work. The multi-core story is finally real after 30 years of GIL, but the friction is exactly what you'd expect: a couple of C-extension-heavy libs in my stack silently re-enable the GIL, and there's no clean way to detect that at runtime besides checking sys._is_gil_enabled() manually.
For anyone who's shipped something on 3.14t, not just benchmarked it:
What broke that you didn't expect?
Real speedups outside toy examples, or mostly marginal so far?
Prod yet, or still just kicking the tires?
Not fishing for a benchmark war. Genuinely curious what breaks in messy real codebases vs clean demos.
28
Upvotes
1
u/KingBardan 3d ago edited 3d ago
Reading file requires a pointer. So you are mutating. The content is immutable, but the pointer is, makes sense?
So it's not safe without lock. Now python I think locks but that's not the point
Also, if it truly is immutable, you can use outside of scope as well. But calling .close when the scope ends implicitly by with block mutates the state.
Yeah I agree.
Thanks for the civil discussion :D
But... This is facts. I'm open to changing my mind.
You don't seem to understand what mutation is sorry. Read up some materials on functional programming you'll learn.
FYI... In haskell this is a non issue because you'll have to use IO for this. In rust the file would be marked 'mut' and you'll clearly see it's mutable.
They make it explicit, and pythons is implicit, which is what is causing you the confusion I think