~/talk

Type inference for application spines

Talkat WITS 2024 · on Saturday, 2024-01-20· [compilers-and-language-design]
slides:none on file

Argues that typechecking whole application spines — head plus all arguments — yields concrete wins: clearer error locations (e.g. “third argument of f”), supports visible type application and required type arguments, and makes impredicative instantiation feasible. Tools are bidirectional checking, an expected-type reference cell for infer-vs-check, short-lived instantiation variables, and the Quick Look instantiation strategy; this design is implemented in GHC practice for ~20 years, covers the common case (≈99% heads are variables), and works in the compiler.

AI-written summary · about

  1. 0:00Introduction to type checking
  2. 1:06Bidirectional type checking
  3. 3:50Working with type inference
  4. 6:17Refining the inference algorithm
  5. 11:22Limitations of binary application
  6. 21:09Treating applications as a whole
  7. 25:10Formalizing the application model
  8. 29:48Conclusion and Q&A
~/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.