Language Virtual Machines Design and Implementation
Course:
Course types
Course
Information
Time Period
01/09/2023 – 31/08/2027Format
CourseInstruction Language
EnglishCourse Credits
ECTSManaging Organisation
About
The following topics will be covered:<br/>
• Core VM components:<br/>
– Interactions between: Parser, Interpreter, Multi-tier JIT compiler, Memory management, Foreign function interfaces, instrumentation, and <br/>
other runtime introspection services.<br/>
• Language Execution Models:<br/>
– Language interpretation and Dynamic JIT compilation.<br/>
– Concurrency control (locking, synchronization, barriers and safepoints). Threading, "green" threading, and asynchronous (event-loop) execution<br/>
• Automatic Memory Management:<br/>
– Runtime storage optimization, and dynamic memory layouts.<br/>
– Garbage collection algorithms and techniques (e.g., Reference counting, tracing collection, generational and concurrent GCs).<br/>
• Runtime optimization techniques:<br/>
– Basic runtime compilation techniques and dynamic optimization (e.g., polymorphic inline caches).<br/>
– Adaptive, feedback-driven techniques. Tracing compilation, meta-tracing.
Objectives
<ul><li>Students will know and will be able to describe the challenges of implementing a language Virtual Machine for managed languages such as Java, JavaScript or Python.</li><li>Students will acquire the ability to implement or modify new or existing language VMs using frameworks such as LLVM or GraalVM’s Truffle.</li><li>Students will understand algorithms, techniques and implementation details of core VM components such as the Garbage Collector, or the JIT-compiler.</li><li>Students will be able to analyze, understand and explain the advantages and disadvan- tages of runtime optimizations performed by a language VM.</li><li>Students will be able to relate and apply the gained knowledge to build solutions to performance problems in existing language runtimes such as the HotSpot Java Virtual Machine or the V8 JavaScript engine.</li></ul>
Method of Assessment
Group project<br/>
Study Guide
<a href="https://tue.osiris-student.nl/onderwijscatalogus/extern/cursus?cursuscode=2IMD20&collegejaar=2026&taal=en">https://tue.osiris-student.nl/onderwijscatalogus/extern/cursus?cursuscode=2IMD20&collegejaar=2026&taal=en</a>
