Writing a C++20M:N Scheduler from Scratch (EBR, Work-Stealing)
tiny_coro is a lightweight, educational M:N asynchronous runtime written from scratch using C++20 coroutines. It's designed to strip away the complexity of industrial libraries (like Seastar or Folly) to show the core mechanics clearly. Key Technical Features: M:N Scheduling: Maps M coroutines to N kernel threads (Work-Stealing via Chase-Lev deque). Memory Safety: Implements EBR (Epoch-Based Reclamation) to manage memory safely in lock-free structures without GC. Visualizations: I used Manim (the engine behind 3Blue1Brown) to create animations showing exactly how tasks are stolen and…
Writing a C++20M:N Scheduler from Scratch (EBR, Work-Stealing) launched on February 17, 2026 with 18 votes, #784 of 16,627 launches that month and more than 90% of that year's launches.
In plain words
tiny_coro is an educational M:N asynchronous runtime built from scratch in C++20 that demonstrates core scheduler mechanics through minimal code. It maps multiple coroutines to kernel threads using work-stealing queues and implements epoch-based reclamation for lock-free memory management without garbage collection. The project includes animated visualizations explaining task scheduling and execution. Designed for developers who want to understand how modern async runtimes work rather than just use them, the implementation keeps the core to roughly 1,000 lines of readable code.
written from the facts on this page · September 2026
From the sources
A lightweight, educational M:N asynchronous runtime built from scratch with C++20 Coroutines. Features Work-Stealing, EBR, and Reactor-based I/O. - lixiasky-back/tiny_coro-build_your_own_MN_scheduler
In the maker’s words, at launch
tiny_coro is a lightweight, educational M:N asynchronous runtime written from scratch using C++20 coroutines. It's designed to strip away the complexity of industrial libraries (like Seastar or Folly) to show the core mechanics clearly. Key Technical Features: M:N Scheduling: Maps M coroutines to N kernel threads…
Does a similar job
all alternatives →
Coros – A Modern C++ Library for Task Parallelism2024 · github.com · ▲129Hello Hacker News. I’m Martin, a graduate student from Prague, and I’ve been working on Coros, a C++ library for task-based parallelism. After spending some time with OpenMP and oneTBB, I wanted to try building a library using modern features from the C++ standard library. I’ve used coroutines for task encapsulation and C++23 expected for exception handling, while trying to maintain good performance. Additionally, I’ve implemented monadic-like behavior to allow easy chaining of tasks, similar to the monadic operations in std::expected. You can check out the project here:…
I made a zero-copy coroutine tracer to find my scheduler's lost wakeupsMar 2026 · github.com · ▲49A cross-language, zero-copy coroutine observability framework based on the cTP shared-memory protocol, utilizing lock-free ring buffers for ultra-low overhead state tracing. - lixiasky-back/coroTracer
- TATinyClock – a tiny true 5-arch universal Mac OS X single-binary GUI app2022 · tycho.sytes.net · ▲192
1. Single universal binary, that can be natively executed on every hardware platform Mac OS X was made for (32/64 bit, PowerPC/x86/AppleSilicon). 2. Minimalistic gadget-style design. If launched as a tool, there is no menubar, no dock icon, no nothing, just the clock window. 3. Support for hidpi and dark mode for environments, that have them. 4. Window title bar for moving the window with a mouse, and a handle to resize it (latter for OS versions, that have it). 5. Can be easily ported to GNUStep and thus other OSes (sources under GPLv3). 6. Simple Makefile build system.
Tiny C runtime Linux (rt0), HelloWorld 0.6k (i386), sbrk example added2015 · github.com · ▲49A minimal C runtime for Linux i386 & x86_64. Contribute to lpsantil/rt0 development by creating an account on GitHub.
Sub-millisecond VM sandboxes using CoW memory forkingMar 2026 · github.com · ▲311I wanted to see how fast an isolated code sandbox could start if I never had to boot a fresh VM. So instead of launching a new microVM per execution, I boot Firecracker once with Python and numpy already loaded, then snapshot the full VM state. Every execution after that creates a new KVM VM backed by a `MAP_PRIVATE` mapping of the snapshot memory, so Linux gives me copy-on-write pages automatically. That means each sandbox starts from an already-running Python process inside a real VM, runs the code, and exits. These are real KVM VMs, not containers: separate guest kernel, separate guest…
TinyWasm – A tiny WebAssembly Runtime written in Rust2024 · github.com · ▲172Show HN: TinyWasm - A tiny WebAssembly Runtime written in Rust Hi HN! I'm excited to share TinyWasm (https://github.com/explodingcamera/tinywasm), a WebAssembly Interpreter I developed for my final university project. The main goal of this project was to deepen my understanding of WebAssembly and interpreter design. TinyWasm successfully passes all the official WebAssembly 1.0 tests and also includes features from future proposals such as like bulk memory operations. Initially more of a research project, TinyWasm focuses on simplicity and portability. It has minimal…
More work this month
the category →
Endless lofi beats composed live in your browser, over pixel-art nights in Paris, Tokyo, New York, Hong Kong, Sydney, San Francisco and more. Free, no sign-up.
Work · 25d ago · loficities.com
Smooth Recorder▲257Mac screen recordings that look edited when you hit stop
Work · 19d ago · smoothrecorder.com


Work · 13d ago · readrare.com
Source: Show HN post ↗ · launch text quoted in part
Launched alongside, February 2026
the whole month →



Lovon AI Therapy▲801Feel closer and have more fun with your partner every day!
AI · Feb 2026 · lovon.app

Hello my name is Ben Ward for the past 3 years I have been remastering the financial game Wall Street Raider created by Michael Jenkins originally on DOS in 1986. It has been a rough journey but I finally see the light at the end of the tunnel. I just recently redid the website and thought maybe the full story of how this project came to be would interest you all. Thank you for reading.
Work · Feb 2026 · wallstreetraider.com