Comparing Meta-Compilation Approaches for Self-Optimizing Interpreters
Type de document :
Communication dans un congrès avec actes
DOI :
Titre :
Tracing vs. Partial Evaluation
Comparing Meta-Compilation Approaches for Self-Optimizing Interpreters
Comparing Meta-Compilation Approaches for Self-Optimizing Interpreters
Auteur(s) :
Marr, Stefan [Auteur]
Analyses and Languages Constructs for Object-Oriented Application Evolution [RMOD]
Ducasse, Stephane [Auteur]
Analyses and Languages Constructs for Object-Oriented Application Evolution [RMOD]
Analyses and Languages Constructs for Object-Oriented Application Evolution [RMOD]
Ducasse, Stephane [Auteur]
Analyses and Languages Constructs for Object-Oriented Application Evolution [RMOD]
Titre de la manifestation scientifique :
Proceedings of ACM International Conference on Object Oriented Programming Systems Languages & Applications (OOPSLA '15)
Ville :
Pittsburgh, PA
Pays :
Etats-Unis d'Amérique
Date de début de la manifestation scientifique :
2015-10-26
Mot(s)-clé(s) en anglais :
self-optimizing interpreters
language implementation
case study
comparison
partial evaluation
meta-tracing
just-in-time compilation
language implementation
case study
comparison
partial evaluation
meta-tracing
just-in-time compilation
Discipline(s) HAL :
Informatique [cs]/Langage de programmation [cs.PL]
Résumé en anglais : [en]
Tracing and partial evaluation have been proposed as meta-compilation techniques for interpreters to make just-in-time compilation language-independent. They promise that programs executing on simple interpreters can reach ...
Lire la suite >Tracing and partial evaluation have been proposed as meta-compilation techniques for interpreters to make just-in-time compilation language-independent. They promise that programs executing on simple interpreters can reach performance of the same order of magnitude as if they would be executed on state-of-the-art virtual machines with highly optimizing just-in-time compilers built for a specific language. Tracing and partial evaluation approach this meta-compilation from two ends of a spectrum, resulting in different sets of tradeoffs.This study investigates both approaches in the context of self-optimizing interpreters, a technique for building fast abstract-syntax-tree interpreters. Based on RPython for tracing and Truffle for partial evaluation, we assess the two approaches by comparing the impact of various optimizations on the performance of an interpreter for SOM, an object-oriented dynamically-typed language. The goal is to determine whether either approach yields clear performance or engineering benefits. We find that tracing and partial evaluation both reach roughly the same level of performance. SOM based on meta-tracing is on average 3x slower than Java, while SOM based on partial evaluation is on average 2.3x slower than Java. With respect to the engineering, tracing has however significant benefits, because it requires language implementers to apply fewer optimizations to reach the same level of performance.Lire moins >
Lire la suite >Tracing and partial evaluation have been proposed as meta-compilation techniques for interpreters to make just-in-time compilation language-independent. They promise that programs executing on simple interpreters can reach performance of the same order of magnitude as if they would be executed on state-of-the-art virtual machines with highly optimizing just-in-time compilers built for a specific language. Tracing and partial evaluation approach this meta-compilation from two ends of a spectrum, resulting in different sets of tradeoffs.This study investigates both approaches in the context of self-optimizing interpreters, a technique for building fast abstract-syntax-tree interpreters. Based on RPython for tracing and Truffle for partial evaluation, we assess the two approaches by comparing the impact of various optimizations on the performance of an interpreter for SOM, an object-oriented dynamically-typed language. The goal is to determine whether either approach yields clear performance or engineering benefits. We find that tracing and partial evaluation both reach roughly the same level of performance. SOM based on meta-tracing is on average 3x slower than Java, while SOM based on partial evaluation is on average 2.3x slower than Java. With respect to the engineering, tracing has however significant benefits, because it requires language implementers to apply fewer optimizations to reach the same level of performance.Lire moins >
Langue :
Anglais
Comité de lecture :
Oui
Audience :
Internationale
Vulgarisation :
Non
Collections :
Source :
Fichiers
- https://hal.inria.fr/hal-01205345/document
- Accès libre
- Accéder au document
- https://kar.kent.ac.uk/63825/1/oopsla15-marr-ducasse-meta-tracing-vs-partial-evaluation.pdf
- Accès libre
- Accéder au document
- https://hal.inria.fr/hal-01205345/document
- Accès libre
- Accéder au document
- https://hal.inria.fr/hal-01205345/document
- Accès libre
- Accéder au document
- document
- Accès libre
- Accéder au document
- Marr15b-Oopsla15-TracingVSPartial.pdf
- Accès libre
- Accéder au document
- oopsla15-marr-ducasse-meta-tracing-vs-partial-evaluation.pdf
- Accès libre
- Accéder au document