Semantics Lifting for Syntactic Sugar
summary
Presents an algorithm that derives host-independent evaluation rules from host semantics and desugaring rules and implements it as Osazone, a tool that lifts semantics for syntactic sugar and generates interpreters. Proposes and proves four conditions (on syntactic sugars, meta-functions, and host semantics) that guarantee correctness and preservation of abstraction. Evaluates on seven benchmarks plus several real-world DSLs using lambda-calculus and mini-ML hosts, reports reproducible artifacts and that lifted semantics stays free of host constructs when conditions hold.
AI-written summary · about
chapters (11)
- 0:00Semantics lifting intro
- 1:27Abstraction leakage in DSLs
- 2:31Lifting vs typing challenges
- 3:36Algorithm overview
- 5:45Non-locality impact
- 7:10Non-compositionality in rules
- 8:16Preserving abstraction conditions
- 10:26Implementation setup
- 11:50Benchmark results
- 12:33Summary and future
- 13:15Q&A
related talks
28mAdaptive Structural Operational Semantics
40mFormal semantics for multi-language programs
29mSemantic Transformation Framework for Rewriting Rules
25mA Semantic Approach to Robust Property Preservation
20mCertified Abstract Machines for Skeletal Semantics
40mFormal semantics for multi-language programs
12mOn the power of syntactic methods: It is all syntax after all…
31mProgramming Languages Must Have Formal Semantics. Period.
