High-Performance Cross-Language Interoperability in a Multi-language Runtime

被引:0
|
作者
Grimmer, Matthias [1 ]
Seaton, Chris [2 ]
Schatz, Roland [3 ]
Wurthinger, Thomas [4 ]
Moessenboeck, Hanspeter [1 ]
机构
[1] Johannes Kepler Univ Linz, Linz, Austria
[2] Oracle Labs, Reading, Berks, England
[3] Oracle Labs, Vienna, Austria
[4] Oracle Labs, Baden, Switzerland
关键词
cross-language; language interoperability; virtual machine; optimization; language implementation;
D O I
10.1145/2816707.2816714
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Programmers combine different programming languages because it allows them to use the most suitable language for a given problem, to gradually migrate existing projects from one language to another, or to reuse existing source code. However, existing cross-language mechanisms suffer from complex interfaces, insufficient flexibility, or poor performance. We present the TruffleVM, a multi-language runtime that allows composing different language implementations in a seamless way. It reduces the amount of required boilerplate code to a minimum by allowing programmers to access foreign functions or objects by using the notation of the host language. We compose language implementations that translate source code to an intermediate representation (IR), which is executed on top of a shared runtime system. Language implementations use language-independent messages that the runtime resolves at their first execution by transforming them to efficient foreign-language-specific operations. The TruffleVM avoids conversion or marshaling of foreign objects at the language boundary and allows the dynamic compiler to perform its optimizations across language boundaries, which guarantees high performance. This paper presents an implementation of our ideas based on the Truffle system and its guest language implementations JavaScript, Ruby, and C.
引用
收藏
页码:78 / 90
页数:13
相关论文
共 50 条
  • [31] Cross-language activation of phonology in young bilingual readers
    Jared, Debra
    Cormier, Pierre
    Levy, Betty Ann
    Wade-Woolley, Lesly
    READING AND WRITING, 2012, 25 (06) : 1327 - 1343
  • [32] A cross-language personalized recommendation model in digital libraries
    Lai, Yuangen
    Zeng, Jianxun
    ELECTRONIC LIBRARY, 2013, 31 (03) : 264 - 277
  • [33] Toward a Cross-Cultural and Cross-Language Multi-Agent Recommendation Model for Food and Nutrition
    Al-Nazer, Ahmed
    Helmy, Tarek
    2012 IEEE/WIC/ACM INTERNATIONAL CONFERENCE ON WEB INTELLIGENCE AND INTELLIGENT AGENT TECHNOLOGY WORKSHOPS (WI-IAT WORKSHOPS 2012), VOL 3, 2012, : 245 - 249
  • [34] Cross-language predictors of consonant-vowel syllables
    Ember, M
    Ember, CR
    AMERICAN ANTHROPOLOGIST, 1999, 101 (04) : 730 - 742
  • [35] Speaker Gender Classification in Mono-Language and Cross-Language Using BLSTM Network
    Alashban, Adal A.
    Alotaibi, Yousef A.
    2021 44TH INTERNATIONAL CONFERENCE ON TELECOMMUNICATIONS AND SIGNAL PROCESSING (TSP), 2021, : 66 - 71
  • [36] Multi-language Dynamic Taint Analysis in a Polyglot Virtual Machine
    Kreindl, Jacob
    Bonetta, Daniele
    Stadler, Lukas
    Leopoldseder, David
    Moessenboeck, Hanspeter
    MPLR '20: PROCEEDINGS OF THE 17TH INTERNATIONAL CONFERENCE ON MANAGED PROGRAMMING LANGUAGES AND RUNTIMES, 2020, : 15 - 29
  • [37] English Language Features in Linguistics by High-Performance Computing
    Chen, Dongyan
    Awang, Suryani
    Kadir, Zaemah Abdul
    MOBILE INFORMATION SYSTEMS, 2022, 2022
  • [38] A cross-language study of verbal and visuospatial working memory span
    Chen, Zen-Yong
    Cowell, Patricia E.
    Varley, Rosemary
    Wang, Yi-Ching
    JOURNAL OF CLINICAL AND EXPERIMENTAL NEUROPSYCHOLOGY, 2009, 31 (04) : 385 - 391
  • [39] Cross-Language Plagiarism Detection Model Based On Multiple Features
    Liu, Gang
    Dong, Yichao
    Li, Guangxi
    26TH IEEE SYMPOSIUM ON COMPUTERS AND COMMUNICATIONS (IEEE ISCC 2021), 2021,
  • [40] SPEAKER ADAPTATION OF A MULTILINGUAL ACOUSTIC MODEL FOR CROSS-LANGUAGE SYNTHESIS
    Himawan, Ivan
    Aryal, Sandesh
    Ouyang, Iris
    Kang, Sam
    Lanchantin, Pierre
    King, Simon
    2020 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH, AND SIGNAL PROCESSING, 2020, : 7629 - 7633