encyclopegia.org

Clean (programming language)

Clean is a general-purpose purely functional programming language. Originally called the Concurrent Clean System or the Clean System, it has been developed by a group of researchers from the Radboud University in Nijmegen since 1987. Although development of the language has slowed, some researchers are still working in the language. In 2018, a spin-off company was founded that uses Clean.

Clean is a general-purpose purely functional programming language. Originally called the Concurrent Clean System or the Clean System, it has been developed by a group of researchers from the Radboud University in Nijmegen since 1987. Although development of the language has slowed, some researchers are still working in the language. In 2018, a spin-off company was founded that uses Clean. ==Features== Clean shares many properties and syntax with a younger sibling language, Haskell: referential transparency, list comprehension, guards, garbage collection, higher order functions, currying, and lazy evaluation. However, Clean deals with mutable state and input/output (I/O) through a uniqueness type system, in contrast to Haskell's use of monads. The compiler takes advantage of the uniqueness type system to generate more efficient code, because it knows that at any point during the execution of the program, only one reference can exist to a value with a unique type. Therefore, a unique value can be changed in place. An integrated development environment (IDE) for Microsoft Windows is included in the Clean distribution. An extension for Visual Studio Code also exists that integrates with Eastwood, the language server for Clean. ==Examples== Hello world: Start = "Hello, world!" Factorial: Fibonacci sequence: Infix operator: (^) infixr 8 :: Int Int -> Int (^) x 0 = 1 (^) x n = x * x ^ (n-1) The type declaration states that the function is a right associative infix operator with priority 8: this states that x*x^(n-1) is equivalent to x*(x^(n-1)) as opposed to (x*x)^(n-1) . This operator is pre-defined in StdEnv, the Clean standard library. ==How Clean works== Computing is based on graph rewriting and reduction. Constants such as numbers are graphs and functions are graph rewriting formulas. This, combined with compiling to native code, makes Clean programs which use high abstraction run relatively fast according to The Computer Language Benchmarks Game. A 2008 benchmark showed that Clean native code performs similarly to the Glasgow Haskell Compiler (GHC), depending on the benchmark. ==Compiling== Compilation of Clean to machine code is performed as follows: Source files (.icl) and definition files (.dcl) are translated into Core Clean, a basic variant of Clean, by the compiler frontend written in Clean. Core clean is converted into Clean's platform-independent intermediate language (.abc), by the compiler backend written in Clean and C. Intermediate ABC code is converted to object code (.o) by the code generator written in C. Object code is linked with other files in the module and the runtime system and converted into a normal executable using the system linker (when available) or a dedicated linker written in Clean on Windows. Earlier versions of the Clean compiler were written completely in C, thus avoiding bootstrapping issues. ==Platforms== Clean is available for Microsoft Windows (IA-32 and X86-64), macOS (X86-64), and Linux (IA-32, X86-64, and AArch64). Some libraries are not available on all platforms, like ObjectIO which is only available on Windows. Also the feature to write dynamics to files is only available on Windows. The availability of Clean per platform varies with each version: ==Comparison to Haskell== The syntax of Clean is very similar to that of Haskell, with some notable differences. In general, Haskell has introduced more syntactic sugar than Clean: ==References== ==External links== Clean Wiki clean-lang.org: public registry with Clean packages cloogle.org: a search engine to search in Clean packages

References

  1. base-compiler · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "base-compiler." 2026-11-19. https://clean-lang.org/pkg/base-compiler/. Accessed 24 November 2026.

    Chicago "base-compiler." 2026-11-19. https://clean-lang.org/pkg/base-compiler/.

    APA encyclopegia.org. (2026). base-compiler. Retrieved November 24, 2026, from https://clean-lang.org/pkg/base-compiler/

  2. Home · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Home." 2026-11-19. https://www.top-software.nl/. Accessed 24 November 2026.

    Chicago "Home." 2026-11-19. https://www.top-software.nl/.

    APA encyclopegia.org. (2026). Home. Retrieved November 24, 2026, from https://www.top-software.nl/

  3. Clean for Visual Studio Code · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Clean for Visual Studio Code." 2026-11-19. https://marketplace.visualstudio.com/items?itemName=TOPSoftware.clean-vs-code. Accessed 24 November 2026.

    Chicago "Clean for Visual Studio Code." 2026-11-19. https://marketplace.visualstudio.com/items?itemName=TOPSoftware.clean-vs-code.

    APA encyclopegia.org. (2026). Clean for Visual Studio Code. Retrieved November 24, 2026, from https://marketplace.visualstudio.com/items?itemName=TOPSoftware.clean-vs-code

  4. From Interpretation to Compilation · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "From Interpretation to Compilation." Jansen, Jan Martin; Koopman, Pieter; Plasmeijer, Rinus (2008). 2026-11-19. https://en.wikipedia.org/wiki/FTP. Accessed 24 November 2026.

    Chicago "From Interpretation to Compilation." Jansen, Jan Martin; Koopman, Pieter; Plasmeijer, Rinus (2008). 2026-11-19. https://en.wikipedia.org/wiki/FTP.

    APA Jansen, Jan Martin; Koopman, Pieter; Plasmeijer, Rinus (2008). (2026). From Interpretation to Compilation. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/FTP

  5. Koopman, Pieter (10 December 1990). Functional Programs as Executable Specifications (PhD). Katholieke Universiteit Nijmegen. p. 35. ISBN 90-9003689-X . Wikipedia revision 1375189704, retrieved 2026-11-20 · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Koopman, Pieter (10 December 1990). Functional Programs as Executable Specifications (PhD). Katholieke Universiteit Nijmegen. p. 35. ISBN 90-9003689-X . Wikipedia revision 1375189704, retrieved 2026-11-20." Koopman, Pieter (10 December 1990). 2026-11-19. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.

    Chicago "Koopman, Pieter (10 December 1990). Functional Programs as Executable Specifications (PhD). Katholieke Universiteit Nijmegen. p. 35. ISBN 90-9003689-X . Wikipedia revision 1375189704, retrieved 2026-11-20." Koopman, Pieter (10 December 1990). 2026-11-19. https://en.wikipedia.org/wiki/ISBN_(identifier).

    APA Koopman, Pieter (10 December 1990). (2026). Koopman, Pieter (10 December 1990). Functional Programs as Executable Specifications (PhD). Katholieke Universiteit Nijmegen. p. 35. ISBN 90-9003689-X . Wikipedia revision 1375189704, retrieved 2026-11-20. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)

  6. Clean and iTasks / ABC Interpreter · GitLab · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Clean and iTasks / ABC Interpreter · GitLab." 2026-11-19. https://gitlab.com/clean-and-itasks/abc-interpreter. Accessed 24 November 2026.

    Chicago "Clean and iTasks / ABC Interpreter · GitLab." 2026-11-19. https://gitlab.com/clean-and-itasks/abc-interpreter.

    APA encyclopegia.org. (2026). Clean and iTasks / ABC Interpreter · GitLab. Retrieved November 24, 2026, from https://gitlab.com/clean-and-itasks/abc-interpreter

  7. Lazy interworking of compiled and interpreted code for sandboxing and distributed systems · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Lazy interworking of compiled and interpreted code for sandboxing and distributed systems." Staps, Camil; van Groningen, John; Plasmeijer, Rinus (15 July 2021). 2026-11-19. https://en.wikipedia.org/wiki/Doi_(identifier). Accessed 24 November 2026.

    Chicago "Lazy interworking of compiled and interpreted code for sandboxing and distributed systems." Staps, Camil; van Groningen, John; Plasmeijer, Rinus (15 July 2021). 2026-11-19. https://en.wikipedia.org/wiki/Doi_(identifier).

    APA Staps, Camil; van Groningen, John; Plasmeijer, Rinus (15 July 2021). (2026). Lazy interworking of compiled and interpreted code for sandboxing and distributed systems. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/Doi_(identifier)

  8. Release history · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Release history." 2026-11-19. https://clean.cs.ru.nl/Release_history. Accessed 24 November 2026.

    Chicago "Release history." 2026-11-19. https://clean.cs.ru.nl/Release_history.

    APA encyclopegia.org. (2026). Release history. Retrieved November 24, 2026, from https://clean.cs.ru.nl/Release_history

  9. Index of /Clean · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Index of /Clean." 2026-11-19. https://ftp.cs.ru.nl/Clean/. Accessed 24 November 2026.

    Chicago "Index of /Clean." 2026-11-19. https://ftp.cs.ru.nl/Clean/.

    APA encyclopegia.org. (2026). Index of /Clean. Retrieved November 24, 2026, from https://ftp.cs.ru.nl/Clean/

  10. Download Clean · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Download Clean." 2026-11-19. https://clean.cs.ru.nl/Download_Clean#Clean_3.0_License. Accessed 24 November 2026.

    Chicago "Download Clean." 2026-11-19. https://clean.cs.ru.nl/Download_Clean#Clean_3.0_License.

    APA encyclopegia.org. (2026). Download Clean. Retrieved November 24, 2026, from https://clean.cs.ru.nl/Download_Clean#Clean_3.0_License

  11. Idris - Uniqueness Types · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Idris - Uniqueness Types." 2026-11-19. http://docs.idris-lang.org/en/latest/reference/uniqueness-types.html. Accessed 24 November 2026.

    Chicago "Idris - Uniqueness Types." 2026-11-19. http://docs.idris-lang.org/en/latest/reference/uniqueness-types.html.

    APA encyclopegia.org. (2026). Idris - Uniqueness Types. Retrieved November 24, 2026, from http://docs.idris-lang.org/en/latest/reference/uniqueness-types.html

  12. Clean 0.7: Readme · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Clean 0.7: Readme." "Clean 0. 2026-11-19. https://web.archive.org/web/20190524121044/https://ftp.cs.ru.nl/Clean/old/Clean07/Sun4/README. Accessed 24 November 2026.

    Chicago "Clean 0.7: Readme." "Clean 0. 2026-11-19. https://web.archive.org/web/20190524121044/https://ftp.cs.ru.nl/Clean/old/Clean07/Sun4/README.

    APA "Clean 0. (2026). Clean 0.7: Readme. Retrieved November 24, 2026, from https://web.archive.org/web/20190524121044/https://ftp.cs.ru.nl/Clean/old/Clean07/Sun4/README

  13. Clean 1.0: Readme · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Clean 1.0: Readme." "Clean 1. 2026-11-19. https://web.archive.org/web/20190505113256/https://ftp.cs.ru.nl/Clean/old/Clean10/README. Accessed 24 November 2026.

    Chicago "Clean 1.0: Readme." "Clean 1. 2026-11-19. https://web.archive.org/web/20190505113256/https://ftp.cs.ru.nl/Clean/old/Clean10/README.

    APA "Clean 1. (2026). Clean 1.0: Readme. Retrieved November 24, 2026, from https://web.archive.org/web/20190505113256/https://ftp.cs.ru.nl/Clean/old/Clean10/README

  14. Clean 1.3: Readme · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Clean 1.3: Readme." "Clean 1. 2026-11-19. https://web.archive.org/web/20190427194714/https://ftp.cs.ru.nl/Clean/Clean13/README. Accessed 24 November 2026.

    Chicago "Clean 1.3: Readme." "Clean 1. 2026-11-19. https://web.archive.org/web/20190427194714/https://ftp.cs.ru.nl/Clean/Clean13/README.

    APA "Clean 1. (2026). Clean 1.3: Readme. Retrieved November 24, 2026, from https://web.archive.org/web/20190427194714/https://ftp.cs.ru.nl/Clean/Clean13/README

  15. Radboud University Nijmegen: Department of Software Science: Software · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Radboud University Nijmegen: Department of Software Science: Software." 2026-11-19. https://www.mbsd.cs.ru.nl/Software. Accessed 24 November 2026.

    Chicago "Radboud University Nijmegen: Department of Software Science: Software." 2026-11-19. https://www.mbsd.cs.ru.nl/Software.

    APA encyclopegia.org. (2026). Radboud University Nijmegen: Department of Software Science: Software. Retrieved November 24, 2026, from https://www.mbsd.cs.ru.nl/Software

  16. FAQ · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "FAQ." 2026-11-19. http://wiki.clean.cs.ru.nl/FAQ. Accessed 24 November 2026.

    Chicago "FAQ." 2026-11-19. http://wiki.clean.cs.ru.nl/FAQ.

    APA encyclopegia.org. (2026). FAQ. Retrieved November 24, 2026, from http://wiki.clean.cs.ru.nl/FAQ

  17. Publications · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Publications." 2026-11-19. https://clean.cs.ru.nl/Publications. Accessed 24 November 2026.

    Chicago "Publications." 2026-11-19. https://clean.cs.ru.nl/Publications.

    APA encyclopegia.org. (2026). Publications. Retrieved November 24, 2026, from https://clean.cs.ru.nl/Publications

  18. FTP link · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "FTP link." a b "FTP link" (PDF). 2026-11-19. https://en.wikipedia.org/wiki/FTP. Accessed 24 November 2026.

    Chicago "FTP link." a b "FTP link" (PDF). 2026-11-19. https://en.wikipedia.org/wiki/FTP.

    APA a b "FTP link" (PDF). (2026). FTP link. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/FTP

  19. Which programming languages are fastest? · retrieved 2026-11-19 · rev 1375189704
    Cite this reference

    MLA "Which programming languages are fastest?." 2026-11-19. https://web.archive.org/web/20110628185627/http://shootout.alioth.debian.org/u32/which-programming-languages-are-fastest.php. Accessed 24 November 2026.

    Chicago "Which programming languages are fastest?." 2026-11-19. https://web.archive.org/web/20110628185627/http://shootout.alioth.debian.org/u32/which-programming-languages-are-fastest.php.

    APA encyclopegia.org. (2026). Which programming languages are fastest?. Retrieved November 24, 2026, from https://web.archive.org/web/20110628185627/http://shootout.alioth.debian.org/u32/which-programming-languages-are-fastest.php

Cite this article

MLA

"Clean (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/clean-programming-language. Accessed 24 November 2026.

Chicago

"Clean (programming language)." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/clean-programming-language.

APA

encyclopegia.org. (2026). Clean (programming language). Retrieved November 24, 2026, from https://encyclopegia.org/wiki/clean-programming-language

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

GNU Compiler for Java

enwiki · references available

S-Video

enwiki · references available

FlightGear

enwiki · references available

For Better or For Worse

enwiki · references available

Radio clock

enwiki · references available

Lady Bird Lake

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

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

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