3 ms·
Why wouldn't a new programming language like python nowadays decide to use a Gil? I thought the point was to make the interpreter easier to write.
by andi999 6y ago
Why wouldn't a new programming language like python nowadays decide to use a Gil? I thought the point was to make the interpreter easier to write.
- toast0 6y agoA global interpreter lock made sense in the 1990s when multiple cpus was rare, and when it happened, it was usually two. Now, it's hard to find a system with just one cpu. Maybe something really embedded; but IoT stuff sometimes is multiprocessor these days. Anything intended for regular computers needs to be prepared for 1-16 cpus, and more isn't hard to find if you need it. Building a new programming language with a big constraint preventing it from using modern computing seems like a mistake. That doesn't mean an early version wouldn't start with a big lock, but fine grained locking is probably needed before release.