~/talk

Free vs Tagless Final: What, Why, When?

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

Compares concrete encodings by building a small Scala DSL with integer and string literals, addition, concatenation and string→int conversion, then implements evaluators and a pretty-printer to show what works. Shows initial/ADT, GADT-typed ADT to prevent invalid programs, datatypes à la carte and free monad as initial variants, and tagless final as typeclass combinators; demonstrates adding if, composing extensions, an inlining optimizer (harder in final), round‑trip translations, and recommends initial for inspection-heavy work and final for extensibility and performance.

AI-written summary · about

  1. 0:00Start
  2. 0:24Free vs Tagless
  3. 2:08Initial vs Final vs Tagged
  4. 15:09Case Study: Adding a pretty printer
  5. 46:08Comparison
~/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.