1986 · 85 citations · 4 references
ComputingComputer ScienceProgramming LanguagesSet TheoryTheory Of ComputationComputational ComplexityData-flow AnalysisFunctional ProgrammingRecursion TheoryType CheckingType SystemsExponential Time ComplexityHigher-order FunctionsHigher-order Type CheckingLambda CalculusLambda Calculus SemanticsProgram TransformationStrict EvaluationTyped Lambda Calculus
A function is said to be <i>strict</i> in one of its formal parameters if, in all calls to the function, either the corresponding actual parameter is evaluated, or the call does not terminate. Detecting which arguments a function will surely evaluate is a problem that arises often in program transformation and compiler optimization. We present a strategy that allows one to infer strictness properties of functions expressed in the lambda calculus. Our analysis improves on previous work in that (1) a set-theoretic characterization of strictness is used that permits treatment of <i>free variables,</i> which in turn permits a broader range of interpretations, and (2) the analysis provides an effective treatment of higher-order functions. We also prove a result due to Meyer [15]: the problem of first-order strictness analysis is complete in deterministic exponential time. However, because the size of most functions is small, the complexity seems to be tractable in practice.This research was supported in part by NSF Grant MCS-8302018, and a Faculty Development Award from IBM.
4
Patrick Cousot, Radhia Cousot · 1977 · 6.2K citations
Principal type-schemes for functional programs
Robin Milner · 1982 · 1.1K citations
A combinator-based compiler for a functional language
Paul Hudak, David Kranz · 1984 · 35 citations