~/talk

Delegate this! Designing with delegates in modern C++

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

Showcases a header-only delegate implementation that matches C function pointer speed and interoperates with std::function, used to wire IncludeOS’s IP stack top-to-bottom with header-only delegates as fast as C function pointers and to build routing, REST endpoints and unit tests. Delegates carry state-less signatures, move unique_ptr packet buffers, and allow rewire protocol handlers at runtime without context switches. The system runs single-threaded, sustains a few gigabits and tens of thousands of concurrent connections, and exposes messy async loops for complex bidirectional transfers.

AI-written summary · about

  1. 0:00Introduction to delegates
  2. 3:54Finding fast delegates
  3. 6:42Basic usage and lambdas
  4. 9:11Neural network example
  5. 13:42Runtime rewiring
  6. 16:49Delegates vs std::bind
  7. 18:40Neural network complexity
  8. 19:53IP stack architecture
  9. 22:17Async callback performance
  10. 28:31Asynchronous loops
  11. 31:14Real brain comparison
  12. 33:48Alternatives and libraries
  13. 35:33Unit testing with mocks
  14. 37:21Practical web service
  15. 40:12Implementing a firewall
  16. 47:13Q&A and conclusion
~/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.