~/talk

Building a Coroutine based Job System without Standard Library

Talkat CppCon 2020 · 2020-09-14..09-18· [game-development]
links:none on file
slides:none on file

Builds a coroutine-based job system using only C++20 language coroutines (no stdlib), a custom token/promise pair, a token dispatcher as initial_suspend, and a scheduler that enqueues lightweight jobs; uses a custom future plus a single-consumer event on Windows and MSVC for debugging. Demo runs a vaccine-sim with five labs (one finds vaccine that round) and prints per-second stats (~3,000 healthy initially). Shows lower allocation and removed bookkeeping, supports lazy jobs via deferred token, but profiler, thread-local assumptions, and tooling remain problematic.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:12C++20 coroutines recap
  3. 10:02Coroutine mechanics deep dive
  4. 12:54Job system overview
  5. 17:33Token promise implementation
  6. 22:16Returning results from coroutines
  7. 24:49Sequential job execution
  8. 28:29Parallel job composition
  9. 30:35Lazy job scheduling
  10. 32:03Coroutine lifetime management
  11. 36:05System benefits and improvements
  12. 38:09Challenges and limitations
  13. 40:42Production readiness and learning curve
  14. 41:04Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.