~/talk

Reasoning with function signatures

Talkat CppCon 2020 · 2020-09-14..09-18· [compilers-and-language-design]
links:none on file
slides:none on file

Argues that assuming pure functions (no side effects) makes code predictable, reproducible and locally reasoned and shows a concrete model of a compiler as a function evolving from compile(string_view) -> vector<byte> into a richer CompilationResult with optional<byte[]> plus diagnostics: vector<string> and a CompilationOptions flag that, when set, returns dependencies: vector<filesystem::path>. Demonstrates optional output for ill-formed input and how signatures document behavior without implementation.

AI-written summary · about

  1. 0:00The value of pure functions
  2. 1:04Modeling a compiler
  3. 2:30Refining return types
  4. 3:23Extending function interfaces
  5. 5:03Reasoning and communication
~/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.