Keynote: Functional Programming in C++
summary
Shows concrete recipes: use std::ranges and views (transform, filter, join, cartesian_product, chunk_by, iota, generators) to build lazy pipelines that avoid intermediate containers and make examples like max-odd-magnitude, pair-sum, longest-increasing-subsequence and word-reversal one-liners that still perform. Demonstrates error composition with std::optional / std::expected using transform and and_then (and join to flatten), notes parallelize by switching to parallel algorithms, and sketches IO and concurrency via senders/receivers (C++26) and a C++29 transform_join/conditional-range proposal. Results run and compose cleanly.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 0:37Functional vs imperative
- 3:54Benefits and trade-offs
- 6:49Composing algorithms
- 16:21Advanced range composition
- 21:47String processing techniques
- 26:44Generating ranges
- 32:03Composing functions
- 38:51Handling fallible operations
- 44:24Composing I/O actions
- 48:02Multi-threading and senders
- 50:27Monads and conclusion
