首页> 外文会议>Programming languages meets program verification >Singleton Types Here Singleton Types There Singleton Types Everywhere
【24h】

Singleton Types Here Singleton Types There Singleton Types Everywhere

机译:这里的Singleton类型那里的Singleton类型

获取原文
获取原文并翻译 | 示例

摘要

Singleton types are often considered a poor man's substitute for dependent types. But their generalization in the form of GADTs has found quite a following. The main advantage of singleton types and GADTs is to preserve the so-called phase distinction, which seems to be so important to make use of the usual compilation techniques.rnOf course, they considerably restrict the programmers, which often leads them to duplicate code at both the term and type levels, so as to reflect at the type level what happens at the term level, in order to be able to reason about it.rnIn this article, we show how to automate such a duplication while eliminating the problematic dependencies. More specifically, we show how to compile the Calculus of Constructions into λ_h, a non-dependently-typed language, while still preserving all the typing information. Since λ_h has been shown to be amenable to type preserving CPS and closure conversion, it shows a way to preserve types when doing code extraction and more generally when using all the common compiler techniques.
机译:单身人士类型通常被认为是穷人替代依赖类型的人。但是,以GADT形式对它们进行一般化后发现了很多。单例类型和GADT的主要优点是保留了所谓的相位区分,这对于使用常规编译技术而言似乎非常重要。当然,它们极大地限制了程序员,这经常导致他们在术语和类型级别,以反映类型级别在术语级别发生的情况,以便能够对此进行推理。在本文中,我们展示了如何在消除有问题的依赖性的同时使这种重复自动化。更具体地说,我们展示了如何在不保留所有类型信息的情况下,将构造微积分编译为非依赖类型语言λ_h。由于已显示λ_h适合保留类型的CPS和闭包转换,因此它显示了一种在进行代码提取时以及更普遍地在使用所有常用编译器技术时保留类型的方法。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号