2004
DOI: 10.7146/brics.v11i28.21853
|View full text |Cite
|
Sign up to set email alerts
|

A Functional Correspondence between Monadic Evaluators and Abstract Machines for Languages with Computational Effects

Abstract: Abstract. We extend our correspondence between evaluators and abstract machines from the pure setting of the λ-calculus to the impure setting of the computational λ-calculus. We show how to derive new abstract machines from monadic evaluators for the computational λ-calculus. Starting from (1) a generic evaluator parameterized by a monad and (2) a monad specifying a computational effect, we inline the components of the monad in the generic evaluator to obtain an evaluator written in a style that is specific to… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
6
0

Year Published

2005
2005
2013
2013

Publication Types

Select...
3
2
1

Relationship

2
4

Authors

Journals

citations
Cited by 6 publications
(6 citation statements)
references
References 15 publications
0
6
0
Order By: Relevance
“…The programmatic transformation of formal semantics dates to work by Reynolds [15]. More recent work by Danvy et al has shown that formal semantics are highly amenable to program transformations and that it is possible to automatically convert denotational semantics into operational semantics and vice versa [2,3,1,[6][7][8]. These techniques, combined with ours, should permit the mechanizable construction of static analyzers for a wider variety of formal semantics paradigms.…”
Section: Related Workmentioning
confidence: 99%
“…The programmatic transformation of formal semantics dates to work by Reynolds [15]. More recent work by Danvy et al has shown that formal semantics are highly amenable to program transformations and that it is possible to automatically convert denotational semantics into operational semantics and vice versa [2,3,1,[6][7][8]. These techniques, combined with ours, should permit the mechanizable construction of static analyzers for a wider variety of formal semantics paradigms.…”
Section: Related Workmentioning
confidence: 99%
“…As in recent work on abstracting abstract machines [23], our semantic transformation implicitly utilizes the techniques of Danvy et al [1,2,7] in order to calculate an abstract 1 machine equivalent to the concrete semantics. It diverges with this line of work by applying a monadic-normalform transformation [6] (instead of a store-passing-style transformation) to the rules for the machine.…”
Section: Overviewmentioning
confidence: 99%
“…We have chosen Haskell in lieu of formal mathematics for the presentation for two reasons: (1) Haskell is directly executable, and (2) Haskell has concise, convenient and readable syntax for expressing monads-the central actor in our work. Our fundamental results are no more restricted to Haskell than monads are restricted to Haskell.…”
Section: Introductionmentioning
confidence: 99%
“…Ager et al [2] investigate a correspondence between semantics described in terms of monadic evaluators and languages with computational effects. They show that a calculus for tail-recursive stack inspection corresponds to a lifted state monad.…”
Section: Related Workmentioning
confidence: 99%