Strictness analysis
In computer science, strictness analysis refers to any algorithm used to prove that a function in a non-strict functional programming language is strict in one or more of its arguments.[src] This information is useful to compilers because strict functions can be compiled more efficiently.[src] Thus, if a function is proven to be strict (using strictness analysis) at compile time, it can be compiled to use a more efficient calling convention without changing the meaning of the enclosing program.[src] Note that a function f is said to diverge if it returns \{\bot\} : operationally, that would mean that f either causes abnormal termination of the enclosing program (e.g., failure with an error message) or that it loops infinitely.[src] The notion of "divergence" is significant because a strict function is one that always diverges when given an argument that diverges, whereas a lazy (or non-strict) function is one that may or may not diverge when given such an argument.[src] Strictness analysis attempts to determine the "divergence properties" of functions, which thus identifies some functions that are strict.[src]
In computer science, strictness analysis refers to any algorithm used to prove that a function in a non-strict functional programming language is strict in one or more of its arguments.[src] This information is useful to compilers because strict functions can be compiled more efficiently.[src] Thus, if a function is proven to be strict (using strictness analysis) at compile time, it can be compiled to use a more efficient calling convention without changing the meaning of the enclosing program.[src] Note that a function f is said to diverge if it returns \{\bot\} : operationally, that would mean that f either causes abnormal termination of the enclosing program (e.g., failure with an error message) or that it loops infinitely.[src] The notion of "divergence" is significant because a strict function is one that always diverges when given an argument that diverges, whereas a lazy (or non-strict) function is one that may or may not diverge when given such an argument.[src] Strictness analysis attempts to determine the "divergence properties" of functions, which thus identifies some functions that are strict.[src] Projection-based strictness analysis, introduced by Philip Wadler and R.J.M.[src] Hughes, uses strictness projections to model more subtle forms of strictness, such as head-strictness in a list argument.[src] (By contrast, GHC's demand analysis can only model strictness within product types, i.e., datatypes that only have a single constructor.) A function f is considered head-strict if f = f \circ \pi , where \pi is the projection that head-evaluates its list argument.[src] There was a large body of research on strictness analysis in the 1980s.[src]
16 sentences · 16 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Strictness analysis." encyclopegia.org, 2021, https://encyclopegia.org/wiki/strictness-analysis. Accessed 28 November 2026.
Chicago
"Strictness analysis." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/strictness-analysis.
APA
encyclopegia.org. (2021). Strictness analysis. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/strictness-analysis
Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON