A positive supercompiler
Open accessThe DOI matches its Crossref record; 20 of the 20 references it cites were found in a registry or an index.
Abstract
We introduce a positive supercompiler, a version of Turchin's supercompiler maintaining only positive information during transformation, and using folding without generalization. The positive supercompiler can also be regarded as a variant of Wadler's deforestation maintaining an increased amount of information. We compare our algorithm to deforestation and, in less detail, to partial evaluation, Turchin's supercompiler, Generalized Partial Computation (GPC), and partial deduction by classifying these transformers by the amount of information they maintain during transformation. This factor is significant, as a differentiating example reveals: positive supercompilation, Turchin's supercompiler, GPC and partial deduction can specialize a general pattern matcher with respect to a fixed pattern to obtain an efficient matcher very similar to the Knuth–Morris–Pratt algorithm. Deforestation and traditional partial evaluation achieve this effect only after a non-trivial hand rewriting of the general matcher.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Lecture Notes in Computer Science 1205
(1999) · Industrial Robot: An International Journal · doi:10.1108/ir.1999.04926fae.001 · Cited by 38,662
Fast Pattern Matching in Strings
Knuth, D. E., Morris, Jr., & Pratt, V. R. (1977) · SIAM Journal on Computing · doi:10.1137/0206024 · Cited by 2,936
Partial evaluation and automatic program generation
Jones, N. D., Gomard, C. K., & Sestoft, P. (1993) · Research at the University of Copenhagen (University of Copenhagen) · Cited by 1,581
Self-citationA Transformation System for Developing Recursive Programs
Burstall, R. M., & Darlington, J. (1977) · Journal of the ACM · doi:10.1145/321992.321996 · Cited by 1,300 · cited 1×
“We are concerned with certain automatic instances of Burstall and Darlington' (1977) framework.”
MethodImperative functional programming
Peyton Jones, S. L., & Wadler, P. (1993) · Proceedings of the 20th ACM SIGPLAN-SIGACT symposium on Principles of programming languages - POPL '93 · doi:10.1145/158511.158524 · Cited by 1,234
The implementation of functional programming languages
(1987) · Microprocessors and Microsystems · doi:10.1016/0141-9331(87)90510-2 · Cited by 1,076
Deforestation: transforming programs to eliminate trees
Wadler, P. (1990) · Theoretical Computer Science · doi:10.1016/0304-3975(90)90147-a · Cited by 699 · cited 2×
“…rules (5, 8) of driving by (5d, 8d) - see figure 10 The resulting set of rules is identical to the rules for deforestation as defined in Wadler (1990), except that 3> also deals with the equality construct and that 3> is formulated using evaluation contexts as in Ferguson and Wadler (1988).”
MethodIntroduction to functional programming
Bird, R. S. (1988) · Cited by 693
Partial evaluation in logic programming
Lloyd, J. W., & Shepherdson, J. C. (1991) · The Journal of Logic Programming · doi:10.1016/0743-1066(91)90027-m · Cited by 381 · cited 2×
“…as supercompilation, but requires the use of a theorem prover The above methodologies have been developed for functional languages Similar methodologies are also being studied for other language paradigms, e.g partial deduction in logic programming (Lloyd and Shepherdson, 1991; Komorowski, 1992).”
BackgroundMethodA natural semantics for lazy evaluation
Launchbury, J. (1993) · Proceedings of the 20th ACM SIGPLAN-SIGACT symposium on Principles of programming languages - POPL '93 · doi:10.1145/158511.158618 · Cited by 371 · cited 1×
“The intended operational semantics is normal-order graph reduction to weak head normal form in the sense of Bird and Wadler (1988) This could be formalized by techniques similar to Launchbury (1993) or Ariola et al. (1995), but we shall not have any need to do so.”
MethodThe concept of a supercompiler
Turchin, V. F. (1986) · ACM Transactions on Programming Languages and Systems · doi:10.1145/5956.5957 · Cited by 363 · cited 5×
“Supercompilation is a technique of function transformation developed originally by Turchin (1986) for a functional language Refal The technique uses DRIVING (the forced unfolding guided by functional configurations) to construct a potentially infinite tree of states (configurations) and transitions.”
BackgroundMethodInfluentialA call-by-need lambda calculus
Ariola, Z. M., Maraist, J., Odersky, M., Felleisen, M., & Wadler, P. (1995) · Proceedings of the 22nd ACM SIGPLAN-SIGACT symposium on Principles of programming languages - POPL '95 · doi:10.1145/199448.199507 · Cited by 246
Partial evaluation of pattern matching in strings
Consel, C., & Olivier Danvy, A. (1989) · Information Processing Letters · doi:10.1016/0020-0190(89)90113-0 · Cited by 92 · cited 4×
“This explains the result found in Consel and Danvy (1989), that partial evaluation does not pass the KMP test.”
BackgroundResultInfluentialSafe fusion of functional expressions
Chin, W.-N. (1992) · ACM Conference on LISP and Functional Programming (LFP) · doi:10.1145/141471.141494 · Cited by 70 · cited 2×
“…of any composition of functions with treeless definitions is guaranteed to terminate This fact also forms the core of the techniques of Chin (1992) and Hamilton (1993); different techniques are due to Serensen (1994b) and Seidl (1996) The problem is more complex for positive…”
BackgroundMethodA supercompiler system based on the language REFAL
Turchin, V. F. (1979) · ACM SIGPLAN Notices · doi:10.1145/954063.954069 · Cited by 70 · cited 1×
“…well beyond this original, intended scope by applying it to arbitrary definitions - see sections 5.5 and 6.2 Supercompilation, conceived by Turchin (1979, 1980, 1986) in the early 1970's Russia for the language Refal, achieves the effects of both deforestation and partial evaluation, as…”
BackgroundInfluentialExperiments with a supercompiler
Turchin, V. F., Nirenberg, R. M., & Turchin, D. (1982) · ACM Conference on LISP and Functional Programming (LFP) · doi:10.1145/800068.802134 · Cited by 47 · cited 1×
“In Wadler's deforestation (1990) this is avoided by considering only linear terms.”
BackgroundProietti, M., & Pettorossi, A. (1991) · Lecture notes in computer science · doi:10.1007/3-540-54444-5_111 · Cited by 36 · cited 1×
“Other transformers for logic programs can do this optimization (Proietti and Pettorossi, 1991).”
BackgroundApplication of metasystem transition to function inversion and transformation
Glueck, R., & Turchin, V. F. (1990) · International Symposium on Symbolic and Algebraic Computation · doi:10.1145/96877.96953 · Cited by 32
Total correctness by local improvement in program transformation
Sands, D. (1995) · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · doi:10.1145/199448.199485 · Cited by 31 · cited 1×
“A general technique due to Sands (1995a) can be used to prove this for deforestation as well as positive supercompilation - see Sands (1995b).”
MethodCompile-Time Optimisation of Store Usage in Lazy Functional Programs
Hamilton, G. W. (1993) · Dublin City University Open Access Institutional Repository (Dublin City University) · Cited by 14
Metadata
- Authors
- Sørensen, M. H., Glück, R., & Jones, N. D.
- Venue
- Journal of Functional Programming
- Publisher
- Cambridge University Press (CUP)
- Published
- 1996-11
- Volume
- 6
- Issue
- 6
- Pages
- 811-838
- ISSN
- 0956-7968 (ISSN-L)
- 1469-7653
- OpenAlex
- W2125977928
- Cited by
- 183
- References
- 20
- FWCI
- 11.53
- Type
- journal article
- Language
- en
- Open access
- bronze
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.