One VM to rule them all

Thomas Würthinger, Christian Wimmer, Andreas Wöß, Lukas Stadler, Gilles Marie Duboscq, Doug Simon, Gregor Richards, Mario Wolczko

Research output: Chapter in Book/Report/Conference proceedingConference proceedingspeer-review

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.
Original languageEnglish
Title of host publicationProceeding Onward! '13 Proceedings of the 2013 ACM international symposium on New ideas, new paradigms, and reflections on programming & software
PublisherACM New York
Pages187-204
Number of pages18
ISBN (Print)9781450324724
DOIs
Publication statusPublished - Oct 2013

Fields of science

  • 102 Computer Sciences
  • 102009 Computer simulation
  • 102011 Formal languages
  • 102013 Human-computer interaction
  • 102029 Practical computer science
  • 102022 Software development
  • 102024 Usability research

JKU Focus areas

  • Computation in Informatics and Mathematics
  • Engineering and Natural Sciences (in general)

Cite this