首页> 外文期刊>The Journal of Systems and Software >Efficient support of dynamic inheritance for class- and prototype-based languages
【24h】

Efficient support of dynamic inheritance for class- and prototype-based languages

机译:对基于类和原型的语言的动态继承的有效支持

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

Dynamically typed languages are becoming increasingly popular for different software development scenarios where runtime adaptability is important. Therefore, existing class-based platforms such as Java and .Net have been gradually incorporating dynamic features to support the execution of these languages. The implementations of dynamic languages on these platforms commonly generate an extra layer of software over the virtual machine, which reproduces the reflective prototype-based object model provided by most dynamic languages. Simulating this model frequently involves a runtime performance penalty, and makes the interoperation between class- and prototype-based languages difficult. Instead of simulating the reflective model of dynamic languages, our approach has been to extend the object-model of an efficient class-based virtual machine with prototype-based semantics, so that it can directly support both kinds of languages. Consequently, we obtain the runtime performance improvement of using the virtual machine JIT compiler, while a direct interoperation between languages compiled to our platform is also possible. In this paper, we formalize dynamic inheritance for both class- and prototype-based languages, and implement it as an extension of an efficient virtual machine that performs JIT compilation. We also present an extensive evaluation of the runtime performance and memory consumption of the programming language implementations that provide dynamic inheritance, including ours.
机译:动态类型语言在运行时适应性很重要的不同软件开发方案中正变得越来越流行。因此,现有的基于类的平台(例如Java和.Net)已逐渐合并动态功能以支持这些语言的执行。这些平台上动态语言的实现通常会在虚拟机上生成额外的软件层,从而重现大多数动态语言提供的基于反射原型的对象模型。仿真此模型经常会导致运行时性能下降,并使基于类和基于原型的语言之间的互操作变得困难。我们的方法不是模拟动态语言的反射模型,而是使用基于原型的语义扩展高效的基于类的虚拟机的对象模型,以便它可以直接支持两种语言。因此,我们可以使用虚拟机JIT编译器来提高运行时性能,同时也可以在编译到我们平台的语言之间进行直接互操作。在本文中,我们将基于类和基于原型的语言的动态继承形式化,并将其实现为执行JIT编译的高效虚拟机的扩展。我们还对提供动态继承的编程语言实现(包括我们的)的运行时性能和内存消耗进行了广泛的评估。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号