Runloom brings Go-style fiber runtime to Python with multi-core concurrency
A developer has built Runloom, an experimental C extension for CPython 3.13t+ that introduces Go-style fiber scheduling to Python, addressing longstanding limitations of the asyncio concurrency model. Unlike asyncio's single event loop, Runloom uses a multi-core runtime scheduler with work-stealing, similar to how Go manages goroutines across OS threads. Benchmarks show the extension matches Go's performance for network I/O handlers, while Cython-compiled handlers come within 8% of Go for CPU-bound tasks. The implementation spans over 30,000 lines of C code, with much of the runtime written by the AI model Claude based on an architecture designed by the developer. Runloom is currently experimental, best supported on Linux, and targets free-threaded CPython 3.13t+.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in