Thesis Details

Just-in-Time Compilation of Dependently-Typed Lambda Calculus

Master's Thesis Student: Zárybnický Jakub Academic Year: 2020/2021 Supervisor: Lengál Ondřej, Ing., Ph.D.
Czech title
Just-in-time kompilace závisle typovaného lambda kalkulu
Language
English
Abstract

A number of programming languages have managed to greatly improve their performance by replacing their custom runtime system with general platforms that use just-in-time optimizing compilers like GraalVM or RPython. This thesis evaluates whether such a transition would also benefit dependently-typed programming languages or theorem provers.

This thesis introduces the type-theoretic notion of dependent types and the algorithms involved in working with them, specifies a minimal dependently-typed language on the -calculus, and presents the implementation two interpreters for this language: a simple interpreter written in Kotlin, and a second interpreter, also written in Kotlin, that uses the Truffle language implementation framework on the GraalVM platform, which is a partial evaluation-based just-in-time compiler based on the Java Virtual Machine. The performance of these two interpreters is then compared on a number of normalization and elaboration tasks.The results are strongly negative, however, the influence of JIT compilation is not noticeable given the large overhead of the JVM platform. This thesis concludes with a number of alternative projects that would use the capabilities of Truffle better.

Keywords

Truffle, Java Virtual Machine, just-in-time compilation, compiler construction, dependent types

Department
Degree Programme
Information Technology and Artificial Intelligence, Specialization Intelligent Systems
Files
Status
defended, grade B
Date
22 June 2021
Reviewer
Committee
Zbořil František V., doc. Ing., CSc. (DITS FIT BUT), předseda
Hradiš Michal, Ing., Ph.D. (DCGM FIT BUT), člen
Janoušek Vladimír, doc. Ing., Ph.D. (DITS FIT BUT), člen
Peringer Petr, Dr. Ing. (DITS FIT BUT), člen
Smrčka Aleš, Ing., Ph.D. (DITS FIT BUT), člen
Citation
ZÁRYBNICKÝ, Jakub. Just-in-Time Compilation of Dependently-Typed Lambda Calculus. Brno, 2021. Master's Thesis. Brno University of Technology, Faculty of Information Technology. 2021-06-22. Supervised by Lengál Ondřej. Available from: https://www.fit.vut.cz/study/thesis/24198/
BibTeX
@mastersthesis{FITMT24198,
    author = "Jakub Z\'{a}rybnick\'{y}",
    type = "Master's thesis",
    title = "Just-in-Time Compilation of Dependently-Typed Lambda Calculus",
    school = "Brno University of Technology, Faculty of Information Technology",
    year = 2021,
    location = "Brno, CZ",
    language = "english",
    url = "https://www.fit.vut.cz/study/thesis/24198/"
}
Back to top