On the expressive power of user-defined effects: effect handlers, monadic reflection, delimited control
On the expressive power of user-defined effects: effect handlers, monadic reflection, delimited control
复制标题
关于用户定义效果的表现力:效果处理程序、单子反射、分隔控制
DOI:
10.1145/3110257
复制
发表时间:
2017
影响因子:
--
通讯作者:
Forster Y
中科院分区:
文献类型:
--
作者:
Forster Y
We compare the expressive power of three programming abstractions for user-defined computational effects: Plotkin and Pretnar's effect handlers, Filinski's monadic reflection, and delimited control without answer-type-modification. This comparison allows a precise discussion about the relative expressiveness of each programming abstraction. It also demonstrates the sensitivity of the relative expressiveness of user-defined effects to seemingly orthogonal language features.We present three calculi, one per abstraction, extending Levy's call-by-push-value. For each calculus, we present syntax, operational semantics, a natural type-and-effect system, and, for effect handlers and monadic reflection, a set-theoretic denotational semantics. We establish their basic metatheoretic properties: safety, termination, and, where applicable, soundness and adequacy. Using Felleisen's notion of a macro translation, we show that these abstractions can macro-express each other, and show which translations preserve typeability. We use the adequate finitary set-theoretic denotational semantics for the monadic calculus to show that effect handlers cannot be macro-expressed while preserving typeability either by monadic reflection or by delimited control. Our argument fails with simple changes to the type system such as polymorphism and inductive types. We supplement our development with a mechanised Abella formalisation.
登录
查看更多内容
影响因子:
1.1
作者:
Graham Hutton;Erik Meijer
通讯作者:
Erik Meijer
DOI:
10.1016/0167-6423(90)90056-j
发表时间:
1990
期刊:
Sci. Comput. Program.
影响因子:
--
作者:
M. Spivey
通讯作者:
M. Spivey
DOI:
--
发表时间:
2017
期刊:
影响因子:
--
作者:
D. Miller
通讯作者:
D. Miller
DOI:
--
发表时间:
2007
期刊:
International Conference on Typed Lambda Calculus and Applications
影响因子:
--
作者:
O. Kiselyov;Chung
通讯作者:
Chung
影响因子:
0.8
作者:
J. Laird
通讯作者:
J. Laird