~/talk

Embedding by Unembedding

Talkat ICFP 2023 · 2023-09-04..09-09· [compilers-and-language-design]
links:none on file
linkedin:nicolasgwu
slides:none on file

Presents a concrete recipe that turns a tagless‑final (HOAS) interface into de Bruijn terms via embedding by unembedding, exposing when HOAS fails and how to fix it. Provides an NV wrapper, lifting functions and a variables type class that automate environment reindexing. Demonstrates two full case studies: CTS incremental lambda (initial run has overhead but Template Haskell optimizations remove it) and Hobbit lenses (first embedding of a bidirectional language with binders). Code and artifacts are available and reusable.

AI-written summary · about

  1. 0:00Embedding languages by program manipulation
  2. 0:21Embedding and advanced semantics
  3. 3:13Incremental and bidirectional programming
  4. 3:35Limitations of HOAS for binders
  5. 8:09De Bruijn indices and HOAS combination
  6. 9:31Recipe for embedding by unembedding
  7. 10:36Recipe applied to Lambda calculus
  8. 13:25HOAS syntax to advanced semantics
  9. 16:37NV wrapper and lifting functions
  10. 19:27Incremental Lambda calculus case study
  11. 20:52Unembedding performance results
  12. 21:14Hobbit higher-order lens language
  13. 22:20Future directions and open questions
  14. 22:42Summary and conclusion
  15. 23:05Q&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.