Functional C++ for Fun and Profit
summary
Material demonstrates concrete techniques: use of lambdas and small functions to make C++ expression oriented, a builder pattern to keep domain objects immutable while allowing efficient construction, an immutable string + string-builder implementation that claims a real workload speedup (author estimates ~20–30%), and persistent associative structures (a persistent red‑black tree variant) that add roughly 10% overhead versus mutable sets while enabling cheap snapshotting and simpler concurrency.
AI-written summary · about
chapters (11)
- 0:00Introduction to Functional C++
- 1:49What functional programming means
- 4:16Expression-oriented programming
- 11:21Replacing loops with higher-order functions
- 13:08Immutability and Builder pattern
- 20:31Functional C++ in real-world code
- 20:53Fast reference-counted strings
- 31:36Persistent data structures
- 41:51Standard optional and monads
- 52:06Summary
- 53:10Q&A
related talks
50mThinking Functionally in C++
01h 09mFunctional Programming in C++
01h 30mC++ in Constrained Environments
59mFunctional Programming: data
01h 03mUnlocking the value of C++20
01h 03mWriting sustainable software. The how and the what!
58mThe Imperatives Must Go! [Functional Programming in Modern C++]
56mPractical C++17
