4 ms·
why is it crazy? Java, c-sharp, and more all have normal threading enabled, why couldn't Python? clearly it's going to be massively useful.
by make3 2y ago
why is it crazy? Java, c-sharp, and more all have normal threading enabled, why couldn't Python? clearly it's going to be massively useful.
- zarzavat 2y agoBecause there’s decades worth of libraries that written under the assumption that Python has a GIL. All of these need to be updated, it’s Python 3 all over again.
- aardvark179 2y agoThere are many C extensions written with that assumption, but if you were relying on the GIL to avoid Python level concurrency bugs you probably didn’t, they’ll just be slightly rarer and harder to reproduce. That was certainly my experience working on TruffleRuby, and I doubt Python is very different. We found a few bugs because we didn’t have a global lock, but they were often problems that showed up in a soak test on an implementation with a GIL, just not quite as often so they had escaped notice and were likely causing real failures in production somewhere.
- Joeboy 2y agoAIUI if you want the GIL, you can just not disable it. I don't think the GIL is going away in the near future.
- guappa 2y agoIt would be if it wouldn't be massively slower too.