Effects as capabilities: effect handlers and lightweight effect polymorphism
Effects as capabilities: effect handlers and lightweight effect polymorphism
复制标题
效果作为功能:效果处理程序和轻量级效果多态性
DOI:
10.1145/3428194
复制
发表时间:
2020
影响因子:
--
通讯作者:
K. Ostermann
中科院分区:
文献类型:
--
作者:
J. Brachthäuser;Philipp Schuster;K. Ostermann
Effect handlers have recently gained popularity amongst programming language researchers. Existing type- and effect systems for effect handlers are often complicated and potentially hinder a wide-spread adoption. We present the language Effekt with the goal to close the gap between research languages with effect handlers and languages for working programmers. The design of Effekt revolves around a different view of effects and effect types. Traditionally, effect types express which side effects a computation might have. In Effekt, effect types express which capabilities a computation requires from its context. While this new point in the design space of effect systems impedes reasoning about purity, we demonstrate that it simplifies the treatment of effect polymorphism and the related issues of effect parametricity and effect encapsulation. To guarantee effect safety, we separate functions from values and treat all functions as second-class. We define the semantics of Effekt as a translation to System Xi, a calculus in explicit capability-passing style.
登录
查看更多内容
DOI:
10.1145/3242744.3242753
发表时间:
2018
期刊:
Haskell Symposium
影响因子:
--
作者:
Eisenberg, Richard A.;Breitner, Joachim;Peyton Jones, Simon
通讯作者:
Peyton Jones, Simon
DOI:
10.1145/2500365.2500590
发表时间:
2013
期刊:
--
影响因子:
--
作者:
Kammar O
通讯作者:
Kammar O
影响因子:
1.1
作者:
CONVENT L
通讯作者:
CONVENT L
影响因子:
--
作者:
Jonathan Immanuel Brachthäuser;Philipp Schuster;Klaus Ostermann
通讯作者:
Klaus Ostermann
影响因子:
1.1
作者:
Jonathan Immanuel Brachthäuser;Philipp Schuster;Klaus Ostermann
通讯作者:
Klaus Ostermann