[Back]


Talks and Poster Presentations (with Proceedings-Entry):

G. Barany:
"pylibjit: A JIT Compiler Library for Python";
Talk: 7. Arbeitstagung Programmiersprachen (ATPS 2014), Kiel, Deutschland; 2014-02-26; in: "Software Engineering Workshops 2014", CEUR Workshop Proceedings, Vol-1129 (2014), 213 - 224.



English abstract:
We present pylibjit, a Python library for generating machine code at load time or run time. The library can be used for dynamic code generation, although it is mainly aimed at optimizing compilation of existing Python function definitions.

Python functions can be compiled by simply annotating them with a decorator specifying data types. The pylibjit compiler takes advantage of this type information to perform unboxing, omit dynamic type checks, and avoid unnecessary reference counting operations.

We discuss pylibjit's compilation schemes based on an abstract syntax tree or Python's internal bytecode representation, and present benchmark results. For simple numerical programs, we achieve speedups of up to 50x over standard interpreted Python.

Keywords:
Python, interpreters, compilers, programming languages


Electronic version of the publication:
http://publik.tuwien.ac.at/files/PubDat_228436.pdf


Created from the Publication Database of the Vienna University of Technology.