News for hackers. Stuff that matters.
Re:Everything you need to know about Python 3.13 – JIT and G... by oconnor663 on Saturday September 28, 2024 @11:20AM (#41680806)
It's harder to ignore the problem in Python, because reference counting turns every read into a write, incrementing and then decrementing the recount of the object you read. For example, calling "my_mutex.lock()" has already messed with the recount on my_mutex before any locking happens. If races between threads could corrupt those refcounts, there's no way you could code around that. Right now the GIL protects those refcounts, so without a GIL you need a big change to make them all atomic.
Re:Everything you need to know about Python 3.13 – JIT and G... by William_BB on Saturday September 28, 2024 @01:47PM (#41681782)
Oh wow, I haven't thought about refcounts on mutexes