GENERATING FLEXIBLE CODE FOR ASSOCIATIONS

被引:0
|
作者
Goldberg, Mayer [1 ]
Wiener, Guy [1 ]
机构
[1] Ben Gurion Univ Negev, Dept Comp Sci, 1 Ben Gurion Blvd, Beer Sheva, Israel
关键词
Associations; Code generation; Model-driven Architecture; Meta-programming;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Generating code for associations is one of the most fundamental requirements from a model-based code generator. There are several approaches for implementing associations, ranging from using basic collections frameworks to using a database. The choice between them derive from the current requirements of the software: Whether parallelism, caching or persistency required for a relation. Hard-coding a specific design choice makes it difficult to alter it later. In this work, we propose a scheme that allows for automatic code generations of associations with different features, without requiring manual changes to the code. These features include using indices, traversing the association in parallel, or using an external database. Instead of the sequential iterator interface, we propose to use an interface that is based on operations over collections, such as Foreach, Filter, Map and Fold. This interface allows for writing operations that traverse the association without being dependent on the implementation details of the generated code.
引用
收藏
页码:96 / 104
页数:9
相关论文
共 50 条
  • [21] Qiskit Code Assistant: Training LLMs for generating Quantum Computing Code
    Dupuis, Nicolas
    Buratti, Luca
    Vishwakarma, Sanjay
    Forrat, Aitana Viudes
    Kremer, David
    Faro, Ismael
    Puri, Ruchir
    Cruz-Benito, Juan
    2024 IEEE LLM AIDED DESIGN WORKSHOP, LAD 2024, 2024,
  • [22] Towards Generating Summaries for Lexically Confusing Code through Code Erosion
    Yan, Fan
    Li, Ming
    PROCEEDINGS OF THE THIRTIETH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, IJCAI 2021, 2021, : 3721 - 3727
  • [23] Generating Flexible Workloads for Graph Databases
    Bagan, Guillaume
    Bonifati, Angela
    Ciucanu, Radu
    Fletcher, George H. L.
    Lemay, Aurelien
    Advokaat, Nicky
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2016, 9 (13): : 1457 - 1460
  • [24] Unit commitment with flexible generating units
    Lu, B
    Shahidehpour, M
    IEEE TRANSACTIONS ON POWER SYSTEMS, 2005, 20 (02) : 1022 - 1034
  • [25] GENERATING EFFICIENT CODE FOR LAZY FUNCTIONAL LANGUAGES
    SMETSERS, S
    NOCKER, E
    VANGRONINGEN, J
    PLASMEIJER, R
    LECTURE NOTES IN COMPUTER SCIENCE, 1991, 523 : 592 - 617
  • [26] Generating SAS® source code with SAS® macros
    Graebner, RW
    PROCEEDINGS OF THE TWENTY-THIRD ANNUAL SAS USERS GROUP INTERNATIONAL CONFERENCE, 1998, : 440 - 441
  • [27] Generating Efficient FFT GPU Code with LIFT
    Koepcke, Bastian
    Steuwer, Michel
    Gorlatch, Sergei
    PROCEEDINGS OF THE 8TH ACM SIGPLAN INTERNATIONAL WORKSHOP ON FUNCTIONAL HIGH-PERFORMANCE AND NUMERICAL COMPUTING (FHPNC '19), 2019, : 1 - 13
  • [28] CLDIFF: Generating Concise Linked Code Differences
    Huang, Kaifeng
    Chen, Bihuan
    Peng, Xin
    Zhou, Daihong
    Wang, Ying
    Liu, Yang
    Zhao, Wenyun
    PROCEEDINGS OF THE 2018 33RD IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMTED SOFTWARE ENGINEERING (ASE' 18), 2018, : 679 - 690
  • [29] GENERATING EFFICIENT CODE FROM STRICTNESS ANNOTATIONS
    LINDSTROM, G
    GEORGE, L
    YEH, D
    LECTURE NOTES IN COMPUTER SCIENCE, 1987, 250 : 140 - 154
  • [30] GENERATING EFFICIENT CODE FROM CONTINUATION SEMANTICS
    PETTERSSON, M
    LECTURE NOTES IN COMPUTER SCIENCE, 1991, 477 : 165 - 178