Flexible Language Interoperability
Flexible Language Interoperability
复制标题
灵活的语言互操作性
DOI:
--
复制
发表时间:
2007
影响因子:
0.8
通讯作者:
U. Schultz
中科院分区:
文献类型:
--
作者:
Torbjörn Ekman;Peter Mechlenborg;U. Schultz
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)