High-performance cross-language interoperability in a multi-language runtime

Author:

Grimmer Matthias1,Seaton Chris2,Schatz Roland3,Würthinger Thomas4,Mössenböck Hanspeter1

Affiliation:

1. JKU Linz, Austria

2. Oracle Labs, UK

3. Oracle Labs, Austria

4. Oracle Labs, Switzerland

Abstract

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 boiler-plate 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.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference46 articles.

1. Dynamic typing in a statically-typed language

2. 75296. 75296.

3. Unipycation

4. 2542146. 2542146.

Cited by 10 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. SecV;Proceedings of the 24th International Middleware Conference on ZZZ;2023-11-27

2. Polyglot AST: Towards Enabling Polyglot Code Analysis;2023 27th International Conference on Engineering of Complex Computer Systems (ICECCS);2023-06-14

3. DynQ: a dynamic query engine with query-reuse capabilities embedded in a polyglot runtime;The VLDB Journal;2023-03-13

4. A Multi-threaded Fast Hardware Compiler for HDLs;Proceedings of the 32nd ACM SIGPLAN International Conference on Compiler Construction;2023-02-17

5. Babelfish;Proceedings of the VLDB Endowment;2021-10

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3