~/talk

A Type System From Scratch

links:none on file
slides:none on file

A compact, concrete tour of how Swift’s type system is reduced to a tiny core, turned into constraints, and solved as a graph: builds a constraint graph from expressions (you can reproduce this with Swift’s -Xfrontend -debug-constraints), demonstrates solving by connected components, and shows defaults and overloads in action (e.g. ~60 slash overloads). Claims inference complexity rises rapidly with features (PSPACE-hard, NP-hard via a 3‑SAT overload encoding, exponential with polymorphism), notes the real checker needs 30–60 rules, and links an implementation using Algorithm W and M plus a constraint generator.

AI-written summary · about

  1. 0:00Introduction to types
  2. 2:52The lambda cube
  3. 7:00Defining type checking rules
  4. 14:44Type inference vs checking
  5. 19:30Practical type inference
  6. 24:26Complexity of Swift types
  7. 28:43Graph-based constraint solving
  8. 37:00Q&A and closing thoughts
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.