~/talk

Type Theory Behind the Glasgow Haskell Compiler Internals (Part 5)

Talkat LambdaConf 2018 · 2018-06-03..06-05· [machine-learning]
slides:none on file

Tracks the concrete claim that GHC Core grows by one clean extension — System F_Omega → System FC — adding coercions as types to compile GADTs and associated types via explicit casts, dictionaries and type-level functions. Shows the implementation: explicit coercion arguments, dictionaries-as-records, typechecker+optimizer that erase coercions at runtime. Demonstrates a real bug (several years of exploitable newtype-deriving mishaps revealing Bool internals) and the practical fix: roles/nominal vs representational equality (2011) that prevents the misuse and keeps performance.

AI-written summary · about

  1. 0:00Start
  2. 1:13Algebraic Data Types in the Ghc
  3. 3:11Algebraic Data Types and Associated Types
  4. 4:12Algebraic Data Types
  5. 5:20Generalized Algebraic Data Types
  6. 11:45Type Constraint
  7. 16:43Cast Operator
  8. 56:14Nominal Equality
  9. 56:25Type Synonyms
  10. 57:16Parametric and Non-Parametric Type Variable Occurrences
~/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.