~/talk

Naked coroutines live (with networking)

Talkat CppCon 2017 · 2017-09-24..09-29· [networking]
slides:none on file

Shows how C++ Coroutines TS plus the Networking TS can be used to build an async TCP server by live-coding two approaches: an easy adapter that uses std/boost::future (drops throughput by ~40–45% versus the original 75 MB/s server) and a hard approach that implements zero-overhead awaitables for async_read_some/async_write (restores native 75 MB/s and beats a future-based reposting microbenchmark by ~10x). Also covers cancellation via handler-destructors, allocator placement to avoid heap churn, and a proposed symmetric transfer to guarantee tail-call resumptions.

AI-written summary · about

  1. 0:00Start
  2. 3:48Asynchronous Tasks
  3. 6:08Completion Queue
  4. 12:48Corrosion Promise
  5. 14:21Final Suspend
  6. 15:01What To Do with Go Return
  7. 20:41Boost Future
  8. 48:48Symmetric Control Transfer
~/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.