~/talk

Asynchrony and Coroutines

Talkat Meeting C++ 2015 · 2015-12-04..12-05· [rust]
links:none on file
slides:none on file

Claims that any asynchronous flow can be written in synchronous style by using coroutines implemented on Boost.Context and Boost.Coroutine, with concrete patterns: def/proceed to avoid race conditions, teleport/portal to move coroutines between thread‑pool schedulers, and alone (strand) for serialized nonblocking access. Provides a working server prototype, scheduler and wrapper code, measures performance roughly comparable to native async, avoids futures, and reports exception‑friendly low‑level context switching without copying large stacks.

AI-written summary · about

  1. 0:00Intro
  2. 0:39Agenda
  3. 1:55Synchronous Multithreaded Server
  4. 5:10Real Asynchronous Server
  5. 5:35Asynchronous Server: Discussion
  6. 7:57Challenge
  7. 9:55Coroutines Implementation
  8. 10:31boost.context
  9. 12:50Coroutine Usage Convert asynchronous invocation: async(completionCallback)
  10. 13:46Coroutine Usage: Sequence Diagram
  11. 14:54Problem: Race Condition
  12. 15:43Possible solutions
  13. 16:12Solution: defer
  14. 17:24Usage: defer
  15. 18:41Synca Server
  16. 19:58Thread Pool
  17. 20:40Coroutine Wrapper struct Journey void de fer (Handler handler)
  18. 21:54Teleportation Let's jump to another scheduler
  19. 23:21Teleportation: Sequence Diagram
  20. 24:23Portal Portal is bidirectional teleportation: struct Portal
  21. 24:57Portal Usage struct Network
  22. 27:25Alone
  23. 28:59Integral Example: Initialization
  24. 30:57Integral Example: Task string obtainvalue(const string key)
  25. 33:11Theorem Any asynchronous task can be implemented by using coroutines
~/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.