Flexible Language Interoperability

Flexible Language Interoperability
复制标题

灵活的语言互操作性

DOI:
--
复制
发表时间:
2007
影响因子:
0.8
通讯作者:
U. Schultz
U. Schultz
中科院分区:
--
文献类型:
--
作者:
Torbjörn Ekman;Peter Mechlenborg;U. Schultz

文献摘要

被引文献

相似文献

虚拟机提高了执行环境的抽象级别,但代价是限制了支持的语言集。此外,语言实现与托管在同一虚拟机上的其他语言集成的能力通常会限制语言的功能。在本文中,我们提出了一个高度灵活而有效的方法来托管面向对象的虚拟机上的多种编程语言。我们的方法是基于扩展接口的每个类与语言特定的包装方法,提供每种语言的定制视图的一个给定的类。这种方法既可以部署在静态类型的虚拟机(如JVM)上,也可以部署在动态虚拟机(如Smalltalk虚拟机)上。我们已经实现了我们的方法,语言互操作性的原型虚拟机的基础上的Smalltalk对象模型,它提供了互操作性的Smalltalk,Java和BETA编程语言的嵌入式版本的嵌入式系统。(减)
Virtual machines raise the abstraction level of the execution environment at the cost of restricting the set of supported languages. Moreover, the ability of a language implementation to integrate with other languages hosted on the same virtual machine typically constrains the features of the language. In this paper, we present a highly flexible yet efficient approach to hosting multiple programming languages on an objectoriented virtual machine. Our approach is based on extending the interface of each class with language-specific wrapper methods, offering each language a tailored view of a given class. This approach can be deployed both on a statically typed virtual machine, such as the JVM, and on a dynamic virtual machine, such as a Smalltalk virtual machine. We have implemented our approach to language interoperability on top of a prototype virtual machine for embedded systems based on the Smalltalk object model, which provides interoperability for embedded versions of the Smalltalk, Java, and BETA programming languages. (Less)