~/talk

integral types

Talkat CppCon 2018 · 2018-09-23..09-28· [c-and-cpp]
links:none on file
slides:none on file

Shows concrete failures: a template in Boost property_tree bug truncates wide characters to 8 bits and misparses hex character references; Boost.Accumulators overflow silently corrupts sum and mean when integers overflow because the author assumed it "can't happen"; std::lcm documents a precondition that leads to undefined behavior when a product exceeds the type; demonstrates branch-free overflow detection algorithms that compile to ~3–4 x86 instructions versus 7–10, and argues for checked arithmetic primitives in the standard library and portable multiword ops.

AI-written summary · about

  1. 0:00Introduction
  2. 0:25Program problem areas
  3. 0:58Integer arithmetic
  4. 1:21Writing software
  5. 2:59characters
  6. 8:08white charts
  7. 8:52integers
  8. 9:30integral promotion
  9. 10:19boost accumulators
  10. 11:24reference
  11. 13:04standard library
  12. 14:15accumulate
  13. 15:26other functions
  14. 16:20branchfree
  15. 17:11implementation cost
  16. 18:18multiplication
  17. 20:05division overflow
  18. 20:16double word division
  19. 20:58Haskell
  20. 27:21SafeC
~/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.