Computation by interaction for space-bounded functional programming - INRIA - Institut National de Recherche en Informatique et en Automatique Accéder directement au contenu
Article Dans Une Revue Information and Computation Année : 2016

Computation by interaction for space-bounded functional programming

Résumé

We consider the problem of supporting sublinear space programming in a functional programming language. Writing programs with sublinear space usage often requires one to use special implementation techniques for otherwise easy tasks, e.g. one cannot compose functions directly for lack of space for the intermediate result, but must instead compute and recompute small parts of the intermediate result on demand. In this paper, we study how the implementation of such techniques can be supported by functional programming languages. Our approach is based on modelling computation by interaction using the Int construction of Joyal, Street & Verity. We derive functional programming constructs from the structure obtained by applying the Int construction to a term model of a given functional language. The thus derived core functional language intml is formulated by means of a type system inspired by Baillot & Terui's Dual Light Affine Logic. It can be understood as a programming language simplification of Stratified Bounded Affine Logic. We show that it captures the classes flogspace and nflogspace of the functions computable in deterministic logarithmic space and in non-deterministic logarithmic space, respectively. We illustrate the expressiveness of intml by showing how typical graph algorithms, such a test for acyclicity in undirected graphs, can be represented in it.
Fichier principal
Vignette du fichier
intml2_singlespaced.pdf (439.08 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01337724 , version 1 (27-06-2016)

Identifiants

Citer

Ugo Dal Lago, Ulrich Schöpp. Computation by interaction for space-bounded functional programming. Information and Computation, 2016, 248, ⟨10.1016/j.ic.2015.04.006⟩. ⟨hal-01337724⟩
183 Consultations
119 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More