News for hackers. Stuff that matters.
Re:Python has had async for 10 years – why isn't it more pop... by whilenot-dev on Tuesday September 02, 2025 @02:07PM (#45106845)
asyncio has been designed to be as "plug and play" as it gets. I'd discourage it, but one could create async loops wherever one would need them, one separate thread per loop, and adapt the code base in a more granular fashion. Blocking through the GIL will persist, though.

For any new app that is mostly IO constraint I'd still encourage the use of asyncio from the beginning.

Re:Python has had async for 10 years – why isn't it more pop... by odyssey7 on Tuesday September 02, 2025 @06:24PM (#45109906)
I remember back when the “Pythonic” philosophy was to make the language accessible.

It’s clear that Dr. Frankenstein has been at large and managed to get his hands on Python’s corpse.

Re:Python has had async for 10 years – why isn't it more pop... by kstrauser on Tuesday September 02, 2025 @08:21PM (#45110833)
I don’t think that’s fair. Yeah, there is a lot to learn and keep track of. At the same time, it’s an inherently complex problem. From one POV, and async Python program looks a lot like a cooperative multitasking operating system, but with functions instead of processes. It was a lot harder to write well-behaved programs on classic Mac OS than it was on a Commodore 64, but that Mac app was doing an awful lot more than the C64 program was. You couldn’t write them the same way and expect good results, but instead had to go about it a totally different way. It didn’t mean the Mac way was bad, just that it had a lot more inherent complexity.
Re:Python has had async for 10 years – why isn't it more pop... by MichaelRazum on Thursday September 04, 2025 @05:26AM (#45125308)
Sure agree, for bi directional websocket communication it is the way to go. It's just that you have to really think it thorough when using it. Like using asyncio.sleep instead of sleep for example and there are more little things that could easily hurt the performance and advantages of it.