~/talk

Type engineering in OCaml, Illustrated on the OCaml Compiler

Talkat FUN OCaml 2024 · 2024-09-16..09-17· [compilers-and-language-design]
links:none on file
slides:none on file

Ongoing five‑year refactoring of the OCaml compiler’s type checker and pattern matcher aims to trade ad hoc complexity for named records, constrained GADTs, and targeted uses of polymorphic and extensible variants; the codebase spans ~30 years and 350+ contributors so changes are conservative. Practical choices: prefer records over wide tuples, use objects used only in native backend for open recursion, use first-class modules switch Windows/Unix implementation, and remove or rewrite format has a 12-parameter constructor (huge binary cost) via deprecation and a ppx replacement.

AI-written summary · about

  1. 0:00Introduction
  2. 0:42Why refactor OCaml compiler
  3. 2:25Types for safe refactoring
  4. 6:26Product types in OCaml
  5. 9:18Objects and first-class modules
  6. 12:08Variance in OCaml types
  7. 15:24Extensible variants and ADTs
  8. 17:12Abstract data types
  9. 20:51GADTs for pattern matching
  10. 23:23Complexity of format strings
  11. 24:48Type engineering conclusion
  12. 25:52Q&A session
~/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.