计算机科学 > 程序设计语言
[提交于 2018年11月15日]
标题:Effect Handling for Composable Program Transformations in Edward2
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Algebraic effects and handlers have emerged in the programming languages community as a convenient, modular abstraction for controlling computational effects. They have found several applications including concurrent programming, meta programming, and more recently, probabilistic programming, as part of Pyro's Poutines library. We investigate the use of effect handlers as a lightweight abstraction for implementing probabilistic programming languages (PPLs). We interpret the existing design of Edward2 as an accidental implementation of an effect-handling mechanism, and extend that design to support nested, composable transformations. We demonstrate that this enables straightforward implementation of sophisticated model transformations and inference algorithms.
提交历史
来自:David Moore[v1] 2018年11月15日 星期四 02:51:29 UTC