Improved tupling for optimizing multi-paradigm declarative programs

被引:0
|
作者
González, S [1 ]
Moreno, G [1 ]
机构
[1] Univ Castilla La Mancha, Dept Comp Sci, Albacete 02071, Spain
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
This paper investigates the optimization by fold/unfold of declarative programs that integrate the best features from both functional and logic programming. Transformation sequences are guided by a mixed strategy which, in three low-level transformation phases. successfully combines two well-known heuristics -composition and tupling-, thus avoiding the construction of intermediate data structures and redundant. sub-computations. In particular, whereas composition is able to produce a single function definition for some nested (composed) functions. the tupling method merges non-nested functions calls into a new, function definition called eureka. We solve the non trivial problem of discovering the set of calls to be tupled in an incremental way.. i.e. chaining different eureka definitions where only non-nested calls sharing common variables are taken into account. Moreover, by appropriately combining both strategies, together with a simplification pre-process based on a kind of normalization, we automatically optimize a wide range of programs (with nested and/or non-nested function calls) at a very low cost.
引用
收藏
页码:419 / 429
页数:11
相关论文
共 50 条
  • [1] Automatic optimization of multi-paradigm declarative programs
    Moreno, G
    ADVANCES IN ARTIFICIAL INTELLIGENCE - IBERAMIA 2002, PROCEEDINGS, 2002, 2527 : 131 - 140
  • [2] Compiling multi-paradigm declarative programs into Prolog
    Antoy, S
    Hanus, M
    FRONTIERS OF COMBINING SYSTEMS, 2000, 1794 : 171 - 185
  • [3] Multi-paradigm declarative languages
    Hanus, Michael
    LOGIC PROGRAMMING, PROCEEDINGS, 2007, 4670 : 45 - 75
  • [4] Multi-paradigm declarative programming
    Hanus, M
    LOGIC PROGRAMMING - PROCEEDINGS OF THE 1997 INTERNATIONAL SYMPOSIUM, 1997, : 43 - 45
  • [5] Forward slicing of multi-paradigm declarative programs based on partial evaluation
    Vidal, G
    LOGIC BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2003, 2664 : 219 - 237
  • [6] Multi-paradigm learning of declarative models
    Ferri, C
    AI COMMUNICATIONS, 2004, 17 (02) : 95 - 97
  • [7] Distributed programming in a multi-paradigm declarative language
    Hanus, M
    PRINCIPLES AND PRACTICE OF DECLARATIVE PROGRAMMING, PROCEEDINGS, 1999, 1702 : 188 - 205
  • [8] Symbolic profiling for multi-paradigm declarative languages
    Albert, E
    Vidal, G
    LOGIC BASED PROGRAM SYNTHESIS AND TRANSFORMATION, 2002, 2372 : 148 - 167
  • [9] Partial evaluation of multi-paradigm declarative languages
    Albert, E
    AI COMMUNICATIONS, 2001, 14 (04) : 235 - 237
  • [10] Operational semantics for declarative multi-paradigm languages
    Albert, E
    Hanus, M
    Huch, F
    Oliver, J
    Vidal, G
    JOURNAL OF SYMBOLIC COMPUTATION, 2005, 40 (01) : 795 - 829