~/talk

Functional C++

Talkat NDC London 2017 · 2017-01-16..01-20· [functional-programming, c-and-cpp]
slides:none on file

Argues C++11 features like std::function and lambdas let code move toward immutability and one‑way data flow; shows concrete idioms (value types with assignment-as-rebind, withX() builders), a contiguous persistent Vector and immutable Set representation, and how sharing representation keeps cheap copies. Points out real costs: shared_ptr incurs atomic inc/dec and can blow the stack when destructors recurse (examples fail around ~2,000 nodes), and C++ garbage collection is optional so portability is affected. Recommends prefer copy/const value semantics and use persistent structures where performance and decoupling matter.

AI-written summary · about

  1. 0:00Intro
  2. 8:56Practical Examples
  3. 12:30Observer Approach
  4. 15:00Void Pointer
  5. 21:44Legal
  6. 22:17Mutability
  7. 23:59Asking a question
  8. 24:31Consistency
  9. 26:13Isolation
  10. 27:39Date Classes
  11. 39:20Persistent Data Structures
  12. 40:48Constant Time Operations
  13. 48:16Hamlet
  14. 51:24Garbage Collection
  15. 55:16The problem
  16. 57:56Wrap up
~/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.