3 ms·
Try curio or trio in python :) Trio especially with its requirement of an owner for each task makes the thinking of it all entirely sequential and clear. In cu
by theelous3 6y ago
Try curio or trio in python :)
Trio especially with its requirement of an owner for each task makes the thinking of it all entirely sequential and clear. In curio it's optional.
See the rationale here:
https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/ https://vorpus.org/blog/notes-on-structured-concurrency-or-g...
On top of that, I must recommend dabeaz's concurrency from the ground up talk, where he explains it all in primitive terms and lives codes a wee co-operative yielding thing on the fly:
https://youtu.be/MCs5OvhV9S4 https://youtu.be/MCs5OvhV9S4
- crubier 6y agoCurio is really good and underrated
- theelous3 6y agoYep, absolutely exceptional library. Given its existence, I honestly don't understand why asyncio is in use by anyone. It should be removed from stdlib as a mistake and efforts around the curio / trio ecosys should be redoubled and brought to the mainstream. It's clear now, all this time after asyncawait was brought in, that the thinking which lead to asyncio was erroneous. I'm the author of a sort of popular curio/trio lib. I used to maintain a compatibility layer lib that allowed code to be written to use either or, just for my project. That torch has been taken up by anyio, allowing anyone who's writing something for either curio or trio to kill two birds with one stone and contrib to both sides at once. Is great.