Practical Functional Programming in C++
summary
Argues that functional techniques are practical in modern C++ by showing actual code: uses std::function and C++11 lambdas to store callbacks in a MUD‑style trigger list, composes callables with std::bind and placeholders to reorder and fix arguments, implements an asio echo server with nested lambdas, and builds async pipelines with futures, .then continuation chaining, when_all and a parallel transform_reduce (and mentions HPX and C++ AMP kernels). Examples compile and run, expose lifetime pitfalls (dangling refs, move-only captures) and debugging limits.
AI-written summary · about
chapters (21)
- 0:00Start
- 0:49Introduction
- 3:32Overview
- 4:53The Callable Concept
- 7:29The Joys of Function Pointers
- 9:16Lambda Expressions
- 9:48Polymorphic Function Wrapper
- 13:12Example: V-Tables in MUDs
- 14:29Higher-Order Functions
- 15:01Crafting Functions
- 15:40Forwarding Call Wrapper
- 16:54Binding Parameters
- 18:25Lambda Closures
- 19:01Dangling References
- 19:43Binding Member Functions
- 20:58Echo Server w/ Asio + Lambdas
- 23:24Something (Pseudo)Random
- 25:24Calling Functions
- 26:46A Parallel Algebra
- 30:54Forming Dependencies
- 32:161D Heat Equation
related talks
01h 02mFunctional C++
52mC++: Functional programming, also in C++
01h 31mFunctional Programming in Modern C++: The Imperatives Must Go!
01h 01mFunctional C++
49mThe Evolution of Functional Programming in C++
01h 03mFunctional C++ for Fun & Profit
05mPostmodern Meta C++
01h 03mHigher order functions for ordinary C++ developers
