~/talk

This is C++: Uncompromised Performance, Undefined Behavior, & Move Semantics

Talkat C++Now 2024 · 2024-04-29..05-03· [c-and-cpp]
name:Jon Kalb
github:boostcon
slides:none on file

C++ prioritizes uncompromised performance by letting common operations compile to single machine instructions and putting corner cases off on undefined behavior, e.g. integer add/mul/div map to one instruction while a bounds-checked or "div_safe" version doubles cost and inserts a branch. std::vector::operator[] omits checks while at does not; std::list move constructors are not noexcept because sentinel nodes force allocations. Move semantics (since C++11) and a C++26 tweak to uninitialized int expose the debate; a partially formed moved-from model and a "move sanitizer" are proposed.

AI-written summary · about

  1. 0:00Introduction
  2. 2:03Uncompromised performance
  3. 10:54Undefined behavior
  4. 18:29Ecosystem and safety
  5. 25:42Move semantics
  6. 36:03Critique of standard design
  7. 47:45Partially formed objects
  8. 57:06Conclusion 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.