~/talk

What FP Can Learn From Formal Languages: Towards a Leaner Syntax

Talkat LambdaConf 2019 · 2019-06-05..06-07· [frontend-architecture]
links:none on file
slides:none on file

Argues that much syntactic overhead is accidental and shows concrete experiments: code in Haskell and Scala, property-based testing and example generation, graph-based diagrams, and a GitHub prototype that uses Scala 3 union types plus implicits to encode algebraic disjunctions. Demonstrates composing validators from string→address→shipment, recovering errors and preserving precise error unions, but notes JVM type-erasure, compiler totality quirks, and messy implicit lifting. Proposes embracing structurality and algebraic composition and treating terminals first-class to get DSL-like syntax without losing HKTs and parametricity.

AI-written summary · about

  1. 0:00Introduction
  2. 1:23Syntax in FP matters
  3. 3:34Types and grammar rules
  4. 9:26Algebraic encoding
  5. 15:54Live coding: Scala 3 Union types
  6. 31:55Debugging demo
  7. 54:48Error recovery with Union types
  8. 1:01:10Summary
~/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.