Algebraic fusion of functions with an accumulating parameter and its improvement

Author:

KATSUMATA SHIN-YA,NISHIMURA SUSUMU

Abstract

AbstractThis paper develops a new framework for fusion that is designed for eliminating the intermediate data structures involved in the composition of functions that have one accumulating parameter. The new fusion framework comprises two steps:algebraic fusionand its subsequentimprovementprocess. The key idea in our development is to regard functions with an accumulating parameter as functions that operate over the monoid ofdata contexts. Algebraic fusion composes each such function with a monoid homomorphism that is derived from the definition of the consumer function to obtain a higher-order function that computes over the monoid of endofunctions. The transformation result may be further refined by an improvement process, which replaces the operation over the monoid of endofunctions (i.e., function closures) with another monoid operation over a monoid structure other than function closures.Using our framework, one can formulate a particular solution to the fusion problem by devising appropriate monoids and monoid homomorphisms. This provides a unified exposition of a variety of fusion methods that have been developed so far in different formalisms. Furthermore, the cleaner formulation makes it possible to argue about some delicate issues on a firm mathematical basis. We demonstrate that algebraic fusion and improvement in the world of complete pointed partial orders (CPOs) and continuous functions can correctly fuse functions that operate on partial and infinite data structures. We also show that subtle differences in termination behaviours of transformed programmes caused by certain different fusion methods can be cleanly explained by corresponding improvement processes that have different underlying monoid structures.

Publisher

Cambridge University Press (CUP)

Subject

Software

Reference31 articles.

1. Formal Efficiency Analysis for Tree Transducer Composition

2. Safe fusion of functional expressions II: Further improvements

3. Attribute coupled grammars;Ganzinger;Proceedings of the ACM SIGPLAN '84 Symposium on Compiler Construction.,1984

Cited by 4 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. A short cut to parallelization theorems;ACM SIGPLAN Notices;2013-11-12

2. A short cut to parallelization theorems;Proceedings of the 18th ACM SIGPLAN international conference on Functional programming;2013-09-25

3. A shortcut fusion approach to accumulations;Science of Computer Programming;2013-08

4. Manipulating accumulative functions by swapping call-time and return-time computations;Journal of Functional Programming;2012-05

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3