Rich Hickey, creator of Clojure
Rich Hickey is the creator of the Clojure language. Before Clojure, he developed dotLisp, a similar project based on the .NET platform, and three earlier attempts to provide interoperability between Lisp and Java: a Java foreign language interface for Common Lisp (jfli), A Foreign Object Interface for Lisp (FOIL), and a Lisp-friendly interface to Java Servlets (Lisplets).
Hickey started working on Clojure in 2005 and spent about two and a half years working on Clojure before releasing it publicly in October 2007, much of that time working exclusively on Clojure with no outside funding. Stephanie Hickey, his wife, helped to design the language by a being an active listener and participating in discussions without writing any code. At the end of this time, Hickey sent an email announcing the language to some friends in the Common Lisp community.
Clojure's name, according to Hickey, is a word play on the programming concept "closure" incorporating the letters C, L, and J for C#, Lisp, and Java respectively—three languages which had a major influence on Clojure's design.
Rich Hickey developed Clojure because he wanted a modern Lisp for functional programming, symbiotic with the established Java platform, and designed for concurrency. He has also stressed the importance of simplicity in programming language design and software architecture, advocating for loose coupling, polymorphism via protocols and type classes instead of inheritance, stateless functions that are namespaced instead of methods or replacing syntax with data.
Clojure's approach to state is characterized by the concept of identities, which are represented as a series of immutable states over time. Since states are immutable values, any number of workers can operate on them in parallel, and concurrency becomes a question of managing changes from one state to another. For this purpose, Clojure provides several mutable reference types, each having well-defined semantics for the transition between states.
Clojure runs on the Java platform and as a result, integrates with Java and fully supports calling Java code from Clojure, and Clojure code can be called from Java, too. The community uses tools such as Clojure command-line interface (CLI) or Leiningen for project automation, providing support for Maven integration. These tools handle project package management and dependencies and are configured using Clojure syntax.
As a Lisp dialect, Clojure supports functions as first-class objects, a read–eval–print loop (REPL), and a macro system. Clojure's Lisp macro system is very similar to that of Common Lisp with the exception that Clojure's version of the backquote (termed "syntax quote") qualifies symbols with their namespace. This helps prevent unintended name capture, as binding to namespace-qualified names is forbidden. It is possible to force a capturing macro expansion, but it must be done explicitly. Clojure does not allow user-defined reader macros, but the reader supports a more constrained form of syntactic extension. Clojure supports multimethods and for interface-like abstractions has a protocol based polymorphism and data type system using records, providing high-performance and dynamic polymorphism designed to avoid the expression problem.
Clojure has support for lazy sequences and encourages the principle of immutability and persistent data structures. As a functional language, emphasis is placed on recursion and higher-order functions instead of side-effect-based looping. Automatic tail call optimization is not supported as the JVM does not support it natively; it is possible to do so explicitly by using the recur keyword. For parallel and concurrent programming Clojure provides software transactional memory, a reactive agent system, and channel-based concurrent programming.
Clojure 1.7 introduced reader conditionals by allowing the embedding of Clojure, ClojureScript and ClojureCLR code in the same namespace. Transducers were added as a method for composing transformations. Transducers enable higher-order functions such as map and fold to generalize over any source of input data. While traditionally these functions operate on sequences, transducers allow them to work on channels and let the user define their own models for transduction.
Extensible Data Notationedit
Extensible Data Notation, or edn, is a subset of the Clojure language intended as a data transfer format. It can be used to serialize and deserialize Clojure data structures, and Clojure itself uses a superset of edn to represent programs.
edn is used in a similar way to JSON or XML, but has a relatively large list of built-in elements, shown here with examples:
- booleans: true, false
- strings: "foo bar"
- characters: \c, \tab
- symbols: name
- keywords: :key
- integers: 123
- floating point numbers: 3.14
- lists: (a b 42)
- vectors: [a b 42]
- maps: #myapp/Person{:first"Fred":last"Mertz"}, whose interpretation will depend on the appropriate handler of the reader.
This definition of extension elements in terms of the others avoids relying on either convention or context to convey elements not included in the base set.
Alternative platformsedit
The primary platform of Clojure is Java, but other target implementations exist. The most notable of these is ClojureScript, which compiles to ECMAScript 3 (or newer ES5 or ES5-strict, up to ES-2021, and ES-next possible) and ClojureCLR, a full port on the .NET platform, interoperable with its ecosystem.
Other implementations of Clojure on different platforms include:
- Babashka, Native Clojure scripting language leveraging GraalVM native image and Small Clojure Interpreter
- ClojureDart, Extend Clojure's reach to mobile & desktop apps by porting Clojure to Dart and Flutter
- Clojerl, Clojure on BEAM, the Erlang virtual machine
- basilisp, A Clojure-compatible(-ish) Lisp dialect targeting Python 3.8+
- ClojureRS, Clojure on Rust
- Ferret, compiles to self-contained C++11 that can run on microcontrollers
- jank, Native Clojure hosted in C++ on an LLVM-based JIT
- Joker, an interpreter and linter written in Go
Tooling for Clojure development has seen significant improvement over the years. The following is a list of some popular IDEs and text editors with plug-ins that add support for programming in Clojure:
In addition to the tools provided by the community, the official Clojure command-line interface (CLI) tools have also become available on Linux, macOS, and Windows since Clojure 1.9.
The development process is restricted to the Clojure core team, though issues are publicly visible at the Clojure JIRA project page. Anyone can ask questions or submit issues and ideas at ask.clojure.org. If it's determined that a new issue warrants a JIRA ticket, a core team member will triage it and add it. JIRA issues are processed by a team of screeners and finally approved by Rich Hickey.
With continued interest in functional programming, Clojure's adoption by software developers using the Java platform has continued to increase. The language has also been recommended by software developers such as Brian Goetz, Eric Evans, James Gosling, Paul Graham, and Robert C. Martin. ThoughtWorks, while assessing functional programming languages for their Technology Radar, described Clojure as "a simple, elegant implementation of Lisp on the JVM" in 2010 and promoted its status to "ADOPT" in 2012.
In the "JVM Ecosystem Report 2018" (which was claimed to be "the largest survey ever of Java developers"), that was prepared in collaboration by Snyk and Java Magazine, ranked Clojure as the 2nd most used programming language on the JVM for "main applications". Clojure is used in industry by firms such as Apple, Atlassian, Funding Circle, Netflix, Nubank, Puppet, and Walmart as well as government agencies such as NASA. It has also been used for creative computing, including visual art, music, games, and poetry.
In the 2023 edition of Stack Overflow Developer Survey, Clojure was the fourth most admired in the category of programming and scripting languages, with 68.51% of the respondents who have worked with it last year saying they would like to continue using it. In the desired category, however it was marked as such by only 2.2% of the surveyed, whereas the highest scoring JavaScript was desired by 40.15% of the developers participating in the survey.
| Version |
Release date |
Major features, improvements |
|
December 31, 2009 (2009-12-31) |
Futures |
| 1.2 |
April 15, 2012 (2012-04-15) |
Reader literals |
| 1.5 |
March 25, 2014 (2014-03-25) |
Java API, improved hashing algorithms |
| 1.7 |
December 8, 2017 (2017-12-08) |
Integration with spec, command-line tools |
| 1.10 |
January 26, 2021 (2021-01-26) |
Java interoperability/compatibility improvements and other important language fixes |
| 1.10.3 |
April 5, 2022 (2022-04-05) |
Rolling back unintended change in binary serialisation of objects of types clojure.lang.Keyword and clojure.lang.ArraySeq. |
| 1.11.2 |
June 2, 2025 (2025-06-02) |
Includes bug fixes, improved interop, enhanced tool support, and metadata updates. |
| 1.12.2 |
December 10, 2025 (2025-12-10) |
Fix for CLJ-2924. |
| 1.12.5 |
September 2, 2026 (2026-09-02) |
Fixes for CLJ-2794 and CLJ-2974. |
- 1 2 "Agents and Asynchronous Actions". Clojure.org. Retrieved 2019-07-07.
- ↑ "Functional Programming". Clojure.org. Retrieved 2019-07-07.
- ↑ Esterhazy, Paulus. "Threading Macros Guide". Clojure.org. Retrieved 2019-07-07.
- 1 2 Hickey, Rich (2011). "Simple Made Easy". YouTube.
- ↑ Hickey, Rich. "Clojure Bookshelf". Amazon.com. Archived from the original on 2017-10-03. Retrieved 2019-07-07.
- ↑ Ramachandra, Ramkumar. "Rhine". GitHub. Retrieved 2019-07-07.
- 1 2 3 4 5 Krill, Paul (2012-03-22). "Clojure inventor Hickey now aims for Android". InfoWorld.com.
- 1 2 "Differences with other Lisps". Clojure.org. Retrieved 2019-07-07.
- 1 2 3 Hickey, Rich. "Rationale". Clojure.org. Retrieved 2019-07-07.
- 1 2 Hickey, Rich (2002-10-16). "[ANN] dotLisp: A Lisp dialect for .Net". Google.com.
- ↑ Hickey, Rich (2013-03-07). "Lisplets". SourceForge.net.
- 1 2 "Simple Made Easy". InfoQ. Retrieved 2024-05-02.
- ↑ "Java Interop". Clojure.org. Retrieved 2019-07-07.
- 1 2 "Multimethods and Hierarchies". Clojure.org. Retrieved 2019-07-07.
- ↑ Goetz, Brian (2014-11-20). "Stewardship: the Sobering Parts". YouTube.com.
- ↑ "Special Forms". Clojure.org. Retrieved 2019-07-07.
- ↑ Miller, Alex (2015-06-30). "Clojure 1.7 is now available". Clojure.org.
- ↑ Hickey, Rich (2014-11-20). "Inside Transducers". YouTube.com.
- ↑ "ClojureScript – FAQ (for JavaScript developers)". ClojureScript.org. Retrieved 2018-02-04.
- ↑ Borkent, Michiel. "Babashka". Babashka.org. Retrieved 2019-08-19.
- ↑ "basilisp". GitHub. Retrieved 2024-05-13.
- ↑ Wilkerson, Jeaye. "jank". Jank-Lang.org. Retrieved 2022-08-17.
- ↑ Batsov, Bozhidar; contributors. "CIDER: The Clojure Interactive Development Environment that Rocks". CIDER.mx. Retrieved 2019-07-05.
- ↑ Helenius, Eero. "Tutkain". FlowThing.me. Retrieved 2023-02-18.
- ↑ Caldwell, Oliver. "Neovim Clojure(Script) tooling over prepl". GitHub. Retrieved 2019-11-09.
- ↑ "Overview - Clojure LSP". clojure-lsp.io. Retrieved 2024-05-02.
- ↑ "Clojure". Atlassian.net. Retrieved 2019-07-07.
- ↑ "Workflow". Clojure.org. Retrieved 2019-07-07.
- ↑ Evans, Eric (2014-11-21). "Eric Evans on Twitter". Twitter.com.
- ↑ Martin, Robert (2019-08-22). "Why Clojure?". CleanCoder.com.
- ↑ Martin, Robert (2017-07-11). "Pragmatic Functional Programming". CleanCoder.com.
- ↑ "Technology Radar: Clojure". ThoughtWorks.com. Retrieved 2019-02-10.
- ↑ Liutikov, Roman (2017-12-17). "Roman Liutikov on Twitter". Twitter.com.
- ↑ Pither, Jon (2016-10-04). "Clojure in London: Funding Circle – Lending some Clojure". JUXT.pro.
- ↑ Price, Chris (2014-04-11). "A New Era of Application Services at Puppet Labs". Puppet.com. Retrieved 2020-08-06.
- ↑ Meier, Carin (2015-05-06). "Creative computing with Clojure". OReilly.com.
- ↑ Hickey, Rich (2009-12-31). "Clojure 1.1 Release". BlogSpot.com.
- ↑ Dipert, Alan (2012-04-17). "[ANN] Clojure 1.4 Released". Google.com.
- ↑ Miller, Alex (2014-03-25). "[ANN] Clojure 1.6". Google.com.
- ↑ Miller, Alex (2018-12-17). "Clojure 1.10 release". Clojure.org.
- ↑ Miller, Alex (2021-03-04). "Clojure 1.10.3 release". Clojure.org.
- ↑ Miller, Alex (2024-03-08). "Clojure 1.11.2 release". Clojure.org.
- ↑ Miller, Alex (2025-08-25). "Clojure 1.12.2 Released".
- ↑ Miller, Alex (2026-05-12). "Clojure 1.12.5 Released".
|
|