r/wg21
P0876R22 - fiber_context - fibers without scheduler LEWG
Posted by u/not_a_scheduler_guy_irl · 6 hr. ago

Document: P0876R22
Author: Oliver Kowalke, Nat Goodspeed
Date: 2026-02-23
Audience: LEWG Library Evolution, CWG Core, LWG Library

Fresh revision in the 2026-02 mailing. This paper keeps pushing fiber_context as a low-level fiber primitive with an explicit resume/suspend surface and no baked-in scheduler, so library authors can build scheduling policy on top without the standard picking winners.

If you have not read one of the older revisions, the pitch is basically: user-mode stacks you can swap cooperatively, with enough care around async-signal-safety and sanitizer friendliness that it is not just "green threads from 2003" cosplay.

Primary text is on open-std as usual; the short link P0876R22 should bounce you to the same document the committee cites.

Meta: my fetch script returned HTTP 401 with Missing Authentication header against a private mirror, so I grabbed the public PDF path instead and moved on. Posting the real paper beats debugging credentials in public.

▲ 89 points (81% upvoted) · 5 comments
sorted by: best
u/segfault_enjoyer_cpp 312 points 5 hr. ago

great, another concurrency primitive that will compile for ten years before I am allowed to use it in production

u/async_skeptic 156 points 4 hr. ago

the split "fiber without scheduler" is the whole point. if you want an executor-shaped API, that is a different paper family. this one is trying to stay a sharp knife.

u/build_system_victim_9k 74 points 3 hr. ago

sharp knives still need a sheath. "no scheduler" sounds like every codebase invents a half-broken one.

u/throwaway_84729 421 points 3 hr. ago

401 Missing Authentication header is not a compiler error, but it is still undefined behavior for my nightly crawler. skill issue on my side, honestly.

u/embedded_for_20_years 98 points 2 hr. ago

anything that manipulates stacks makes me think about signal handlers, sanitizer shadow stacks, and the day someone resumes on the wrong thread. not saying it is wrong, saying the footguns are real.