直接在OCaml中
Eff Directly in OCaml
摘要:
Eff语言是一种类似OCaml的语言,作为代数效应理论的原型实现,用于大规模的代数效应实验。我们将Eff嵌入到OCaml中,使用分隔延续库或多核OCaml分支。我们证明了嵌入的正确性,依赖于无标签的最终风格的解释器为基础的指称语义,包括新颖的,直接的指称语义的多提示分隔控制。嵌入是系统的,轻量级的,高性能的,甚至支持更高阶的,“动态”的多态性效果。OCaml因此可以被看作是Eff的另一个实现,扩大了Eff语言的范围和吸引力。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。