~/talk

Rethinking the Way We Do Templates in C++

slides:none on file

Implements a Physical Units Library and shows concrete fixes: replace deep class-template aliasing with inherited strong typedefs plus a manual dumb casting facility to keep type names readable; switch many metaprogramming helpers to constexpr value-returning functions or non-type template parameters to shrink instantiation graphs; adopt C++20 concepts for clear compile-time contracts. Uses MetaBench for microbenchmarks: function-style constexpr/NTTP forms compile much faster for operations, NTTP construction is slower, concepts cost ≈10% only if applied everywhere; follow the Rule of Cheil and prefer aliases/variable templates for speed.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:52User experience challenges
  3. 19:37New tools for C++
  4. 30:19Concepts in C++20
  5. 41:37Performance of metaprogramming
  6. 56:58Conclusion and Q&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.