ACM Home Page
Please provide us with feedback. Feedback
Adaptive functional programming
Full text PdfPdf (376 KB)
Source Annual Symposium on Principles of Programming Languages archive
Proceedings of the 29th ACM SIGPLAN-SIGACT symposium on Principles of programming languages table of contents
Portland, Oregon
Pages: 247 - 259  
Year of Publication: 2002
ISBN:1-58113-450-9
Also published in ...
Authors
Umut A. Acar  Carnegie Mellon University, Pittsburgh, PA
Guy E. Blelloch  Carnegie Mellon University, Pittsburgh, PA
Robert Harper  Carnegie Mellon University, Pittsburgh, PA
Sponsors
SIGPLAN: ACM Special Interest Group on Programming Languages
ACM: Association for Computing Machinery
SIGACT: ACM Special Interest Group on Algorithms and Computation Theory
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 10,   Downloads (12 Months): 42,   Citation Count: 15
Additional Information:

abstract   references   cited by   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/503272.503296
What is a DOI?

ABSTRACT

An adaptive computation maintains the relationship between its input and output as the input changes. Although various techniques for adaptive computing have been proposed, they remain limited in their scope of applicability. We propose a general mechanism for adaptive computing that enables one to make any purely-functional program adaptive.We show that the mechanism is practical by giving an efficient implementation as a small ML library. The library consists of three operations for making a program adaptive, plus two operations for making changes to the input and adapting the output to these changes. We give a general bound on the time it takes to adapt the output, and based on this, show that an adaptive Quicksort adapts its output in logarithmic time when its input is extended by one key.To show the safety and correctness of the mechanism we give a formal definition of AFL, a call-by-value functional language extended with adaptivity primitives. The modal type system of AFL enforces correct usage of the adaptivity mechanism, which can only be checked at run time in the ML library. Based on the AFL dynamic semantics, we formalize the change-propagation algorithm and prove its correctness.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
Umut A. Acar, Guy E. Blelloch, and Robert W. Harper. Adaptive functional programming. Technical Report CMU- CS- 01-161, Carnegie Mellon University, Computer Science Department, November 2001.
 
2
3
4
 
5
 
6
7
8
 
9
Roger Hoover. Incremental Graph Evaluation. PhD thesis, Department of Computer Science, Cornell University, May 1987.
10
 
11
 
12
13
 
14
William Pugh. Incremental computation via function caching. PhD thesis, Department of Computer Science, Cornell University, August 1987.
15
 
16
17
18

CITED BY  15
Collaborative Colleagues:
Umut A. Acar: colleagues
Guy E. Blelloch: colleagues
Robert Harper: colleagues