【24h】

Explicit Effect Subtyping

机译:显式子类型化

获取原文

摘要

As popularity of algebraic effects and handlers increases, so does a demand for their efficient execution. Eff, an ML-like language with native support for handlers, has a subtyping-based effect system on which an effect-aware optimizing compiler could be built. Unfortunately, in our experience, implementing optimizations for Eff is overly error-prone because its core language is implicitly-typed, making code transformations very fragile. To remedy this, we present an explicitly-typed polymorphic core calculus for algebraic effect handlers with a subtyping-based type-and-effect system. It reifies appeals to subtyping in explicit casts with coercions that witness the subtyping proof, quickly exposing typing bugs in program transformations. Our typing-directed elaboration comes with a constraint-based inference algorithm that turns an implicitly-typed Eff-like language into our calculus. Moreover, all coercions and effect information can be erased in a straightforward way, demonstrating that coercions have no computational content.
机译:随着代数效果和处理程序的普及,对其有效执行的需求也随之增加。 Eff是一种类似ML的语言,具有对处理程序的本机支持,它具有基于子类型的效果系统,可以在该系统上构建效果感知的优化编译器。不幸的是,根据我们的经验,为Eff实现优化过于容易出错,因为其核心语言是隐式类型的,从而使代码转换非常脆弱。为了解决这个问题,我们为代数效果处理程序提供了一个基于子类型的类型和效果系统的显式类型多态核心演算。它通过使用强制性来显式强制转换子类型,这些强制性可以见证子类型证明,并迅速暴露程序转换中的键入错误。我们针对输入的详细说明带有基于约束的推理算法,该算法将隐式类型的类似于Eff的语言转换为微积分。此外,所有强制和效果信息都可以直接删除,这表明强制不具有计算内容。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号