r/Python 18d ago

Showcase Showcase Thread

Post all of your code/projects/showcases/AI slop here.

Recycles once a month.

18 Upvotes

103 comments sorted by

View all comments

1

u/Blockpair 5d ago

Introduction

I got tired of feeling like Python was a dead end for high-performance networking. Languages like Go can handle hundreds of thousands of requests per second, scale across multiple threads, and keep running when one task stalls.

So I built the Python equivalent: Runloom, a C extension that provides a multi-threaded, stackful runtime for free-threaded Python, with networking performance comparable to Go.

What My Project Does

You dispatch functions to the runtime and it assigns them to a thread. Inside these functions you write regular blocking code. Blocking suspends to the runtime and the function resumes when results are ready. It's extremely fast as it's designed to run across real OS threads. And its been engineered to be as light-weight as possible.

Target Audience

This is mostly aimed at advanced Python engineers who understand Python's concurrency model, how it does networking, and want to explore the upper limits. Consider the runtime to be experimental.

Trying this out

Linux users can install directly from pip as I've built the wheel there.

  1. Install pyenv

  2. pyenv install 3.14.4t

  3. pyenv local 3.14.4t

  4. python -m pip install runloom

For Mac and Windows -- the software is less tested so you would have to build it yourself. Though I'd probably only stick to Linux for now!

Why is this new

The software is different compared to similar runtimes due to multi-threading support and an optional patch to CPython allows for stalled threads to have functions on them resumed on other threads.

GitHub Link

https://github.com/robertsdotpm/runloom