~/talk

Zero-Overhead Lexical Effect Handlers

Talkat OOPSLA 2025 · 2025-10-16..10-18· [compilers-and-language-design]
name:Cong Ma
links:none on file
links:none on file
links:none on file
slides:none on file

Claims a zero-overhead implementation for lexically scoped exceptional effect handlers via a type-directed translation that emits static provenance metadata per call site and a runtime stack worker with a clue integer that walks return addresses to find the right handler. Compiler emits a static lookup table keyed by return addresses, preserves semantics by a formal proof, integrates into Lexa, and shows through benchmarks that performance improves for rare-or-no-effect workloads while becoming worse when effects are extremely frequent. Artifacts and reproduced results are available.

AI-written summary · about

  1. 0:00Introduction
  2. 1:01Dynamic handlers modularity
  3. 2:26Lexical handlers benefits
  4. 3:28Performance overhead
  5. 4:12Zero overhead principle
  6. 4:33Handler passing example
  7. 5:57Key observation
  8. 6:59Higher-order functions example
  9. 9:33Compilation technique
  10. 10:57Performance results
  11. 12:21Conclusion
  12. 12:42Q&A: Runtime cost
  13. 13:44Q&A: Stack walker caching
  14. 14:27Q&A: Handler escape prevention
~/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.