~/talk

Down the Rabbit Hole: An Exploration of Stack Overflow Questions

Talkat CppCon 2021 · on Friday, 2021-10-29· at 09:00· online· [career-development]
links:none on file
slides:none on file

Shows actual Stack Overflow questions and then measures solutions: benchmarks use a logger class that counts comparisons and swaps on libc++ and find nth_element vs partial_sort gives far more swaps and roughly double comparisons for nth_element on this machine, while first_two custom algorithm needs at most two swaps and matches partial_sort on comparisons so yields only a small win; demonstrates a lambda wrapper for ispunct to disambiguate overloads avoid UB with signed char; uses equal_range with transparent comparator on tuples for partial-key searches.

AI-written summary · about

  1. 0:00Intro
  2. 3:10Stack Overflow Question
  3. 4:48Example Question
  4. 8:29Which is Better
  5. 14:55Complexity
  6. 17:44Class
  7. 18:41Comparisons and swaps
  8. 20:25Can we do better
  9. 21:43Comparisons
  10. 22:32Implementation Specific
  11. 24:23Down the Rabbit Hole
  12. 28:50Partial Sword vs Partial Sort
  13. 30:27Is this actually worth doing
  14. 35:54A different question
  15. 36:59Unresolved overletter function type
  16. 38:45Addressing standard library functions
  17. 40:33Using a lambda
  18. 42:04IsPunk
  19. 46:42lambda
  20. 50:24transparent comparisons
  21. 54:04comparison functor
  22. 55:54the big picture
~/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.