𝔖 Bobbio Scriptorium
✦   LIBER   ✦

[ACM Press the 4th workshop - Genova, Italy (2009.07.06-2009.07.06)] Proceedings of the 4th workshop on the Implementation, Compilation, Optimization of Object-Oriented Languages and Programming Systems - ICOOOLPS '09 - Faster than C#

✍ Scribed by Cuni, Antonio; Ancona, Davide; Rigo, Armin


Book ID
120712367
Publisher
ACM Press
Year
2009
Weight
741 KB
Category
Article
ISBN
1605585416

No coin nor oath required. For personal study only.

✦ Synopsis


The Common Language Infrastructure (CLI) is a virtual machine expressly designed for implementing statically typed languages such as C#, therefore programs written in dynamically typed languages are typically much slower than C# when executed on .NET.

Recent developments show that Just In Time (JIT) compilers can exploit runtime type information to generate quite efficient code. Unfortunately, writing a JIT compiler is far from being simple.

In this paper we report our positive experience with automatic generation of JIT compilers as supported by the PyPy infrastructure, by focusing on JIT compilation for .NET. Following this approach, we have in fact added a second layer of JIT compilation, by allowing dynamic generation of more efficient .NET bytecode, which in turn can be compiled to machine code by the .NET JIT compiler.

The main and novel contribution of this paper is to show that this two-layers JIT technique is effective, since programs written in dynamic languages can run on .NET as fast as (and in some cases even faster than) the equivalent C# programs.

The practicality of the approach is demonstrated by showing some promising experiments done with benchmarks written in a simple dynamic language.


πŸ“œ SIMILAR VOLUMES