~/talk

Fancy Pointers for Fun and Profit

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

Shows how to implement synthetic pointers that satisfy the standard’s pointer-like requirements and back std::allocator to build relocatable heaps; provides two concrete addressing policies—an offset addressing model (stores signed offsets, null offset = 1) and a 2D “based” model (segment index + offset, 16-byte pointer). Supplies a syn_ptr class template, allocator and storage-model code (on the GitHub link), demos a self-contained DOM that survives memcpy between buffers, and measures performance: sorts with up to 1e6 elements, 10M copy ops; 2D model approaches native speed, offset model is noticeably slower.

AI-written summary · about

  1. 0:00Introduction and overview
  2. 2:02Motivating problem: persistence
  3. 7:14Concept of relocatable heaps
  4. 12:48Addressing and memory management
  5. 20:29Addressing models in practice
  6. 25:47Implementing synthetic pointers
  7. 35:02Pointer interface and SFINAE
  8. 42:01Performance benchmarking
  9. 45:03Relocatable heap demonstration
  10. 56:31Summary and conclusions
~/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.