News for hackers. Stuff that matters.
Re:Celery, non-blocking code and quest against coroutines by mdomans on Thursday June 09, 2016 @10:07AM (#11869447)
Depends on how much memory we're talking about.

In regard to GCD - AFAIK it uses classic posix threads. In regard to GIL, if you can indeed guarantee that each task is atomic and lockless, you can use the same approach pyparralel uses

Re:Celery, non-blocking code and quest against coroutines by danpalmer on Thursday June 09, 2016 @11:16AM (#11869930)
I believe GCD actually multiplexes green threads across a pool of posix threads, which wouldn't work for Python because of the GIL.
Re:Celery, non-blocking code and quest against coroutines by richardwhiuk on Thursday June 09, 2016 @12:23PM (#11870400)
Correct. GCD has dispatch_queues, and each block on the dispatch queue will be executed on one of a pool of posix threads.
Re:Celery, non-blocking code and quest against coroutines by mdomans on Sunday June 12, 2016 @03:43PM (#11889900)
That's correct, but looking at the Python internals it seems that working around the GIL is possible if having this pattern exposed to end programmer.