首页> 美国政府科技报告 >Program Transformation Techniques in Program Generation
【24h】

Program Transformation Techniques in Program Generation

机译:程序生成中的程序转换技术

获取原文

摘要

Automatic removal of intermediate structures has been an exciting possibility for a long time, holding a promise of the best of two worlds: programming with explicit intermediate structures enables concise and modular solution to problems; and the removal of the structures provides efficient run- time implementations. One particularly effective technique is called the fold- build rule. The rule exploits a convergence of three programming aspects, structured iteration, function abstraction, and parametricity, to achieve intermediate structure removal in a single transformation step. One shortcoming of the technique is that, up to now, it has not been clear how to fuse zip. The purpose of this paper is to extend the fold-build technique, showing how both branches of zip can be fused concurrently. The paper is organized as follows. We review the fold-build technique, then we introduce a new form of fold that enables coroutining, and show how this provides a solution to the zip problem. Then we present alternative models for coroutining folds, discuss implementation, and demonstrate full fusion. Finally, we give axiomatization for an abstract type that unifies the various models and we initiate a study of the abstract type that we hope will lead to a proof of correctness of the new fusion algorithm.

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号