RUNTIME CODE GENERATION FOR INTERPRETED DOMAIN-SPECIFIC MODELING LANGUAGES

被引:0
|
作者
Meyer, Tom [1 ]
Helms, Tobias [1 ]
Warnke, Tom [1 ]
Uhrmacher, Adelinde M. [1 ]
机构
[1] Univ Rostock, Inst Comp Sci, Albert Einstein Str 22, D-18059 Rostock, Germany
关键词
SIMULATION;
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Domain-specific modeling languages (DSMLs) facilitate concise and succinct model descriptions. DSMLs are commonly realized by defining a custom grammar and executing models in an interpreter. This provides flexibility in language design as well as in the implementation of simulation algorithms. However, this type of implementation can lead to a negative impact on simulation performance in comparison to implementing models in general-purpose programming languages (GPL). To mitigate this problem, we propose using runtime code generation. This allows us to replace specific parts of a model at runtime by compiling generated GPL source code. In this paper, we demonstrate the potential benefit of this concept based on ML-Rules, a DSML for modeling and simulating biochemical reaction networks. Using code generation for arithmetic expressions in ML-Rules' reaction rate functions, we were able to decrease the runtime by up to 40% in complex application scenarios.
引用
下载
收藏
页码:605 / 615
页数:11
相关论文
共 50 条
  • [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] Runtime code generation in C++ as a foundation for domain-specific optimisation
    Beckmann, O
    Houghton, A
    Mellor, M
    Kelly, PHJ
    DOMAIN-SPECIFIC PROGRAM GENERATION, 2003, 3016 : 291 - 306
  • [3] The Tool Generation Challenge for Executable Domain-Specific Modeling Languages
    Mayerhofer, Tanja
    Combemale, Benoit
    SOFTWARE TECHNOLOGIES: APPLICATIONS AND FOUNDATIONS, STAF 2017, 2018, 10748 : 193 - 199
  • [4] ViSlang: A System for Interpreted Domain-Specific Languages for Scientific Visualization
    Rautek, Peter
    Bruckner, Stefan
    Groeller, M. Eduard
    Hadwiger, Markus
    IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2014, 20 (12) : 2388 - 2396
  • [5] Domain-Specific Languages and Code Synthesis Using Haskell
    Gill, Andy
    COMMUNICATIONS OF THE ACM, 2014, 57 (06) : 42 - 49
  • [6] 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
  • [7] Applying static code analysis for domain-specific languages
    Iván Ruiz-Rube
    Tatiana Person
    Juan Manuel Dodero
    José Miguel Mota
    Javier Merchán Sánchez-Jara
    Software and Systems Modeling, 2020, 19 : 95 - 110
  • [8] Applying static code analysis for domain-specific languages
    Ruiz-Rube, Ivan
    Person, Tatiana
    Manuel Dodero, Juan
    Miguel Mota, Jose
    Merchan Sanchez-Jara, Javier
    SOFTWARE AND SYSTEMS MODELING, 2020, 19 (01): : 95 - 110
  • [9] Domain-specific languages and code synthesis using haskell
    Gill, Andy
    Queue, 2014, 12 (04): : 30 - 43
  • [10] Domain-specific modeling with visual languages - Preface
    Gray, J
    Rossi, M
    Tolvanen, JP
    JOURNAL OF VISUAL LANGUAGES AND COMPUTING, 2004, 15 (3-4): : 207 - 209