~/talk

“Regular Types and Why Do I Care ?”

Talkat CppCon 2018 · 2018-09-23..09-28· [compilers-and-language-design]
slides:none on file

Explains why STL expects value-like types, shows std::sort actually requires a strict weak ordering (example: a naive 2D point comparator yields unordered pairs and breaks sort), and demonstrates correct lexicographic and distance-based comparators. Covers Concepts Lite / C++20 three-way comparison (three-way comparison / spaceship) and how std::optional and string_view as borrow type interact with equality and ordering. Recommends designing types as SemiRegular/Regular when possible and treating non-owning spans and views with contextual care.

AI-written summary · about

  1. 0:00Intro
  2. 0:55Why Regular Types
  3. 2:40Terminology
  4. 4:53YOP
  5. 6:52Mathematics Really Does Matter
  6. 8:16Algorithmic Journeys
  7. 9:06Fundamentals of Genetic Programming
  8. 10:47Simplicity
  9. 13:07STL Design Principles
  10. 18:46Why Do I Care
  11. 20:16stdssort
  12. 25:23strict weak ordering
  13. 26:07equivalence relations and equivalence classes
  14. 27:31dictionary order
  15. 29:41equality comparable
  16. 33:25wholepart semantics
  17. 36:53STD optional
  18. 39:57StringView
  19. 43:31Span
  20. 46:01Questions
~/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.