Skip to main content
Gateway to Research (GTR)

This is a new service – your feedback (opens in new tab) will help us to improve it.

Back

Important

If you use the GtR API

GtR has a new application programming interface (API).

If you use the previous API, you will need to update your tools.

Find out how you can get started with the new API
Project

Partial Evaluation in Dependently Typed Languages

Study period:
1 October 2021 to 31 March 2025
Funder:
Engineering and Physical Sciences Research Council (EPSRC)
Project status:
Closed
Project category:
Studentship
Project reference:
2589772
Lead research organisation:
University of St Andrews

Contents

Overview

Abstract

This project aims to explore the optimisation of dependently typed programming languages using partial evaluation. In addition to answering open research questions, the project will provide a concrete implementation of a partial evaluator for the Idris2 compiler. The project furthers the research already undertaken by Brady[4], aiming to make dependently typed languages practical for writing everyday programs through the careful application of program optimisations. Partial evaluation (PE) is an optimisation technique which evaluates portions of the program at compile time to produce a more efficient executable[7]. It is a powerful generalisation of constant folding, which allows programmers to write idiomatic definitions without loss of performance. Many modern programming languages implement PE, with some inferring the areas of program to evaluate, and with others taking explicit guidance from the programmers (for example, C++11s constexpr keyword). The main drawback to partial evaluation is that it can be very expensive for large programs, significantly increasing compilation times.

Last updated: 2 December 2026