| A “linear logic” Quicksort |
| Full text |
Pdf
(541 KB)
|
| Source
|
ACM SIGPLAN Notices
archive
Volume 29 , Issue 2 (February 1994)
table of contents
Pages: 13 - 18
Year of Publication: 1994
ISSN:0362-1340
|
|
Author
|
|
Henry G. Baker
|
Nimble Computer Corporation. 16231 Meadow Ridge Way, Encino, CA
|
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 5, Downloads (12 Months): 27, Citation Count: 5
|
|
|
ABSTRACT
The linear style of programming inspired by linear logic has been proposed to reduce garbage collection and synchronization costs in serial and parallel systems. We programmed Quicksort for both lists and arrays in a "linear" fragment of Lisp to estimate the performance impact of linearity on a serial machine. Even though Quicksort is well-tuned for current non-linear architectures, we find that linearity extracts no real penalty. Our "linear" list Quicksort is as fast as any non-linear list Quicksort, and our "linear" vector Quicksort is only 3.5% slower than a non-linear vector Quicksort. The linear style is moderately pleasant, and the redundancy of linearity checking can aid in finding bugs.
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
|
|
| |
2
|
|
| |
3
|
|
 |
4
|
|
 |
5
|
|
| |
6
|
|
 |
7
|
Jawahar Chirimar , Carl A. Gunter , Jon G. Riecke, Proving memory management invariants for a language based on linear logic, Proceedings of the 1992 ACM conference on LISP and functional programming, p.139-150, June 22-24, 1992, San Francisco, California, United States
|
| |
8
|
Friedman, D.P., and Wise, D.S. "Aspects of applicative programming for parallel processing". IEEE Trans. Comput. C-27, 4 (Apr. 1978), 289-296.
|
| |
9
|
|
| |
10
|
|
| |
11
|
Hesselink, W.H. "Axioms and Models of Linear Logic". Formal Aspects of Comput. 2, 2 (Apt-June 1990), 139-166.
|
 |
12
|
|
| |
13
|
Knuth, D.E. The Art of Computer Programming, v. 3, Sorting and Searching. Addison-Wesley, Reading, MA 1973.
|
| |
14
|
|
| |
15
|
Martí-Oliet, N., and Meseguer, J. "From Petri nets to linear logic". Math. Struct. in Comp. Sci. 1, 1 (Mar. 1991).
|
 |
16
|
|
| |
17
|
Shalit, A. DylanTM: An object-oriented dynamic language. Apple Computer, Camb., MA, 1992.
|
 |
18
|
|
 |
19
|
|
 |
20
|
|
| |
21
|
|
|