~/talk

Hello Operator: Making The Call for C

Talkat NDC TechTown 2024 · 2024-09-09..09-12· [c-and-cpp, software-architecture]
links:none on file
slides:none on file

Proposal to add C operators by decoupling an explicit operator-to-function binding (operator declarations that map to normal C functions) and using exact type matching instead of C++ overload resolution. Syntax sketch uses underscore-capital Operator declarations bound to named functions; large-value types use pointer-based versions to avoid copies. Works for plain value types like vec3/vec2 and keeps no name-mangling, but temporary-producing expressions still leak without RAII/destructors and implicit conversions are intentionally disallowed.

AI-written summary · about

  1. 0:00Introduction to C committee
  2. 1:42Designing for constraints
  3. 3:14The debate over operators
  4. 4:46Genuine appeal of operators
  5. 7:15Existing operators in C
  6. 9:35Functional vs operator syntax
  7. 10:59Roadmap for the proposal
  8. 11:59C++ operator overloading
  9. 13:44Name and argument lookup
  10. 16:37Operators in C
  11. 19:15Overload resolution
  12. 21:26Name mangling
  13. 22:49Name mangling and ffi
  14. 26:11N3051 and N3201 proposals
  15. 27:50Proposed solution for C
  16. 29:47Syntax demonstration
  17. 32:45Middle ground for C
  18. 35:37Implicit conversions
  19. 38:36Exact type matching
  20. 40:50C2Y generic feature
  21. 42:30Integer promotion
  22. 45:49RAII and destructors
  23. 47:20Memory leaks in C
  24. 50:57Handling RAII
  25. 52:03Hidden blessing of constraints
  26. 53:28References and pointers
  27. 55:33Pointer operators
  28. 57:03Proposed design review
  29. 58:47Solving the tension
  30. 59:26Q&A
~/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.