~/talk

Applied C++20 Coroutines

Talkat ACCU 2023 · 2023-04-19..04-22· [networking, c-and-cpp]
slides:none on file

Builds a small web server and a mobile mesh prototype with CMake, Boost.Beast (on top of Asio), Lua bindings and ApacheBench-driven benchmarks (code on GitHub), and shows C++20 coroutines outperform stackful coroutines and callback-based async as concurrent connections rise — Boost.Beast with Asio and ApacheBench requests/sec reveal better scaling for C++20; the mesh control logic uses about 40 actions (scan/connect/timer/etc.) and generators land in C++23.

AI-written summary · about

  1. 0:00Introduction
  2. 2:33Outline
  3. 5:10Example Code
  4. 7:14Back to Basics
  5. 7:47Concurrency vs Parallelism
  6. 10:33Coroutine granularity
  7. 11:33Coroutine vs Fibers
  8. 12:52OS Multitasking
  9. 16:45Coroutines as fibers
  10. 18:18Example
  11. 22:29Mobile Connection Management
  12. 24:35Architecture
  13. 27:08Architecture Example
  14. 32:42Dispatcher
  15. 34:08Connect to Action
  16. 35:00TCP Connections
  17. 36:14CPP
  18. 39:38Coroutines
  19. 44:15Waitable
  20. 46:49Return Type
  21. 48:22Promise Type
  22. 49:15Handles
  23. 53:11Promise
  24. 55:30Loop
  25. 56:16Applications
  26. 56:26Observations
  27. 57:05BoostBeast
  28. 57:45Apache Bench
~/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.