~/talk

Generic Arity: Definition-Checked Variadics in Carbon

Talkat C++Now 2024 · 2024-04-29..05-03· [compilers-and-language-design, c-and-cpp]
links:none on file
slides:none on file

Carbon models variadics as definition-checked variadics by representing tuple/pack types as sequences of segments (an explicit repetition count plus an element type), adds pack expansion statements and an each name for per-element access, and performs compile-time rewrites that merge parameters or arguments so function-call typechecking stays linear instead of quadratic. The prototype lives on GitHub, supports homogeneous packs and mid-parameter packs, and accepts almost all real APIs; the algorithm is heuristic and falls back to template-style instantiation for contrived edge cases.

AI-written summary · about

  1. 0:00Introduction to Carbon
  2. 2:35Function syntax in Carbon
  3. 7:41Generics and definition check
  4. 13:07Variadic function overview
  5. 22:42Type checking variadic patterns
  6. 31:25Iterative programming model
  7. 43:07Type system representation
  8. 59:35Efficient call type checking
~/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.