Show HN: Runloom – Go-style coroutines for Python free-threaded - AllTheNews.today
Show HN: Runloom – Go-style coroutines for Python free-threaded

Show HN: Runloom – Go-style coroutines for Python free-threaded

Runloom is a new Python library that implements Go-style stackful coroutines for free-threaded Python 3.14, enabling developers to write blocking code that runs efficiently across multiple cores without async/await syntax. Benchmarks show Runloom matches or exceeds Go's performance on spawn rates (2.29 M/s vs 2.1 M/s), context switching, and throughput (596 k req/s vs 603 k req/s), though it uses roughly 3.3× more memory per suspended fiber due to CPython's eval frame overhead. The library uses hand-rolled assembly context switching, a C work-stealing scheduler, and monkey-patching to park coroutines on sockets instead of OS threads.
Read Full Article →
github.com
← Back to Latest