Automatic compiler/interpreter generation from programs for Domain-Specific Languages: Code bloat problem and performance improvement

被引:4
|
作者
Kovacevic, Zeljko [1 ]
Ravber, Miha [1 ]
Liu, Shih-Hsi [2 ]
Crepinsek, Matej [1 ]
机构
[1] Univ Maribor, Fac Elect Engn & Comp Sci, Koroska Cesta 46, Maribor 2000, Slovenia
[2] Calif State Univ Fresno, Dept Comp Sci, Fresno, CA 93740 USA
关键词
Semantic inference; Genetic programming; Attribute grammars; Domain-Specific Languages; Code bloat; GRAMMATICAL INFERENCE; IMPLEMENTATION;
D O I
10.1016/j.cola.2022.101105
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Using advanced AI approaches, the development of Domain-Specific Languages (DSLs) can be facilitated for domain experts who are not proficient in programming language development. In this paper, we first addressed the aforementioned problem using Semantic Inference. However, this approach is very time-consuming. Namely, a lot of code bloat is present in the generated language specifications, which increases the time required to evaluate a solution. To improve this, we introduced a multi-threaded approach, which accelerates the evaluation process by over 9.5 times, while the number of fitness evaluations using the improved Long Term Memory Assistance (LTMA) was reduced by up to 7.3%. Finally, a reduction in the number of input samples (fitness cases) was proposed, which reduces CPU consumption further.
引用
收藏
页数:12
相关论文
共 6 条
  • [1] Interoperable domain-specific languages families for code generation
    Malohlava, Michal
    Plasil, Frantisek
    Bures, Tomas
    Hnetynka, Petr
    SOFTWARE-PRACTICE & EXPERIENCE, 2013, 43 (05) : 479 - 499
  • [2] Practicing Domain-Specific Languages: From Code to Models
    Gonnord, Laure
    Mosser, Sebastien
    21ST ACM/IEEE INTERNATIONAL CONFERENCE ON MODEL DRIVEN ENGINEERING LANGUAGES AND SYSTEMS: COMPANION PROCEEDINGS (MODELS-COMPANION '18), 2018, : 106 - 113
  • [3] Delite: A Compiler Architecture for Performance-Oriented Embedded Domain-Specific Languages
    Sujeeth, Arvind K.
    Brown, Kevin J.
    Lee, Hyoukjoong
    Rompf, Tiark
    Chafi, Hassan
    Odersky, Martin
    Olukotun, Kunle
    ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2014, 13
  • [4] Automatic generation of Truffle-based interpreters for Domain-Specific Languages
    Leduc, Manuel
    Jouneaux, Gwendal
    Degueule, Thomas
    Le Guernic, Gurvan
    Barais, Olivier
    Combemale, Benoit
    JOURNAL OF OBJECT TECHNOLOGY, 2020, 19 (02):
  • [5] Portable Parallel Performance from Sequential, Productive, Embedded Domain-Specific Languages
    Kamil, Shoaib
    Coetzee, Derrick
    Beamer, Scott
    Cook, Henry
    Gonina, Ekaterina
    Harper, Jonathan
    Morlan, Jeffrey
    Fox, Armando
    ACM SIGPLAN NOTICES, 2012, 47 (08) : 303 - 304
  • [6] Automatic Creation of High-bandwidth Memory Architectures from Domain-specific Languages: The Case of Computational Fluid Dynamics
    Soldavini, Stephanie
    Friebel, Karl
    Tibaldi, Mattia
    Hempel, Gerald
    Castrillon, Jeronimo
    Pilato, Christian
    ACM TRANSACTIONS ON RECONFIGURABLE TECHNOLOGY AND SYSTEMS, 2023, 16 (02)