~/talk

Plenary: The Beauty and Power of "Primitive" C++

Talkat CppCon 2020 · 2020-09-14..09-18· at 08:45· all_of(), online· [rust]
slides:none on file

A tiny library maps typed objects to and from bytes with zero copying, a simple IDL of “flats”, a parser/generator and a runtime of accessors called a message descriptor. The prototype is about ~2,000 lines of C++ (parser ≈1,000, support ≈500), interoperates with Java and Python, and measures show single-message writes in the low nanoseconds (microbenchmarks ~4 ns) while tail allocations cost tens of nanoseconds (≈55 ns); implementation works but is deliberately experimental, not a standards proposal.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49Constraints
  3. 5:22Communication Model
  4. 6:17Data Structures
  5. 7:39Arrays
  6. 8:40Message Describing
  7. 9:15Type Mapping
  8. 11:23Types
  9. 11:54Whiteboard
  10. 12:34Interface Definition
  11. 13:38Flats
  12. 15:06Generator
  13. 15:50Framework
  14. 16:35Implementation
  15. 17:43Why write 2000 lines
  16. 19:23Flats Framework
  17. 20:04Good interfaces
  18. 21:56Single interface
  19. 24:54Single interface example
  20. 26:04Can I afford this
  21. 28:23Default constructor
  22. 28:45Test code
  23. 30:00Message Descriptor
  24. 31:16Openclose parenthesis
  25. 32:20Array
  26. 33:10Strings
  27. 34:33Vectors
  28. 35:23Memory Allocation
  29. 36:14String Allocation
  30. 36:37String Copy
  31. 38:18Error Handler
  32. 39:00Error Handling
  33. 39:23ExpectIt
  34. 40:23Default
  35. 41:12Cost
  36. 44:10Span
  37. 45:00SpanRef
  38. 46:09Initialization
  39. 48:30Optionals
  40. 49:48Time
  41. 50:23General Observations
  42. 51:53Debugging
  43. 54:53Typesafe mapping
  44. 58:42QA
~/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.