KIT | KIT-Bibliothek | Impressum | Datenschutz

Differential Execution with Lexical Tracing

Erdweg, Sebastian ORCID iD icon 1; Xu, Runqing ORCID iD icon 1; Bitar, Mo 1
1 Institut für Programmstrukturen und Datenorganisation (IPD), Karlsruher Institut für Technologie (KIT)

Abstract (englisch):

Incremental computing promises large speed-ups after small input edits. Yet, most incrementality approaches merely skip unchanged work and recompute the remaining sub-computations, even when the inputs change only slightly. Differential execution avoids this by propagating data changes (i.e., deltas), and prior work has shown how to develop a provably correct differential big-step semantics. Unfortunately, that semantics must still replay the original computation at every step, squandering much of the potential gain of incrementalization. While the semantics clearly needs caching to avoid recomputations, a sound and efficient caching discipline is challenging. First, each execution step must be uniquely identified; second, the identifier must remain stable even when the preceding control flow changes. To this end, we develop lexical tracing, which identifies execution steps through their path in the derivation tree of the big-step semantics. We then extend differential execution with lexical tracing and caching to deliver, for the first time, a formally verified, asymptotically efficient account of differential execution for imperative languages. ... mehr


Verlagsausgabe §
DOI: 10.5445/IR/1000192219
Veröffentlicht am 16.04.2026
Cover der Publikation
Zugehörige Institution(en) am KIT Institut für Programmstrukturen und Datenorganisation (IPD)
Publikationstyp Zeitschriftenaufsatz
Publikationsdatum 10.04.2026
Sprache Englisch
Identifikator ISSN: 2475-1421
KITopen-ID: 1000192219
Erschienen in Proceedings of the ACM on programming languages
Verlag Association for Computing Machinery (ACM)
Band 10
Heft OOPSLA1
Seiten 1682 - 1706
Schlagwörter incremental computing, operational semantics, mechanized metatheory
KIT – Die Universität in der Helmholtz-Gemeinschaft
KITopen Landing Page