Share on Facebook Tweet on Twitter Share on LinkedIn Share by email
Compiling Affine Recursion into Static Hardware

Dan Ghica, Alex Smith, and Satnam Singh


Abramsky’s Geometry of Interaction interpretation (GoI) is a logical-directed way to reconcile the process and functional views of computation, and can lead to a dataflow-style semantics of programming languages that is both operational (i.e. effective) and denotational (i.e. inductive on the language syntax). The key idea of Ghica’s Geometry of Synthesis (GoS) approach is that for certain programming languages (namely Reynolds’s affine Syntactic Control of Interference–SCI) the GoI processes-like interpretation of the language can be given a finitary representation, for both internal state and tokens. A physical realisation of this representation becomes a semantics-directed compiler for SCI into hardware. In this paper we examine the issue of compiling affine recursive programs into hardware using the GoS method. We give syntax and compilation techniques for unfolding recursive computation in space or in time and we illustrate it with simple benchmark-style examples. We examine the performance of the benchmarks against conventional CPU-based execution models.


Publication typeInproceedings
Published inThe 16th ACM SIGPLAN International Conference on Functional Programming
> Publications > Compiling Affine Recursion into Static Hardware