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