Journal of Functional Programming · 2003 · 154 citations · 40 references
ComputingComputer ScienceCompilersData StructuresProgramming LanguagesData-flow AnalysisShape RepresentationType CheckingArray TypesLoop OptimizationRuntime PerformanceShape
This paper presents a novel approach for integrating arrays with access time ${\cal O}$(1) into functional languages. It introduces n-dimensional arrays combined with a type system that supports hierarchies of array types with varying shape information as well as a shape-invariant form of array comprehension called WITH -loop. Together, these constructs allow for a programming style similar to that of array programming languages such as A PL . We use Single Assignment C (S A C), a functional C-variant aimed at numerical applications that is based on the proposed design, to demonstrate that programs written in that style can be compiled to code whose runtime performance is competitive with that of hand-optimized Fortran programs. However, essential prerequisites for such performance figures are a shape inference system integrated in the type system as well as several high-level optimizations. Most notably of these is With Loop Folding , an optimization technique for eliminating intermediate arrays.
40
A data locality optimizing algorithm
Michael E. Wolf, Monica S. Lam · 1991 · 1.3K citations · Full text
Call-by-name, call-by-value and the λ-calculus
Gordon Plotkin · Theoretical Computer Science · 1975 · 1.2K citations
The implementation of functional programming languages
Microprocessors and Microsystems · 1987 · 1.1K citations
How to make ad-hoc polymorphism less ad hoc
Philip Wadler, Stephen Blott · 1989 · 770 citations · Full text