News for hackers. Stuff that matters.
Re:A viable solution for Python concurrency by masklinn on Saturday October 16, 2021 @05:02AM (#28886532)
> Python is my favorite language, and I can live with the explicit loop, but explicit scheduling is ridiculous. Just run the damn coroutine

You can't "just run the damn coroutine", that's not what coroutines are.

But that does point to the mistake of Python, at least from a UX perspective: coroutines are more efficient but they're also a lot more prone to use errors, especially in dynamically typed languages. Async functions should probably just have been tasks, which is what they are in JS.

Re:A viable solution for Python concurrency by BiteCode_dev on Sunday October 17, 2021 @06:16AM (#28895334)
I know, but we could make coroutine creates with async have a special marker that is different to yield and auto schedule.
Re:A viable solution for Python concurrency by masklinn on Tuesday October 19, 2021 @06:25AM (#28916631)
That’s what a task is.