Re:Python stands to lose its GIL, and gain a lot of speed
by heinrichhartman on Sunday October 17, 2021 @02:55PM
(#28898800)
No shared memory. To communicate between processes you usually use sockets, to communicate between threads you mutate variables. This is a huge performance difference.
[ Parent
| on HN ]
Re:Python stands to lose its GIL, and gain a lot of speed
by fulafel on Sunday October 17, 2021 @11:39PM
(#28902020)
You can have (non transparent, but supporting the buffer interface, enough for eg numpy arrays) shared memory with the current multiprocessing stuff: https://docs.python.org/3/library/multiprocessing.shared_mem...
A tangent but I find it amusing to contrast the perpetual Python GIL debate with all the new computation platforms that claim to be focused on scalability. Those are mostly single threaded or max out at a few virtual CPUs (eg "serverless" platforms) and there people applaud it. There people view the isolation as supporting scalability.