4 ms·
The world needs both more and less concurrency FUD. It needs more because too many people think their libraries are safe due to things like the GIL when they li
by aardvark179 2y ago
The world needs both more and less concurrency FUD. It needs more because too many people think their libraries are safe due to things like the GIL when they likely have bugs that will occur occasionally, and it needs less because that belief makes people terrified that removing the GIL will break their code.
If your pure Python code fails without the GIL it can probably fail with the GIL, and testing it without the GIL might help you find those bugs a lot quicker.
- robertlagrant 2y ago> If your pure Python code fails without the GIL it can probably fail with the GIL No, if you remove the GIL there is a whole class of bugs that will appear in code that was safe with the GIL in place.
- spacechild1 2y agoFor example? I don't think the GIL affects the behavior of pure python code.
- robertlagrant 2y agoYeah. You're right. It guards some CPython internals, but I don't think it does affect code the way I thought it did. Thanks for the prompt to investigate.