On the benefits and pitfalls of extending a statically typed language JIT compiler for dynamic scripting languages

Author:

Castanos Jose1,Edelsohn David1,Ishizaki Kazuaki2,Nagpurkar Priya1,Nakatani Toshio2,Ogasawara Takeshi2,Wu Peng1

Affiliation:

1. IBM Thomas J. Watson Research Center, Yorktown Heights, NY, USA

2. IBM Research - Tokyo, Tokyo, Japan

Abstract

Whenever the need to compile a new dynamically typed language arises, an appealing option is to repurpose an existing statically typed language Just-In-Time (JIT) compiler (repurposed JIT compiler). Existing repurposed JIT compilers (RJIT compilers), however, have not yet delivered the hoped-for performance boosts. The performance of JVM languages, for instance, often lags behind standard interpreter implementations. Even more customized solutions that extend the internals of a JIT compiler for the target language compete poorly with those designed specifically for dynamically typed languages. Our own Fiorano JIT compiler is an example of this problem. As a state-of-the-art, RJIT compiler for Python, the Fiorano JIT compiler outperforms two other RJIT compilers (Unladen Swallow and Jython), but still shows a noticeable performance gap compared to PyPy, today's best performing Python JIT compiler. In this paper, we discuss techniques that have proved effective in the Fiorano JIT compiler as well as limitations of our current implementation. More importantly, this work offers the first in-depth look at benefits and limitations of the repurposed JIT compiler approach. We believe the most common pitfall of existing RJIT compilers is not focusing sufficiently on specialization, an abundant optimization opportunity unique to dynamically typed languages. Unfortunately, the lack of specialization cannot be overcome by applying traditional optimizations.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference38 articles.

1. JavaScript. http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM. JavaScript. http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM.

2. CPython. http://www.python.org/. CPython. http://www.python.org/.

3. Google V8 JavaScript engine. URL http://code.google.com/p/v8/. Google V8 JavaScript engine. URL http://code.google.com/p/v8/.

4. HipHop project. https://github.com/facebook/hiphop-php/wiki/. HipHop project. https://github.com/facebook/hiphop-php/wiki/.

5. IronPython. http://ironpython.codeplex.com/. IronPython. http://ironpython.codeplex.com/.

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

1. Generic go to go: dictionary-passing, monomorphisation, and hybrid;Proceedings of the ACM on Programming Languages;2022-10-31

2. A Study of Call Graph Construction for JVM-Hosted Languages;IEEE Transactions on Software Engineering;2021-12-01

3. Hiding in the Particles: When Return-Oriented Programming Meets Program Obfuscation;2021 51st Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN);2021-06

4. Hidden inheritance: an inline caching design for TypeScript performance;Proceedings of the ACM on Programming Languages;2020-11-13

5. Hop, Skip, & Jump;Proceedings of the 14th ACM SIGPLAN/SIGOPS International Conference on Virtual Execution Environments;2018-03-25

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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