~/talk

Practical Type Erasure

Talkat CppCon 2014 · on Thursday, 2014-09-11· at 09:00· Descartes· [rust]
links:none on file
slides:none on file

Shows a real production configuration system built with boost any and type erasure that actually runs on GCC 4.8/4.9 and cling 3.4 but not tested on Windows. Explains the implementation: erased-type storage via a polymorphic internal base, handlers per-type, search-order for multiple backends, JSON and database backends, and a memory and environment backend. Surprising specifics: injected types must be copyable, the API must predefine allowed operations, missing-vs-empty cannot be distinguished, and the system works in deployed code.

AI-written summary · about

  1. 0:00Intro
  2. 0:24Outline
  3. 2:41Type Erasure: Implementation
  4. 6:04Boost Any
  5. 9:02Practical Type Erasure
  6. 16:28Configuration Framework
  7. 21:53Architecture
  8. 23:07Client Facing Front End
  9. 27:03Back End Base Class
  10. 36:01Glue Getter Predicate
  11. 43:50Glue Setter
  12. 44:59Glue Handlers
  13. 47:19Back End Simple Handler
  14. 49:07Backend Env Handler
  15. 55:03Back End JSON Handler
  16. 57:27Back End Real Life
  17. 59:44Additional 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.