4 ms·
Global interpreter lock, will it ever be removed?
by roschdal 4y ago
Global interpreter lock, will it ever be removed?
- divbzero 4y agoThe latest efforts to remove the GIL was presented at the 2022 Python Language Summit and discussed here earlier this month: https://news.ycombinator.com/item?id=31348097 https://news.ycombinator.com/item?id=31348097
- fnord123 4y agoI think it will never be removed. All code using threads in python are using the GIL to hide their blushes and as soon you remove the GIL I don't think there's any reason to believe threaded code in python will continue to work as race conditions are exposed. The only option, imo, is to make multiple GIL pools and use actors or message passing to work around this. However, this means the super cheap FFI that Python enjoys will be mitigated as it has to find a solution like go (stack swapping), or react (bridge to underlying platfom).