Work

Generics in Small Doses: Nanopass Compilation with Haskell

Year: 2009
Type: article
Abstract: Tock is a new compiler for concurrent imperative programming languages, designed using nanopass techniques. Nanopass compilers transform a program from source code to the target form through the application of a series of transformation passes. Because these passes are usually small and self-contained, the resulting compiler is highly modular, and easy to test and extend. Most existing nanopass compilers are implemented in dynamically-typed languages, but Tock is written in Haskell. We describe the generic programming interface that we have designed for building nanopass compilers in Haskell, and show how it can be implemented efficiently by combining techniques from the “Scrap Your Boilerplate” and Uniplate generic programming systems.
Language: English
Subfield: Software
Open Access status: green
OpenAlex ID: W2188150252
FWCI:
Cites: 6
Cited by: 1
Related to: 10