News for hackers. Stuff that matters.
Re:A viable solution for Python concurrency by BiteCode_dev on Friday October 15, 2021 @05:05PM (#28883130)
While the design of Curio is quite interesting, it's may not be a good choice, not for technical reasons, but for logistical reasons: the chances it gets a wide adoption are slim to None.

And since we are stuck with colored functions in python, the choice of stack matters very much.

Now, if you want easier concurrency, and a solution to a lot of concurrency problems that curio solves, while still being compatible with asyncio, use anyio:

https://anyio.readthedocs.io/en/stable/

It's a layer that works on top of asyncio, so it's compatible with all of it. But it features the nursery concept from Trio, which makes async programming so much simpler and safer.

Re:A viable solution for Python concurrency by heavyset_go on Friday October 15, 2021 @05:14PM (#28883199)
anyio is also compatible with asyncio and Trio, so you can use it with either library or paradigm.
Re:A viable solution for Python concurrency by sandGorgon on Friday October 15, 2021 @05:28PM (#28883318)
Uvloop/uvicorn - which is the production grade asgi server only works with asyncio.

Hypercorn works with trio..but you lose a LOT of performance