Partial evaluation, based on the first Futamura projection, allows compiling language interpreters with given user programs to efficient target programs. GraalVM is an example system that implements this mechanism. It combines partial evaluation with profiling information and dynamic compilation, to transform interpreters into high-performance machine code at run time. However, partial evaluation is compile-time intensive, as it requires the abstract interpretation of interpreter implementations. Thus, optimizing partial evaluation is still subject to research to this day. We present an approach to speed up partial evaluation, by generating source code ahead of time, which performs partial evaluation specific to interpreter implementations. Generated code, when executed for a given user program at run time, directly emits partially evaluated interpreter instructions for language constructs it knows and sees in the program. This yields the target program faster than performing the first Futamura projection. The generated source code behaves similarly to a specialized partial evaluator deduced by performing the second Futamura projection, although no self-applying partial evaluator is involved during code generation.
Researcher and PhD student at the Johannes Kepler University in Linz, Austria.
This program is tentative and subject to change.
Wed 23 Oct
|18:00 - 18:11|
Beatriz SouzaFederal University of Campina Grande
|18:11 - 18:22|
|18:22 - 18:33|
Dominik AumayrJohannes Kepler University Linz, Austria
|18:33 - 18:45|
|18:45 - 18:56|
Muna AltherwiSouthampton University
|18:56 - 19:07|
Florian LatifiJohannes Kepler University LinzDOI Pre-print
|19:07 - 19:18|
|19:18 - 19:30|
Maarten P. SijmDelft University of Technology