~/lightning

Lightning Talk: Help! My Expression Template Type Names Are Too Long!

Lightningat CppCon 2023 · on Monday, 2023-10-02· [rust]
slides:none on file

Shows a concrete C++20 trick that replaces deep expression-template types with a lightweight local derived type returned from a templated lambda, turning huge mangled names into compiler-friendly ones. Empirical result: reduces build time 40s → <2s on MSVC by cutting the type complexity. Caveats: MSVC only; the lambda must follow strict form (no templated call operator, no struct-inside-function variants) and the new type is a derived wrapper so behavior and ABI can differ.

AI-written summary · about

  1. 0:00Introduction
  2. 0:21The problem of long types
  3. 2:22A trick to shorten names
  4. 3:52Stress testing build times
  5. 4:38Caveats and conclusions
~/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.