Oracle-Based Partial Evaluation

被引:1
|
作者
Ochoa, Claudio [1 ]
Puebla, German [2 ]
机构
[1] Intel, Software Solut Grp, Buenos Aires, DF, Argentina
[2] Tech Univ Madrid, Sch Comp Sci, Boadilla Del Monte, Spain
关键词
Program Transformation; Partial Evaluation; Resource-Aware Specialization; Logic Programming;
D O I
10.1016/j.entcs.2008.11.024
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We present Oracle-Based Partial Evaluation (OBPE), a novel approach to on-line Partial Evaluation (PE) which decides the control strategy to use for each call pattern by using an oracle function which compares the results of specializing such call pattern w.r.t. a set of strategies. Our proposal is motivated by Poly-Controlled Partial Evaluation (PCPE), which allows using different control strategies for different call patterns. Given a set CS of control strategies, the best PCPE specialized programs outperform the specialized programs obtained by traditional PE for any of the control strategies in CS, especially when resource-aware specialization is performed. Unfortunately, computing all PCPE specialized programs and then choosing a posteriori the best one is too costly in practice. In contrast, in OBPE a single specialized program is computed. We have developed an empirical oracle whose parameters are approximated from a set of training data, by using constraint logic programming. Our experimental results show that the additional cost of OBPE when compared with traditional PE is a constant factor and that, at least in our experiments, OBPE obtains significantly better specializations. We argue that our proposal is relevant in practice and introduces clear improvements over standard PE. Our work is developed in the context of logic programs, though the ideas are in principle of interest to the PE of any programming language.
引用
收藏
页码:145 / 161
页数:17
相关论文
共 50 条
  • [31] Oracle-based flocking of mobile robots in crash-recovery model
    Souissi, Samia
    Izumi, Taisuke
    Wada, Koichi
    [J]. THEORETICAL COMPUTER SCIENCE, 2011, 412 (33) : 4350 - 4360
  • [32] Outer-product-free sets for polynomial optimization and oracle-based cuts
    Daniel Bienstock
    Chen Chen
    Gonzalo Muñoz
    [J]. Mathematical Programming, 2020, 183 : 105 - 148
  • [33] All about uncertainties and traps: Statistical oracle-based attacks on a new CAPTCHA protection against oracle attacks
    Javier Hernandez-Castro, Carlos
    Li, Shujun
    R-Moreno, Maria D.
    [J]. COMPUTERS & SECURITY, 2020, 92
  • [34] Combining Overall and Local Class Accuracies In an Oracle-based Method for Dynamic Ensemble Selection
    Vriesmann, Leila M.
    Britto, Alceu S., Jr.
    Oliveira, Luiz S.
    Koerich, Alessandro L.
    Sabourin, Robert
    [J]. 2015 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS (IJCNN), 2015,
  • [35] Outer-product-free sets for polynomial optimization and oracle-based cuts
    Bienstock, Daniel
    Chen, Chen
    Munoz, Gonzalo
    [J]. MATHEMATICAL PROGRAMMING, 2020, 183 (1-2) : 105 - 148
  • [36] Oracle-Based Primal-Dual Algorithms for Packing and Covering Semidefinite Programs
    Elbassioni, Khaled
    Makino, Kazuhisa
    [J]. 27TH ANNUAL EUROPEAN SYMPOSIUM ON ALGORITHMS (ESA 2019), 2019, 144
  • [37] Random oracle-based anonymous credential system for efficient attributes proof on smart devices
    Nan Guo
    Tianhan Gao
    Hwagyoo Park
    [J]. Soft Computing, 2016, 20 : 1781 - 1791
  • [38] A Game of International Climate Policy Solved by a Homogeneous Oracle-Based Method for Variational Inequalities
    Drouet, Laurent
    Haurie, Alain
    Vial, Jean-Philippe
    Vielle, Marc
    [J]. ADVANCES IN DYNAMIC GAMES: THEORY, APPLICATIONS, AND NUMERICAL METHODS FOR DIFFERENTIAL AND STOCHASTIC GAMES: DEDICATED TO THE MEMORY OF ARIK A. MELIKYAN, 2011, 11 : 469 - +
  • [39] A Coin-Free Oracle-Based Augmented Black Box Framework (Full Paper)
    Yamashita, Kyosuke
    Tibouchi, Mehdi
    Abe, Masayuki
    [J]. IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2020, E103A (10) : 1167 - 1173
  • [40] Random oracle-based anonymous credential system for efficient attributes proof on smart devices
    Guo, Nan
    Gao, Tianhan
    Park, Hwagyoo
    [J]. SOFT COMPUTING, 2016, 20 (05) : 1781 - 1791