Functional C++
summary
Argues that applying functional techniques to modern C++ yields clearer, safer, testable code without losing runtime performance: uses std::function and lambdas, const qualifiers, rvalue references and move semantics for zero-copy value semantics, and selective caching to fix perf hotspots. Demonstrates channels built from mutex/condition_variable, futures/async, a pipes-and-filters FizzBuzz and Friday-13 generator, and an actor-style phonebook; warns that naive shared_ptr chains cause recursive destructors (stack overflow for thousands of nodes) and recommends persistent data structures and channels and actors for scalable concurrency.
AI-written summary · about
chapters (7)
- 0:00Introduction to functional C++
- 7:10Functional abstraction with lambdas
- 16:16Pure functions and referential transparency
- 24:40Immutable data structures in C++
- 37:21Concurrency and functional programming
- 45:51Channels and actor model
- 1:00:34Conclusion and Q&A
related talks
01h 04mFunctional C++ For Fun And Profit
01h 01mFunctional C++
46mPractical Functional Programming in C++
01h 47mFunctional C++
01h 03mFunctional C++ for Fun & Profit
49m“Applying functional programming in code design"
01h 01mfunctional: What's New, And Proper Usage
01h 31mFunctional Programming in Modern C++: The Imperatives Must Go!
