Creating a Just-In-Time Compiler by writing an interpreter
S403 | Thu 21 Jan 2:50 p.m.–3:10 p.m.
Presented by
-
Max recently graduated from UQ with a Computer Science Honours degree, but has been coding in his spare time since long before he started uni. Max's projects range from graphics libraries, to programming languages; from virtual filesystems to virtual disk drives containing filesystems... anything systems-programming, really. Beyond programming, Max has been the secretary of the UQ Cyber Squad for the past two years, and has been working at UQ as a casual academic teaching programming language internals and kernel programming for higher-year courses.
Max recently graduated from UQ with a Computer Science Honours degree, but has been coding in his spare time since long before he started uni. Max's projects range from graphics libraries, to programming languages; from virtual filesystems to virtual disk drives containing filesystems... anything systems-programming, really. Beyond programming, Max has been the secretary of the UQ Cyber Squad for the past two years, and has been working at UQ as a casual academic teaching programming language internals and kernel programming for higher-year courses.
Abstract
Truffle is a language implementation framework, written in Java, designed for writing AST-walking interpreters. When paired with the GraalVM JVM, however, it enables Java's native Just-In-Time compilation to compile guest language functions to native machine code, massively improving performance. This talk gives a brief overview of the concepts that make this possible: partial evaluation, loop unrolling, and node specialisation.
Truffle is a language implementation framework, written in Java, designed for writing AST-walking interpreters. When paired with the GraalVM JVM, however, it enables Java's native Just-In-Time compilation to compile guest language functions to native machine code, massively improving performance. This talk gives a brief overview of the concepts that make this possible: partial evaluation, loop unrolling, and node specialisation.