首页> 外文会议>ACM SIGPLAN international conference on functional programming >Type inference builds a short cut to deforestation
【24h】

Type inference builds a short cut to deforestation

机译:类型推断构建了违规砍伐

获取原文

摘要

Deforestation optimises a functional program by transforming it into another one htat does not create certain intermediate data structures.Short cut deforestation is a deforestation mehtod which is based on a single,local transformation rule.In return,short cut deforestation expects both producer and ocnsumer of the intermediate structure in a certain form.Warm fusin was propsoed to automatic ally transform functins into this form.unfortunately,it is costly and hard to implement.Stating from the fact that short cut defroestation is based on a parametricity theorem of the second-order typed #lambda#-calculus,we show how the requried form of a list producer cna be derived by the use of type inferene.Typability for the second-orde tyepd #lambda#-calculus is undecidable.However,we presetn a linear-time algorithm that solves a partial type inferene prolem and that ,together with controlled inlining and polymorphic type instantiation,suffices for deforestation.The resulting new short cut deforestation algorithm is efficient and removes more intermediate lists than the original.
机译:Deforestation通过将其转换为另一个HTAT来优化功能程序不创建某些中间数据结构。Short Cut Deforestation是一种遮挡Mehtod,它基于单一的本地转换规则。在回报中,短切割砍伐期望生产者和ocnsumer某种形式的中间结构。福素被预防到这种形式。遗憾的是,它是昂贵的,难以实现。从短切脱落的事实中,缩短脱落基于二阶的参数定理。键入的#lambda#-calculus,我们展示了如何通过使用型号的List Producer CNA的REQURID形式。用于第二oRde Tyepd#Lambda#-Calculus的税率是不可察察的。然而,我们预先推出了线性时间解决部分型型促进的算法,以及控制内联和多晶型实例化,足以砍伐森林砍伐。由此产生的新短切割Orestation算法是高效的,除以原始列表更高。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号