Affiliation:
1. Palantir Solutions, Argentina
2. JKU Linz, Austria
Abstract
In dynamic object-oriented languages, low-level mechanisms such as just-in-time compilation, object allocation, garbage collection (GC) and method dispatch are often handled by virtual machines (VMs). VMs are typically implemented using static languages, allowing only few changes at run time. In such systems, the VM is not part of the language and interfaces to memory management or method dispatch are fixed, not allowing for arbitrary adaptation. Furthermore, the implementation can typically not be inspected or debugged with standard tools used to work on application code.
This paper reports on our experience building Bee, a dynamic Smalltalk runtime, written in Smalltalk. Bee is a Dynamic Metacircular Runtime (DMR) and seamlessly integrates the VM into the application and thereby overcomes many restrictions of classic VMs, for instance by allowing arbitrary code modifications of the VM at run time. Furthermore, the approach enables developers to use their standard tools for application code also for the VM, allowing them to inspect, debug, understand, and modify a DMR seamlessly.
We detail our experience of implementing GC, compilation, and optimizations in a DMR. We discuss examples where we found that DMRs can improve understanding of the system, provide tighter control of the software stack, and facilitate research. We also show that the Bee DMR matches and surpass the performance of a widely used Smalltalk VM.
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Graphics and Computer-Aided Design,Software
Reference36 articles.
1. The Jalapeño virtual machine
2. The Jikes Research Virtual Machine project: Building an open-source research community
3. Stephen M Blackburn Sergey I Salishev Mikhail Danilov Oleg A Mokhovikov Anton A Nashatyrev Peter A Novodvorsky Vadim I Bogdanov Xiao Feng Li and Dennis Ushakov. 2007. The Moxie JVM experience. cluster computing (2007). Stephen M Blackburn Sergey I Salishev Mikhail Danilov Oleg A Mokhovikov Anton A Nashatyrev Peter A Novodvorsky Vadim I Bogdanov Xiao Feng Li and Dennis Ushakov. 2007. The Moxie JVM experience. cluster computing (2007).
4. Building efficient and highly run-time adaptable virtual machines
5. Towards fully reflective environments