~/talk

Design by Introspection

Talkat NDC TechTown 2017 · 2017-10-17..10-20· [compilers-and-language-design]
slides:none on file

Design by Introspection claims a small set of rules — rule of optionality, rule of introspection, rule of elastic composition — and shows concrete tooling to make them work: compile-time traits and reflection, static if and compile-time function evaluation, and string mixin code generation. Replacing top-level imports with scoped imports speeds D stdlib builds by about an order of magnitude on a 200k‑line library; a production datastore uses static if roughly every ten statements. Examples include optional-interface APIs and compact checked‑integer implementations that compile to efficient code.

AI-written summary · about

  1. 0:00Introduction to D language
  2. 1:58Performance and scale
  3. 4:59Design principles
  4. 7:13Scoped imports
  5. 12:04Granular dependencies
  6. 17:04Compiler and linker trade-offs
  7. 21:49Static if and flexibility
  8. 26:01Compile time evaluation
  9. 31:00Policy based design
  10. 37:01Design by introspection
  11. 40:04Practical applications
~/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.