Strict and lazy semantics for effects: layering monads and comonads

Proceedings of the ACM on Programming Languages(2018)

引用 3|浏览10
暂无评分
摘要
Two particularly important classes of effects are those that can be given semantics using a monad and those that can be given semantics using a comonad. Currently, programs with both kinds of effects are usually given semantics using a technique that relies on a distributive law. While it is known that not every pair of a monad and a comonad has a distributive law, it was previously unknown if there were any realistic pairs of effects that could not be given semantics in this manner. This paper answers that question by giving an example of a pair of effects that cannot be given semantics using a distributive law. Our example furthermore is intimately tied to the duality of strictness and laziness. We discuss how to view this duality through the lens of effects.
更多
查看译文
关键词
classical logic,comonad,consumer effect,distributive law,layering,laziness,linear logic,monad,producer effect,strictness
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要