首页> 外文会议>ACM SIGPLAN international conference on functional programming >Type inference with rank 1 polymorphism for type-directed compilation of ML
【24h】

Type inference with rank 1 polymorphism for type-directed compilation of ML

机译:型推断与秩1多态性的ML类型定向汇编

获取原文
获取外文期刊封面目录资料

摘要

This paper defines an extended polymorphic type syste for an ML-style programming language,and develops a sound and omplete tyep inference algorithm.Different from ther conventional ML tyep disciline,the proposed type system allows full rank 1 polymorphism,where polymorphic types can appear in other types such as product tyeps,disjoint union types adn range tyeps of function types.Beacuse of this feature,the propsoed type system significantly reduces the value-only restriction of polymorphism,which is currently adopted in most of ML-style impure languages.It also serves as a basis for efficient implementation of type-directed compilation of polymorphismThe extended type system achieves more efficient tyep inference algorihtm,and it also contributes to develop more efficient type-passing implementation of polymoprhism.We show that the ocnventional ML polymorphism sometimes introduces exponential overshead both at compile-tiem elaboratin and run-time type-passing exectution,and that these problems cna be eliminated by our type inference system.Compared with a more powerful rank 2 tyupe inferene systems based on semi-unification,the proposed type inference algorithm infers a most general type for any typeble expression by using the conventional first-order unification,and it sis therefore easily adopted in existing implementation of ML family of languages.
机译:本文定义了用于ML型编程语言的扩展多态式Syste,并开发声音和全部Tyep推理算法。从传统的ML Tyep Disciline中,所提出的类型系统允许全秩1多态性,其中多态性类型可以出现其他类型如产品TYEPS,脱节联合类型ADN范围TYEPS函数类型。该功能的装置,预型系统显着降低了多态性的仅限价值限制,目前在ML式不纯语言中采用.it还用作高效实施多态性编译的基础,多态性的扩展类型系统实现了更有效的Tyep推理allorihtm,它还有助于开发更有效的Polyoprhism的类型的实现。我们表明OcnVentional ML多态性有时会引入指数在Compile-Tiem elaboratin和运行时类型的exectution,以及那个这个问题E问题CNA由我们的类型推断系统消除..通过基于半统一的更强大的等级2 Tyupe Ungresens系统,所提出的型推理算法通过使用传统的一阶统一,所提出的型推理算法为任何类型的表达式提供最通用的类​​型。因此,它可以在现有的ML类别实施中易于采用。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号