The Three Little Dots and the Big Bad Lambdas
summary
Claims that C++14/17 idioms actually replace heavy TMP with generic lambdas and pack tricks, showing concrete idioms: std::integer_sequence and pack expansion plus fold/for-init forms to build an arbitrary code unroller and a tuple for‑each. Prototype composes lambdas to inject code and emits fully inlined calls, but sometimes requires forced inline and makes debugging noisier. A pure‑C++ matrix–vector kernel is built and measured, matrix–vector kernel matching OpenBLAS performance on several targets (with caveats about cache and prefetching).
AI-written summary · about
chapters (14)
- 0:00Introduction
- 1:30Code Generation
- 6:47Moores Law
- 10:00ObjectiveKamo
- 10:24Functional Language
- 12:19Generate Code
- 19:07Code Fragment
- 22:32Injection Based Code
- 23:06Lambdas Everywhere
- 24:08Function Injection
- 32:43Integral Sequence
- 41:00Code Example
- 50:23Assembly Code
- 52:53Linear Algebra








