~/talk

How bad is meta-programming still today?

Talkat Meeting C++ 2016 · 2016-11-18..11-19· [rust]
links:none on file
slides:none on file

Compares C++98/03, C++11 and C++14 with concrete examples: a compile‑time Fibonacci and prime checker, a one‑header C compiler that emits a binary array, and expression‑template vector sums that remove temporaries. Shows tools used—constexpr functions, enable_if, type_traits, static_assert—and practical limits: some Los Alamos projects compile for several days and get huge diagnostics (one error grew to 18 megabyte), constexpr can be forced by storing results in a constexpr variable, and template metaprogramming is Turing‑complete so it works but can be painfully slow to compile.

AI-written summary · about

  1. 0:00Meta-programming history
  2. 3:55Early meta-programming hype
  3. 8:56Template meta-programming C++98
  4. 13:11C++11 vs C++14 compile-time
  5. 20:59Type traits and static assertions
  6. 24:58Expression templates tuning
  7. 31:49Compile-time optimizations use
  8. 36:48Loop unrolling optimizations
  9. 40:00Meta-programming Turing limits
  10. 45:46Compile-time computation limits
  11. 47:44Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.