Building high-performance virtual machines is a complex and expensive undertaking; many popular languages still have low-performance implementations. We describe a new approach to virtual machine (VM) construction that amortizes much of the effort in initial construction by allowing new languages to be implemented with modest additional effort. The approach relies on abstract syntax tree (AST) interpretation where a node can rewrite itself to a more specialized or more general node, together with an optimizing compiler that exploits the structure of the interpreter. The compiler uses speculative assumptions and deoptimization in order to produce efficient machine code. Our initial experience suggests that high performance is attainable while preserving a modular and layered architecture, and that new high-performance language implementations can be obtained by writing little more than a stylized interpreter.
%0 Conference Paper
%1 Wurthinger:2013:OVR
%A Würthinger, Thomas
%A Wimmer, Christian
%A Wöß, Andreas
%A Stadler, Lukas
%A Duboscq, Gilles
%A Humer, Christian
%A Richards, Gregor
%A Simon, Doug
%A Wolczko, Mario
%B Proceedings of the 2013 ACM International Symposium on New Ideas, New Paradigms, and Reflections on Programming & Software
%D 2013
%I ACM
%K Graal Implementation Language Truffle VM VirtualMachine
%P 187--204
%R 10.1145/2509578.2509581
%T One VM to Rule Them All
%X Building high-performance virtual machines is a complex and expensive undertaking; many popular languages still have low-performance implementations. We describe a new approach to virtual machine (VM) construction that amortizes much of the effort in initial construction by allowing new languages to be implemented with modest additional effort. The approach relies on abstract syntax tree (AST) interpretation where a node can rewrite itself to a more specialized or more general node, together with an optimizing compiler that exploits the structure of the interpreter. The compiler uses speculative assumptions and deoptimization in order to produce efficient machine code. Our initial experience suggests that high performance is attainable while preserving a modular and layered architecture, and that new high-performance language implementations can be obtained by writing little more than a stylized interpreter.
%@ 978-1-4503-2472-4
@inproceedings{Wurthinger:2013:OVR,
abstract = {Building high-performance virtual machines is a complex and expensive undertaking; many popular languages still have low-performance implementations. We describe a new approach to virtual machine (VM) construction that amortizes much of the effort in initial construction by allowing new languages to be implemented with modest additional effort. The approach relies on abstract syntax tree (AST) interpretation where a node can rewrite itself to a more specialized or more general node, together with an optimizing compiler that exploits the structure of the interpreter. The compiler uses speculative assumptions and deoptimization in order to produce efficient machine code. Our initial experience suggests that high performance is attainable while preserving a modular and layered architecture, and that new high-performance language implementations can be obtained by writing little more than a stylized interpreter.},
acmid = {2509581},
added-at = {2014-01-21T10:06:31.000+0100},
author = {W\"{u}rthinger, Thomas and Wimmer, Christian and W\"{o}\ss, Andreas and Stadler, Lukas and Duboscq, Gilles and Humer, Christian and Richards, Gregor and Simon, Doug and Wolczko, Mario},
biburl = {https://www.bibsonomy.org/bibtex/2b29e79b951e3cf138c348e4499ba5695/gron},
booktitle = {Proceedings of the 2013 ACM International Symposium on New Ideas, New Paradigms, and Reflections on Programming \& Software},
description = {One VM to rule them all},
doi = {10.1145/2509578.2509581},
interhash = {9b0794c882d392a58ec3fd6c4dc3aaf5},
intrahash = {b29e79b951e3cf138c348e4499ba5695},
isbn = {978-1-4503-2472-4},
keywords = {Graal Implementation Language Truffle VM VirtualMachine},
location = {Indianapolis, Indiana, USA},
numpages = {18},
pages = {187--204},
publisher = {ACM},
series = {Onward!'13},
timestamp = {2015-09-07T10:49:07.000+0200},
title = {{One VM to Rule Them All}},
year = 2013
}