计算机科学 > 程序设计语言
[提交于 2018年12月31日]
标题:Eff Directly in OCaml
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:The language Eff is an OCaml-like language serving as a prototype implementation of the theory of algebraic effects, intended for experimentation with algebraic effects on a large scale. We present the embedding of Eff into OCaml, using the library of delimited continuations or the multicore OCaml branch. We demonstrate the correctness of the embedding denotationally, relying on the tagless-final-style interpreter-based denotational semantics, including the novel, direct denotational semantics of multi-prompt delimited control. The embedding is systematic, lightweight, performant and supports even higher-order, 'dynamic' effects with their polymorphism. OCaml thus may be regarded as another implementation of Eff, broadening the scope and appeal of that language.
提交历史
来自:EPTCS[v1] 2018年12月31日 星期一 02:09:18 UTC