~/talk

Thoughts on Metaclasses - Herb Sutter

Talkat ACCU 2017 · 2017-04-24..04-29· [compilers-and-language-design]
slides:none on file

Proposal adds meta classes on top of assumed reflection and compile-time programming, letting library code rewrite class declarations (interfaces, value types, flag enums, properties, Qt-style signals/slots or COM/CX shims) at compile time. An alpha implementation for GCC (thanks Andrew Sutton) runs on Godbolt/Compiler Explorer, produces human-quality diagnostics, and successfully compiles several examples. Work spans about two years; goal is fewer hardwired language features and more testable, sharable libraries that replace some vendor extensions.

AI-written summary · about

  1. 0:00Intro
  2. 7:15Errors
  3. 8:02Interface
  4. 10:00Requirements
  5. 10:50Interfaces
  6. 12:13Metaclasses
  7. 17:53Usability Studies
  8. 18:50What are Metaclasses
  9. 21:07C language rules
  10. 22:25Write your own code
  11. 22:41Its a hook
  12. 22:58Not a mutable language
  13. 23:13You cannot change the grammar
  14. 23:44All classes are classes
  15. 24:57User code
  16. 26:46Source code
  17. 28:02C vs C
  18. 28:44C vs C Implementation
  19. 29:09Alpha Implementation
  20. 29:20C Demo
  21. 30:20Compiler Explorer
  22. 30:54C to C
  23. 31:36Compile
  24. 32:29Error interface
  25. 32:41Data members
  26. 33:20A strong foundation
  27. 36:05Value
  28. 39:29Class Pair
  29. 40:21Class Pairs
  30. 42:12Flag Default Constructor
  31. 42:38Declaration
  32. 43:17Hierarchy
  33. 45:06bug
  34. 46:08print labels
  35. 49:45default on metadata
  36. 50:34template instantiation
  37. 51:18segway
  38. 54:46Cute
  39. 56:16Cute Mock
  40. 57:39Sample Cute Mock
~/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.