Declarative C++
summary
Argues that C++ can be written declaratively by leaning on language features (concepts, constraints, ranges, algorithms, execution policies, parameter-pack folds, deducing this, user‑defined literals, coroutines/generators, span, scope_exit) and by building small libraries (a guarded object using RAII, a for_each_if algorithm, lazy ranges pipelines) so intent is the code’s specification; shows a protocol_stack_encoder zero‑copy example from the description and reports this approach runs in production and yields one defect per year while enabling compile‑time guarantees and parallel execution via execution policies.
AI-written summary · about
chapters (12)
- 0:00Introduction to declarative C++
- 5:09Desirable qualities of software
- 12:11Evolution of looping constructs
- 20:31Parallelism and concurrency
- 31:37Guarded objects and thread safety
- 43:02Operator overloading for expressiveness
- 51:19Parameter packs and fold expressions
- 1:01:41Generic algorithms with concepts
- 1:11:24Ranges and pipeline composition
- 1:28:22Optional and monadic interfaces
- 1:31:37Strong types and RAII constructs
- 1:35:16Q&A and closing remarks
