首页> 外文期刊>Logical Methods in Computer Science >An Effect System for Algebraic Effects and Handlers
【24h】

An Effect System for Algebraic Effects and Handlers

机译:代数效果和处理程序的效果系统

获取原文
           

摘要

We present an effect system for core Eff, a simplified variant of Eff, whichis an ML-style programming language with first-class algebraic effects andhandlers. We define an expressive effect system and prove safety of operationalsemantics with respect to it. Then we give a domain-theoretic denotationalsemantics of core Eff, using Pitts's theory of minimal invariant relations, andprove it adequate. We use this fact to develop tools for finding usefulcontextual equivalences, including an induction principle. To demonstrate theirusefulness, we use these tools to derive the usual equations for mutable state,including a general commutativity law for computations using non-interferingreferences. We have formalized the effect system, the operational semantics,and the safety theorem in Twelf.
机译:我们为核心Eff(一种简化的Eff变体)提供了一种效果系统,它是具有一流代数效果和处理程序的ML风格编程语言。我们定义了一个表达效果系统,并据此证明了操作语义学的安全性。然后,我们使用皮特斯的最小不变关系理论给出了核心Eff的领域理论指称语义,并证明了它的充分性。我们利用这一事实来开发工具,以找到有用的上下文对等物,包括归纳法则。为了证明其有用性,我们使用这些工具来得出可变状态的常用方程,包括使用非干扰引用进行计算的通用可交换律。我们已经在Twelf中正式确定了效果系统,操作语义和安全性定理。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号