Conversation

Blaming the lack of true multithreading in several languages on a "GIL" is a classic case of missing the forest for the trees. It's not an implementation detail—it's a case of thread safety being very hard to compatibly graft onto an ecosystem that was never designed for it.
5
123
If your language ecosystem is entirely single-threaded, you actually *want* a GIL. Why would you give up single-threaded performance for theoretical multithreaded benefits if multithreading doesn't actually work?
8
63
Replying to
Better would be not supporting threads and therefore not needing locking at all. Explicitly build around using multi-processing instead of multi-threading. nginx takes this approach for their workers to avoid the overhead of thread safety in their allocators and other APIs.
1
3