~/talk

How to make generics in C

Talkat Open Source Bridge 2014 · 2014-06-24..06-27· [c-and-cpp]
slides:none on file

A header-only C library generates type-specialized sorts by using token-pasting macros to create uniquely named functions from a user-provided type and compare, avoiding runtime function-pointer calls and enabling compiler inlining. It ships as a single-header distribution to sidestep C packaging, implements many algorithms (bubble, quick, merge, TimSort, etc.), includes tests, and reports up to 10× speedup on simple structures; the code is used in some upstream projects and is actively maintained on GitHub.

AI-written summary · about

  1. 0:00Intro
  2. 2:25Sorting algorithms
  3. 3:45Simple sorting algorithms
  4. 5:20Example
  5. 8:40Visual example
  6. 9:15Analysis
  7. 18:30Interview question
  8. 19:10Implementation details
  9. 23:02Generics
  10. 26:56Macros
  11. 28:33Tobias
  12. 29:24Daenerys
  13. 30:24Do Engineers
  14. 30:39Sort
  15. 32:04Open Source
  16. 34:29Compare
  17. 36:10Quicksort
  18. 37:20Debugging
  19. 38:38Invention
  20. 39:40Resizable
~/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.