跑步者在行动
Runners in action
摘要:
代数效应的运行器,也称为comodels,提供了资源管理的数学模型。我们表明,他们也引起了一个编程的概念,模型顶级的外部资源,以及允许程序员模块化地定义自己的中间“虚拟机”。我们捕捉编程的核心思想与运行在一个等式演算$λ_{\mathsf{coop}}$,我们配备了一个健全的和连贯的指称语义,保证线性使用资源和执行的终结代码。我们为$λ_{\mathsf{coop}}$提供了运行程序的示例,提供了OCaml中的原型语言实现,以及基于$λ_{\mathsf{coop}}$的Haskell库。
英文摘要:
Runners of algebraic effects, also known as comodels, provide a mathematical model of resource management. We show that they also give rise to a programming concept that models top-level external resources, as well as allows programmers to modularly define their own intermediate "virtual machines". We capture the core ideas of programming with runners in an equational calculus $λ_{\mathsf{coop}}$, which we equip with a sound and coherent denotational semantics that guarantees the linear use of resources and execution of finalisation code. We accompany $λ_{\mathsf{coop}}$ with examples of runners in action, provide a prototype language implementation in OCaml, as well as a Haskell library based on $λ_{\mathsf{coop}}$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。