encyclopegia.org

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

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1000161794 · 0.5 · snapshot enwiki-001000161794

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.