Multi-language synchronization

被引:0
|
作者
Ennals, Robert [1 ]
Gay, David [1 ]
机构
[1] Intel Res, 2150 Shattuck Ave, Berkeley, CA 94704 USA
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We propose multi-language synchronization, a novel approach to the problem of migrating code from a legacy language (such as C) to a new language. We maintain two parallel versions of every source file, one in the legacy language, and one in the new language. Both of these files are fully editable, and the two files are kept automatically in sync so that they have the same semantic meaning and, where possible, have the same comments and layout. We propose non-deterministic language translation as a means to implement multi-language synchronization. If a file is modified in language A, we produce a new version in language B by translating the file into a non-deterministic description of many ways that it could be encoded in language B and then choosing the version that is closest to the old file in language B. To demonstrate the feasibility of this approach, we have implemented a translator that can synchronize files written in a straw-man language, Jekyll, with files written in C. Jekyll is a high level functional programming language that has many of the features found in modern programming languages.
引用
收藏
页码:475 / +
页数:3
相关论文
共 50 条
  • [1] On Multi-language Abstraction Towards a Static Analysis of Multi-language Programs
    Buro, Samuele
    Crole, Roy L.
    Mastroeni, Isabella
    [J]. STATIC ANALYSIS (SAS 2020), 2020, 12389 : 310 - 332
  • [2] On multi-language abstraction: Towards a static analysis of multi-language programs
    Buro, Samuele
    Crole, Roy
    Mastroeni, Isabella
    [J]. FORMAL METHODS IN SYSTEM DESIGN, 2023,
  • [3] On the Multi-Language Construction
    Buro, Samuele
    Mastroeni, Isabella
    [J]. PROGRAMMING LANGUAGES AND SYSTEMS, ESOP 2019: 28TH EUROPEAN SYMPOSIUM ON PROGRAMMING, 2019, 11423 : 293 - 321
  • [4] Bilingualism and multi-language communication
    Clement, R
    Bourhis, RY
    [J]. INTERNATIONAL JOURNAL OF PSYCHOLOGY, 1996, 31 (3-4) : 4411 - 4411
  • [5] Multi-language system design
    Jerraya, A
    Ernst, R
    [J]. DESIGN, AUTOMATION AND TEST IN EUROPE CONFERENCE AND EXHIBITION 1999, PROCEEDINGS, 1999, : 696 - 699
  • [6] Multi-Language Support in TouchCORE
    Schiedermeier, Maximilian
    Li, Bowen
    Languay, Ryan
    Freitag, Greta
    Wu, Qiutan
    Kienzle, Jorg
    Ali, Hyacinth
    Gauthier, Ian
    Mussbacher, Gunter
    [J]. 24TH ACM/IEEE INTERNATIONAL CONFERENCE ON MODEL-DRIVEN ENGINEERING LANGUAGES AND SYSTEMS COMPANION (MODELS-C 2021), 2021, : 626 - 630
  • [7] Multi-Language Programming with Ada
    Ochem, Quentin
    [J]. SIGADA 2009: PROCEEDINGS OF THE ACM INTERNATIONAL CONFERENCE ON ADA AND RELATED TECHNOLOGIES, 2009, : 19 - 19
  • [8] Multi-language naming game
    Zhou, Jianfeng
    Lou, Yang
    Chen, Guanrong
    Tang, Wallace K. S.
    [J]. PHYSICA A-STATISTICAL MECHANICS AND ITS APPLICATIONS, 2018, 496 : 620 - 634
  • [9] MULTI-LANGUAGE BLAS - A PROPOSAL
    AHARONIAN, G
    [J]. SIGPLAN NOTICES, 1985, 20 (11): : 11 - 13
  • [10] MULTI-LANGUAGE POETRY IN OSIRIS
    MELANCON, R
    [J]. LIBERTE, 1984, 26 (03): : 167 - 167