~/talk

Modern C and What We Can Learn From It

Talkat ACCU 2021 Online · 2021-03-10..03-13· [c-and-cpp]
name:Luca Sas
links:none on file
slides:none on file

C99/C11 techniques reorder the game: designated initializers and compound literals let complex graphics pipelines be declared as values; passing structs by value and zero is initialization remove many pointer+outparam patterns and improve optimizer behavior. Use _Generic for overload-like macros, scope macros for defer semantics, and single-header libs (stbds) for portable dynamic arrays/hash maps. Case studies: Chrome once triggered ~25,000 implicit allocations on a keystroke; a modder cuts GTA Online load time by ~70% by replacing libc string APIs and removing allocations.

AI-written summary · about

  1. 0:00Modern C journey
  2. 1:59C history and standards
  3. 4:01C vs C++ differences
  4. 8:10Advanced initialization
  5. 12:27Declarative API design
  6. 14:52C11 features and generics
  7. 17:12Macro utility and RAII
  8. 20:22Value-oriented math APIs
  9. 23:17Modern error handling
  10. 27:36Error handling comparisons
  11. 30:34Generic programming in C
  12. 34:24Library design and building
  13. 37:06Resource and memory management
  14. 39:03Memory allocation strategies
  15. 42:14String handling pitfalls
  16. 46:16Modern string APIs
  17. 50:54Advanced string techniques
  18. 1:00:33Q&A and final thoughts
~/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.