~/talk

A Type Inferencer for ML in 200 Lines of Scala

Talkat Typelevel Summit NYC 2017 · on Thursday, 2017-03-23· [compilers-and-language-design, scala]
slides:none on file

Shows a working implementation of Wand's algorithm for a tiny Standard ML subset implemented in 200 lines of Scala, with the compiler split into type annotation + constraint generation + unification. The code generates type placeholders, emits set-based constraints, and solves them by unification to recover ML-style polymorphism; it handles ordinary ML programs but fails on higher-rank polymorphism (undecidable cases) and some construct combinations that require more than simple unification. Code and slides are available.

AI-written summary · about

  1. 0:00Introduction
  2. 2:07Compilers Overview
  3. 4:25Micro ML
  4. 12:56Unification
  5. 16:50Questions
~/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.