~/talk

Better Code: Data Structures

Talkat CppCon 2015 · 2015-09-21..09-25· [c-and-cpp]
links:none on file
slides:none on file

Goal is no incidental data structures: prefer std containers and composite types over ad hoc, self-referential graphs. Demonstrates concrete tools: using stable_partition + rotate to implement a single-pass stable partition and a projection-based gather on parallel arrays, then combining nth_element with partial_sort to sort a subrange. Shows memory costs (L1 vs main memory ~200×) and a physical shoelace-and-beads model that guarantees only hierarchies; points to an ASL forest implementation on GitHub. The techniques work and give big locality and correctness wins.

AI-written summary · about

  1. 0:00Introduction
  2. 2:22Goal
  3. 3:15What is a data structure
  4. 4:03What is a structure
  5. 5:08Dimensionless space
  6. 5:36Four bits
  7. 6:56Validity
  8. 10:56Value Relationships
  9. 11:26Representation Relationships
  10. 12:10Physical Relationships
  11. 15:29Functional Relationships
  12. 16:30Whole Part Relationships
  13. 18:37Data Structures
  14. 19:46Memory
  15. 22:30Stable Partition
  16. 25:36Inductive Basis
  17. 28:33Parallel Structure
  18. 31:36Partial Sort
  19. 35:54Sort Subrange
  20. 36:52incidental data structures
  21. 37:19structural ambiguities
  22. 37:42selfreferential interfaces
  23. 41:09forests and hierarchies
  24. 44:26shoelaces
  25. 49:53force data structure
~/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.