Implementing the evaluation transformer model of reduction on parallel machines
- 1 July 1991
- journal article
- Published by Cambridge University Press (CUP) in Journal of Functional Programming
- Vol. 1 (3) , 329-366
- https://doi.org/10.1017/s0956796800000137
Abstract
The evaluation transformer model of reduction generalizes lazy evaluation in two ways: it can start the evaluation of expressions before their first use, and it can evaluate expressions further than weak head normal form. Moreover, the amount of evaluation required of an argument to a function may depend on the amount of evaluation required of the function application. It is a suitable candidate model for implementing lazy functional languages on parallel machines.In this paper we explore the implementation of lazy functional languages on parallel machines, both shared and distributed memory architectures, using the evaluation transformer model of reduction. We will see that the same code can be produced for both styles of architecture, and the definition of the instruction set is virtually the same for each style. The essential difference is that a distributed memory architecture has one extra node type for non-local pointers, and instructions which involve the value of such nodes need their definitions extended to cover this new type of node.To make our presentation accessible, we base our description on a variant of the well-known G-machine, an abstract machine for executing lazy functional programs.Keywords
This publication has 20 references indexed in Scilit:
- Principles For the Design of a Distributed Memory Architecture for Parallel Graph ReductionThe Computer Journal, 1989
- A safe approach to parallel combinator reductionTheoretical Computer Science, 1988
- Code optimizations for lazy evaluationHigher-Order and Symbolic Computation, 1988
- Projections for strictness analysisPublished by Springer Nature ,1987
- An efficient garbage collection scheme for parallel computer architecturesLecture Notes in Computer Science, 1987
- Distributed garbage collection using reference countingPublished by Springer Nature ,1987
- An overview of MirandaACM SIGPLAN Notices, 1986
- A safe approach to parallel combinator reduction (extended abstract)Published by Springer Nature ,1986
- Serial combinators: "optimal" grains of parallelismPublished by Springer Nature ,1985
- Miranda: A non-strict functional language with polymorphic typesLecture Notes in Computer Science, 1985