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.

Type Inference for Sublinear Space Functional Programming / U. Dal Lago; U. Schoepp. - STAMPA. - 6461:(2010), pp. 376-391. (Intervento presentato al convegno Programming Languages and Systems - 8th Asian Symposium, APLAS 2010. tenutosi a Shanghai, China nel November 28 - December 1, 2010.).

Type Inference for Sublinear Space Functional Programming

DAL LAGO, UGO;
2010

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.
2010
Lecture Notes in Computer Science
376
391
Type Inference for Sublinear Space Functional Programming / U. Dal Lago; U. Schoepp. - STAMPA. - 6461:(2010), pp. 376-391. (Intervento presentato al convegno Programming Languages and Systems - 8th Asian Symposium, APLAS 2010. tenutosi a Shanghai, China nel November 28 - December 1, 2010.).
U. Dal Lago; U. Schoepp
File in questo prodotto:
Eventuali allegati, non sono esposti

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11585/99562
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 10
  • ???jsp.display-item.citation.isi??? 5
social impact