~/talk

Objects? No Thanks!

Talkat Meeting C++ 2014 · 2014-12-05..12-06· [frontend-architecture]
links:none on file
slides:none on file

Claim: replace runtime virtual interfaces with static class templates to get C++ expressiveness without object overhead. Using GCC and small NXP LPC boards the blink example shows the macro C version is 16 bytes and 9 cycles the naive virtual C++ version grows to 68 bytes plus 12 bytes RAM and 65 cycles while the template approach compiles down to the same code as the macro version. The demo blinks an LED on real hardware and the templates produce zero RAM overhead.

AI-written summary · about

  1. 0:00Start
  2. 0:18Micro-controllers are everywhere
  3. 1:17Some small micro-controllers
  4. 2:07Small microcontroller economics
  5. 3:14Small micro-controller programming
  6. 4:24Code re-use
  7. 5:36So why should C++ be used?
  8. 8:01Test case: blink a LED
  9. 8:16Blink a LED in C
  10. 10:26abstraction
  11. 12:13Metrics
  12. 12:50Generated code (C++00-style)
  13. 16:50Alternative: compile-time polymorphism
  14. 17:42Run-time polymorphism
  15. 19:51Blink: some (ugly?) details
  16. 22:44Four pin archetypes
  17. 23:54Type narrowing
  18. 28:15Pin invert template
  19. 29:06Some more pin & port decorators
  20. 31:00consequences (2)
  21. 33:26Long term view
  22. 36:36Next steps
  23. 38:01Devirtualization?
  24. 40:48C++ language issues
  25. 41:58C++ language wishlist
  26. 42:43Summary
~/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.