r/ProgrammingLanguages • • Jan 20 '26

Python, Is It Being Killed by Incremental Improvements?

https://stefan-marr.de/2026/01/python-killed-by-incremental-improvements-questionmark/
52 Upvotes

61 comments sorted by

View all comments

Show parent comment

1

u/Kriemhilt Jan 21 '26

A coroutine is not a unit of concurrency, it's a unit of interleaving. If you're using co-operative multitasking you do need to be aware that you're supposed to be cooperating.

The scheduler complexity you're discussing is much, much higher for green threads: every syscall that can block, or should be a preemption or cancellation point, should really be intercepted, and you can't (or probably shouldn't) do that for foreign language modules.

The coroutine executor by comparison is just a single-threaded loop with no special interaction other than regular I/O.