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 条
  • [31] DYNAMICALLY GENERATING FFT CODE ON MOBILE DEVICES
    Blake, Anthony M.
    2013 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH AND SIGNAL PROCESSING (ICASSP), 2013, : 2568 - 2571
  • [32] World Generating World: Memory, Code, Cyberspace
    Scardovi, Gabriele
    POLITICA & SOCIETA, 2018, 7 (01): : 3 - 25
  • [33] Improvement of RMI performance by generating efficient code
    Maeda, K
    ELECTRONICS AND COMMUNICATIONS IN JAPAN PART I-COMMUNICATIONS, 2003, 86 (10): : 79 - 88
  • [34] Denali: A practical algorithm for generating optimal code
    Joshi, Rajeev
    Nelson, Greg
    Zhou, Yunhong
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2006, 28 (06): : 967 - 989
  • [35] Generating C code from LOGS specifications
    Zhou, JG
    Chen, YF
    THEORETICAL ASPECTS OF COMPUTING - ICTAC 2005, 2005, 3722 : 195 - 210
  • [36] Generating optimized code from SCR specifications
    Rothamel, Tom
    Liu, Yanhong A.
    Heitmeyer, Constance L.
    Leonard, Elizabeth I.
    ACM SIGPLAN NOTICES, 2006, 41 (07) : 135 - 144
  • [37] PRODUCTION RULE MECHANISM FOR GENERATING LISP CODE
    BIERMANN, AW
    SMITH, DR
    IEEE TRANSACTIONS ON SYSTEMS MAN AND CYBERNETICS, 1979, 9 (05): : 260 - 276
  • [38] Generating Comments from Source Code with CCGs
    Matskevich, Sergey
    Gordon, Colin S.
    PROCEEDINGS OF THE 4TH ACM SIGSOFT INTERNATIONAL WORKSHOP ON NLP FOR SOFTWARE ENGINEERING (NL4SE '18), 2018, : 26 - 29
  • [39] Generating Java']Java code for TINA systems
    Guimaraes, RP
    Borelli, WD
    14TH SYMPOSIUM ON COMPUTER ARCHITECTURE AND HIGH PERFORMANCE COMPUTING, PROCEEDINGS, 2002, : 68 - 74
  • [40] Design of Flexible Code Block Comparisons to Improve Code Review of Refactored Code
    Heander, Lo
    Soderberg, Emma
    Rydenfalt, Christofer
    PROCEEDINGS OF THE 8TH INTERNATIONAL CONFERENCE ON THE ART, SCIENCE, AND ENGINEERING OF PROGRAMMING, PROGRAMMING COMPANION 2024, 2024, : 57 - 67