Bootstrapping a self-hosted research virtual machine for JavaScript: an experience report

  • Authors:
  • Maxime Chevalier-Boisvert;Erick Lavoie;Marc Feeley;Bruno Dufour

  • Affiliations:
  • Université de Montréal, Montreal, PQ, Canada;Université de Montréal, Montreal, PQ, Canada;Université de Montréal, Montreal, PQ, Canada;Université de Montréal, Montreal, PQ, Canada

  • Venue:
  • Proceedings of the 7th symposium on Dynamic languages
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

JavaScript is one of the most widely used dynamic languages. The performance of existing JavaScript VMs, however, is lower than that of VMs for static languages. There is a need for a research VM to easily explore new implementation approaches. This paper presents the Tachyon JavaScript VM which was designed to be flexible and to allow experimenting with new approaches for the execution of JavaScript. The Tachyon VM is itself implemented in JavaScript and currently supports a subset of the full language that is sufficient to bootstrap itself. The paper discusses the architecture of the system and in particular the bootstrapping of a self-hosted VM. Preliminary performance results indicate that our VM, with few optimizations, can already execute code faster than a commercial JavaScript interpreter on some benchmarks.