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 comedy in Shakespeare
    Delabastita, D
    HUMOR-INTERNATIONAL JOURNAL OF HUMOR RESEARCH, 2005, 18 (02): : 161 - 184
  • [32] Safe cross-language inheritance
    Gray, Kathryn E.
    ECOOP 2008 - OBJECT-ORIENTED PROGRAMMING, PROCEEDINGS, 2008, 5142 : 52 - 75
  • [33] Cross-language information retrieval
    Nie J.-Y.
    Synthesis Lectures on Human Language Technologies, 2010, 3 (01): : 1 - 142
  • [34] Cross-Language Authorship Attribution
    Bogdanova, Dasha
    Lazaridou, Angeliki
    LREC 2014 - NINTH INTERNATIONAL CONFERENCE ON LANGUAGE RESOURCES AND EVALUATION, 2014, : 2015 - 2020
  • [35] Cross-language plagiarism detection
    Potthast, Martin
    Barron-Cedeno, Alberto
    Stein, Benno
    Rosso, Paolo
    LANGUAGE RESOURCES AND EVALUATION, 2011, 45 (01) : 45 - 62
  • [36] ON CROSS-LANGUAGE IMAGE ANNOTATIONS
    Rui, Xiaoguang
    Yu, Nenghai
    Li, Mingjing
    Wu, Lei
    ICME: 2009 IEEE INTERNATIONAL CONFERENCE ON MULTIMEDIA AND EXPO, VOLS 1-3, 2009, : 1608 - 1611
  • [37] Psycholinguistics: A cross-language perspective
    Bates, E
    Devescovi, A
    Wulfeck, B
    ANNUAL REVIEW OF PSYCHOLOGY, 2001, 52 : 369 - 396
  • [38] Cross-language plagiarism detection
    Martin Potthast
    Alberto Barrón-Cedeño
    Benno Stein
    Paolo Rosso
    Language Resources and Evaluation, 2011, 45 : 45 - 62
  • [39] Performance Evaluation of the Multi-Language Helios Rotorcraft Simulation Software
    Wissink, Andrew
    Shende, Sameer
    PROCEEDINGS OF THE HPCMP USERS GROUP CONFERENCE 2008, 2008, : 442 - +
  • [40] Cross-language rhetorical preferences
    Taft, M.
    Huen, W.
    Chan, R.
    Kacanas, D.
    AUSTRALIAN JOURNAL OF PSYCHOLOGY, 2006, 58 : 12 - 12