Efficient Implementation of Evaluation Strategies via Token-Guided Graph Rewriting

02/19/2018
by   Koko Muroya, et al.
0

In implementing evaluation strategies of the lambda-calculus, both correctness and efficiency of implementation are valid concerns. While the notion of correctness is determined by the evaluation strategy, regarding efficiency there is a larger design space that can be explored, in particular the trade-off between space versus time efficiency. We contributed to the study of this trade-off by the introduction of an abstract machine for call-by-need, inspired by Girard's Geometry of Interaction, a machine combining token passing and graph rewriting. This work presents an extension of the machine, to additionally accommodate left-to-right and right-to-left call-by-value strategies. We show soundness and completeness of the extended machine with respect to each of the call-by-need and two call-by-value strategies. Analysing time cost of its execution classifies the machine as "efficient" in Accattoli's taxonomy of abstract machines.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
02/28/2018

The Dynamic Geometry of Interaction Machine: A Token-Guided Graph Rewriter

In implementing evaluation strategies of the lambda-calculus, both corre...
research
09/15/2020

An Abstract Machine for Strong Call by Value

We present an abstract machine that implements a full-reducing (a.k.a. s...
research
08/25/2019

Efficient Bidirectional Neural Machine Translation

The encoder-decoder based neural machine translation usually generates a...
research
04/28/2021

The Space of Interaction (long version)

The space complexity of functional programs is not well understood. In p...
research
07/13/2019

Crumbling Abstract Machines

Extending the lambda-calculus with a construct for sharing, such as let ...
research
04/20/2018

Normal forms for planar connected string diagrams

In the graphical calculus of planar string diagrams, equality is generat...
research
07/18/2022

Multi Types and Reasonable Space (Long Version)

Accattoli, Dal Lago, and Vanoni have recently proved that the space used...

Please sign up or login with your details

Forgot password? Click here to reset