We consider programming language aspects of algorithms that operate on data too large to fit into memory. In previous work we have introduced Intml, a functional programming language with primitives that support the implementation of such algorithms. We have shown that Intml can express all logspace functions but have left open the question how easy it is in practice to program typical logspace algorithms in Intml. In this paper we develop algorithms for Intml type inference. We show that with type inference one can handle programs that could not be reasonably manipulated by hand. We do so by implementing in intml a typical logspace algorithm, a test for acyclicity of undirected graphs. Thus we show that with type inference Intml can express typical algorithmic patterns of logspace easily and in a natural way.
Titolo: | Type Inference for Sublinear Space Functional Programming |
Autore/i: | DAL LAGO, UGO; U. Schoepp |
Autore/i Unibo: | |
Anno: | 2010 |
Titolo del libro: | Lecture Notes in Computer Science |
Pagina iniziale: | 376 |
Pagina finale: | 391 |
Abstract: | We consider programming language aspects of algorithms that operate on data too large to fit into memory. In previous work we have introduced Intml, a functional programming language with primitives that support the implementation of such algorithms. We have shown that Intml can express all logspace functions but have left open the question how easy it is in practice to program typical logspace algorithms in Intml. In this paper we develop algorithms for Intml type inference. We show that with type inference one can handle programs that could not be reasonably manipulated by hand. We do so by implementing in intml a typical logspace algorithm, a test for acyclicity of undirected graphs. Thus we show that with type inference Intml can express typical algorithmic patterns of logspace easily and in a natural way. |
Data prodotto definitivo in UGOV: | 23-feb-2011 |
Appare nelle tipologie: | 4.01 Contributo in Atti di convegno |