Representing layered monads
The DOI matches its Crossref record.
Abstract
There has already been considerable research on constructing modular, monad-based specifications of computational effects (state, exceptions, nondeterminism, etc.) in programming languages. We present a simple framework in this tradition, based on a Church-style effect-typing system for an ML-like language. The semantics of this language is formally defined by a series of monadic translations, each one expanding away a layer of effects. Such a layered specification is easy to reason about, but its direct implementation (whether by parameterized interpretation or by actual translation) is often prohibitively inefficient.By exploiting deeper semantic properties of monads, however, it is also possible to derive a vastly more efficient implementation: we show that each layer of effects can be uniformly simulated by continuation-passing, and further that multiple such layers can themselves be simulated by a standard semantics for call/cc and mutable state. Thus, even multi-effect programs can be executed in Scheme or SML/NJ at full native speed, generalizing an earlier single-effect result. As an example, we show how a simple resumption-based semantics of concurrency allows us to directly simulate a shared-state program across all possible dynamic interleavings of execution threads.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cited by
Plotkin, G., & Pretnar, M. (2009) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-00590-9_7 · Cited by 225
“Filinski’s reflection and reification [12] are closely related general concepts.”
BackgroundCombining effects: Sum and tensor
Hyland, M., Plotkin, G., & Power, J. (2006) · Theoretical Computer Science · doi:10.1016/j.tcs.2006.03.013 · Cited by 181
“This combination of state and exceptions has been termed ‘transitional’ in [11], and ‘snapback’ in [4].”
BackgroundA Core Quantitative Coeffect Calculus
Brunel, A., Gaboardi, M., Mazza, D., & Zdancewic, S. (2014) · Lecture Notes in Computer Science · doi:10.1007/978-3-642-54833-8_19 · Cited by 90
“Several works have extended monads with the aim of reasoning about more general effects: indexed monads [41], parametrised monads [2], layered monads [13], etc.”
BackgroundCombining effects and coeffects via grading
Gaboardi, M., Katsumata, S.-Y., Orchard, D., Breuvart, F., & Uustalu, T. (2016) · Proceedings of the 21st ACM SIGPLAN International Conference on Functional Programming · doi:10.1145/2951913.2951939 · Cited by 63
CONVENT, L., LINDLEY, S., MCBRIDE, C., & MCLAUGHLIN, C. (2020) · Journal of Functional Programming · doi:10.1017/s0956796820000039 · Cited by 39
“Filinski’s work on monadic reflection (Filinski, 2010) and layered monads (Filinski, 1999) is closely related to effect handlers.”
Background
Metadata
- Authors
- Filinski, A.
- Venue
- Proceedings of the 26th ACM SIGPLAN-SIGACT symposium on Principles of programming languages
- Publisher
- ACM
- Published
- 1999-01
- Pages
- 175-188
- OpenAlex
- W1980476455
- Cited by
- 149
- References
- 0
- FWCI
- 5.66
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Representing layered monads. https://app.cochat.ai/papers/10.1145/292540.292557
- The paper
- Filinski, A. (1999). Representing layered monads. Proceedings of the 26th ACM SIGPLAN-SIGACT symposium on Principles of programming languages. https://doi.org/10.1145/292540.292557
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.