~/talk

Towards Async Everything Part 1 - Senders as the Lowest Layer

Talkat C++Now 2026 · 2026-05-04..05-08· [concurrency]
links:none on file
slides:none on file

Argues that senders can be the lowest I/O layer by implementing async read_some directly on io_uring with std::execution primitives, showing a working design that submits SQEs, matches CQEs, and handles cancellation via io_uring_op_async_cancel. Builds an IOURingContext with an intrusive atomic linked list of waiters, an eventfd doorbell, a scheduler that runs a run loop calling io_uring_enter, and an externally_completed sender factory to glue kernel completions to receivers. Demonstrates edge cases (null SQE, inline vs deferred completion, CQE lifetime) and a practical, functioning implementation.

AI-written summary · about

  1. 0:00Introduction
  2. 3:31Senders and receivers analogy
  3. 8:27Synchronous to async reads
  4. 10:13IO uring for async syscalls
  5. 13:01File descriptors with IO uring
  6. 17:34Blocking in async pipelines
  7. 22:29Sync vs async continuations
  8. 26:00Receivers as continuations
  9. 28:06Externally completed algorithm
  10. 31:36Wait for SQE with references
  11. 35:25Inline completion and zero-cost
  12. 36:29Consume SQE with senders
  13. 38:57Cancel async operations
  14. 40:43Structured concurrency
  15. 43:50Completing by value
  16. 47:18Thread safety and scheduler
  17. 51:11Run scheduled operations
  18. 55:00IO uring context run
  19. 1:00:55Completion and submission queues
  20. 1:03:43Run scheduled operations detail
  21. 1:11:21Senders lowest layer
  22. 1:21:49Q&A
~/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.