Monadic Compiler Calculation (Functional Pearl)
- ,
- Graham Hutton
- ,
- University of Nottingham
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-reviewOpen access
Publication Information
Output type
Research Output:
Conference Article in Proceeding or Book/Report chapter
Article in proceedings
Peer-reviewOriginal language
EnglishPublication milestones
- Published - 08/2022
Publication status
Published - 08/2022
Volume
6Publisher
Association for Computing Machinery, United StatesPublication IDs
- Scopus: 85139595909
Host publication title
Proceedings of the ACM on Programming LanguagesAbstract
Bahr and Hutton recently developed a new approach to calculating correct compilers directly from specifications of their correctness. However, the methodology only considers converging behaviour of the source language, which means that the compiler could potentially produce arbitrary, erroneous code for source programs that diverge. In this article, we show how the methodology can naturally be extended to support the calculation of compilers that address both convergent and divergent behaviour simultaneously, without the need for separate reasoning for each aspect. Our approach is based on the use of the partiality monad to make divergence explicit, together with the use of strong bisimilarity to support equational-style calculations, but also generalises to other forms of effect by changing the underlying monad.
Publication metrics
PlumX, opens in new tab
Citations
7
Captures
1
Access to documents
Related Event
Title
Symposium on Principles of Programming Languages
Event type
SymposiumDegree of recognition
International eventDate
16/01/2022 - 22/01/2022Location
Rittenhouse Square in Center CityPhiladelphiaUnited States
