~/talk

Peeking Safely at a Table with Concepts

Talkat Pure Virtual C++ 2020 · on Monday, 2020-05-04· [c-and-cpp, embedded-and-hardware]
links:none on file
slides:none on file

Claim: use C++20 Concepts and constexpr predicates to verify at compile time that read‑only action tables have contiguous keys so indexing needs no runtime invariant checks. Implementation: a concept named retractable_by_key, a constexpr checker plus a constrained function play_entry that converts an action to an index and returns the actor in O(1). Result: the compiler proves table structure, eliminates bounds checks, preserves near‑optimal speed and memory safety, and the technique composes across many table types via generic constraints.

AI-written summary · about

  1. 0:00Start
  2. 6:35WHAT ARE CONCEPTS?
  3. 8:51HOW DO I USE A CONCEPT?
  4. 12:17A COMPILE-TIME PREDICATE: RETRACTIBLE SPACE
  5. 15:31WITH CONCEPTS, GENERICALLY
  6. 19:14WITH CONCEPTS, SAFELY: CAPTURE STRUCTURAL COMPUTATION
~/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.