Extension of type-based approach to generation of stream-processing programs by automatic insertion of buffering primitives

被引:0
|
作者
Suenaga, Kohei [1 ]
Kobayashi, Naoki
Yonezawa, Akinori
机构
[1] Univ Tokyo, Tokyo, Japan
[2] Tohoku Univ, Sendai, Miyagi 980, Japan
来源
LOGIC BASED PROGRAM SYNTHESIS AND TRANSFORMATION | 2006年 / 3901卷
关键词
D O I
10.1007/11680093_7
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In our previous paper, we have proposed a framework for automatically translating tree-processing programs into stream-processing programs. However, in writing programs that require buffering of input data, a user has to explicitly use buffering primitives which copy data from input stream to memory or copy constructed trees from memory to an output stream. Such explicit insertion of buffering primitives is often cumbersome and worsens the readability of the program. We overcome the above-mentioned problems by developing an algorithm which, given any simply-typed tree-processing program, automatically inserts buffering primitives. The resulting program is guaranteed to be well-typed under our previous ordered-linear type system, so that the program can be further transformed into an equivalent stream-processing program using our previous framework.
引用
收藏
页码:98 / 114
页数:17
相关论文
共 6 条
  • [1] Translation of tree-processing programs into stream-processing programs based on ordered linear type
    Kodama, K
    Suenaga, K
    Kobayashi, N
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2004, 3302 : 41 - 56
  • [2] Translation of tree-processing programs into stream-processing programs based on ordered linear type
    Kodama, Koichi
    Suenaga, Kohei
    Kobayashi, Naoki
    JOURNAL OF FUNCTIONAL PROGRAMMING, 2008, 18 (333-371) : 333 - 371
  • [3] Type-based primitives for distributed data structures: A functional approach
    Chuang, TR
    2003 INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING WORKSHOPS, PROCEEDINGS, 2003, : 131 - 138
  • [4] AdaStreams: A Type-Based Programming Extension for Stream-Parallelism with Ada 2005
    Hong, Gingun
    Hong, Kirak
    Burgstaller, Bernd
    Blieberger, Johann
    RELIABLE SOFTWARE TECHNOLOGIES - ADA-EUROPE 2010, 2010, 6106 : 208 - +
  • [5] Borg: A knowledge-based system for automatic generation of image processing programs
    Clouard, R
    Elmoataz, A
    Porquet, C
    Revenu, M
    IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 1999, 21 (02) : 128 - 144
  • [6] A vehicle type-based approach to model car following behaviors in simulation programs (case study: Car-motorcycle following behavior)
    Amini, Ehsan
    Tabibi, Masuod
    Khansari, Ehsan Ramezani
    Abhari, Mohammadreza
    IATSS RESEARCH, 2019, 43 (01) : 14 - 20