~/talk

C++, Abstract Algebra and Practical Applications

Talkat CppCon 2016 · 2016-09-18..09-23· [compilers-and-language-design]
links:none on file
slides:none on file

Claim: represent abstract algebraic structures in C++ types so illegal operations fail at compile time and correct invariants need no repeated runtime checks. Implementation uses type traits, static_asserts, constexpr constructors and the CRTP generated operators to make a length type model an additive monoid (equality, +, ordering). Literal and compile-time values validate with zero runtime cost; runtime-created instances validate once (constructor throws on invalid state). Result is earlier error detection, far less debug churn and measurable maintenance savings.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:54Defining program correctness
  3. 5:11Formal models and reality
  4. 6:59Numerical analysis and bugs
  5. 10:36Hoare logic for correctness
  6. 15:51Logical abstraction in C++
  7. 18:15Verifying function constraints
  8. 22:30Design by contract in C++
  9. 25:55Leveraging the C++ type system
  10. 32:00Abstract algebra foundations
  11. 40:07Error handling and type traits
  12. 47:27Metaprogramming for correctness
  13. 51:05Practical benefits 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.