~/talk

Stitch: The Sound Type-Indexed Type Checker (Functional Pearl)

links:none on file
slides:none on file

Stitch is a full STLC interpreter with parser, length-indexed AST, type checker, evaluator, common-subexpression elimination and a REPL, implemented in Haskell using GADTs and type indices plus singletons and a fin-index for de Bruijn indices. The parser uses an n-indexed Parsec monad with a length-indexed Vec environment; type checking uses a singleton context and a CPS trick to emulate exists. A generalized heterogeneous HashMap and ~2,000 lines of code compile and run, and type errors guide every bug fix.

AI-written summary · about

  1. 0:00Introduction to Stitch
  2. 1:49Project overview
  3. 3:24Indexed syntax and variables
  4. 7:06Understanding finite sets
  5. 8:23Parser implementation
  6. 10:50Type system interactions
  7. 13:02Type checking logic
  8. 15:53Type checker continuation
  9. 19:10Code and error handling
  10. 21:52Conclusion and recap
~/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.