~/talk

MacGyver's Haskell Compiler

Talkat ZuriHac 2023 · 2023-06-10..06-12· [functional-programming]
name:Ben Lynn
links:none on file
slides:none on file

Builds a working Haskell-to-combinators compiler that converts Haskell AST to lambda terms, uses Scott encoding for data and a fixed‑point (Y combinator) trick for recursion, then applies a bracket‑abstraction algorithm to emit S and K combinators. Runs a tiny VM and a browser demo that evaluates examples (four factorial reduces to 24 in about 1m17s in the demo), includes a reduction visualizer, and publishes the repo; core pipeline works but some features (mutual recursive modules, full pattern matching) remain unfinished.

AI-written summary · about

  1. 0:00Introduction
  2. 2:06Boolean logic to combinators
  3. 10:16Combinators as building blocks
  4. 17:23Live demo
  5. 25:14Compiling to combinators
  6. 36:46Recursion and Y combinator
  7. 44:52Bootstrapping and demos
  8. 52:29Tips and lessons
  9. 56:13Q&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.