From Async/Await to Virtual Threads

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

If virtual threads reach Python, developers could drop async/await's function-coloring complexity for a Go-style concurrency model, but this is years away from production.

Read this as

Armin Ronacher, creator of the Flask framework, published a piece arguing Python should adopt 'virtual threads', lightweight tasks that can be paused and scheduled onto real system threads, the trick Go uses to run millions of goroutines. Python core developer Mark Shannon started a discussion about this in May. Nothing ships yet; the earliest realistic production release is years away, though Python 3.14 this year adds sub-interpreter improvements.

No actionable decision is warranted: this is a speculative essay, not a product or standard. Ronacher's argument is that Python's async/await imposes 'colored functions' and back-pressure problems, and virtual threads could replace it, Go-style. Any concrete proposal would be years from a production Python release. Meanwhile, Python 3.14's sub-interpreters land in 2025.

Ronacher extends his December case against async/await, function coloring and back-pressure management, by proposing virtual threads: user-space tasks that vastly outnumber real OS threads and are scheduled onto them when runnable, as Go's goroutines do. Mark Shannon opened a python.org discussion in May on adding them to Python. No implementation, benchmark, or PEP is specified; Python 3.14 brings PEP 734 sub-interpreters.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Python Go goroutines async/await virtual threads Python 3.14 Flask

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading