arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1604.01290cs.PL
收藏

程序设计语言Dino的实现--动态语言性能的实例研究

Implementation of the Programming Language Dino -- A Case Study in Dynamic Language Performance

Vladimir N. Makarov

摘要:

本文简要介绍了程序设计语言Dino的现状,以了解它在其他动态规划语言中的地位。然后描述了当前的实现,使用的工具和主要的实现决策,包括如何实现一个稳定的,可移植的和简单的JIT编译器。我们研究了主要的实施决策对Dino在x86-64、AARCH 64和Powerpc 64上的性能的影响。简而言之,在从基于堆栈的虚拟机移动到寄存器传输架构之后,x86-64上的某些模型基准的性能提高了$\textbf{3.1}$倍,通过添加字节码组合进一步提高了$\textbf{1.5}$倍,通过使用JIT进一步提高了$\textbf{2.3}$倍,并且通过执行具有字节码专门化的类型推断进一步提高了$\textbf{4.4}$倍,得到的总体性能提高约为$\textbf{47}$倍。为了将这些结果放在上下文中,我们将Dino与上面提到的三个平台上广泛使用的Ruby,Python 3,PyPy和JavaScript实现进行了性能比较。本文的目的是与其他动态语言实现者分享Dino实现的经验,希望它能帮助他们改进流行的动态语言的实现,使其更快,更可移植,使用更少的开发人员资源,并可能避免在Dino开发过程中遇到的一些错误和错误方向。

英文摘要:

The article gives a brief overview of the current state of programming language Dino in order to see where its stands between other dynamic programming languages. Then it describes the current implementation, used tools and major implementation decisions including how to implement a stable, portable and simple JIT compiler. We study the effect of major implementation decisions on the performance of Dino on x86-64, AARCH64, and Powerpc64. In brief, the performance of some model benchmark on x86-64 was improved by $\textbf{3.1}$ times after moving from a stack based virtual machine to a register-transfer architecture, a further $\textbf{1.5}$ times by adding byte code combining, a further $\textbf{2.3}$ times through the use of JIT, and a further $\textbf{4.4}$ times by performing type inference with byte code specialization, with a resulting overall performance improvement of about $\textbf{47}$ times. To put these results in context, we include performance comparisons of Dino with widely used implementations of Ruby, Python 3, PyPy and JavaScript on the three platforms mentioned above. The goal of this article is to share the experience of Dino implementation with other dynamic language implementors in hope that it can help them to improve implementation of popular dynamic languages to make them probably faster and more portable, using less developer resources, and may be to avoid some mistakes and wrong directions which were experienced during Dino development.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑