~/talk

int != safe && int != ℤ

Talkat emBO++ 2026 · 2026-03-18..03-20· [c-and-cpp, software-architecture]
slides:none on file

C++ integer operations silently change type, promote signedness and cause UB; examples include the 50,000×50,000 example that triggers signed overflow via integral promotion, and the int min / -1 division case. The talk shows a single-header library implementing overflow-detection enums and saturation (sat) intrinsics, compares assembly to plain int (nearly identical for enums), and reports extensive compile-time and SFINAE tests proving the replacements catch or clamp errors while remaining efficient.

AI-written summary · about

  1. 0:00Introduction
  2. 1:11Integers in theory
  3. 4:00Int in practice
  4. 10:01Integer overflow risks
  5. 15:24Undefined behavior probability
  6. 21:12Problems with int type
  7. 27:55Better int alternatives
  8. 31:11Handling overflow
  9. 35:07Library implementation
  10. 42:30Type safety design
  11. 47:30Compile-time checks
  12. 54:10SFINAE testing
  13. 58:06Saturation arithmetic
  14. 1:00:38C++20 saturation features
  15. 1:02:25Testing and debugging
  16. 1:05:44Resources and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.