Clojure will affect the way you think about programming (2017) eli.thegreenplace...
HN Best 30 @best30
Clojure will affect the way you think about programming (2017) eli.thegreenplace.net · 200 points · 92 comments · HN thread
TL;DR Eli Bendersky argues in this 2017 post that Clojure is an excellent language to learn for broadening one's programming thinking, even without plans to use it in production. He highlights its Lisp heritage, macros, sequence-based data processing, protocols, persistent data structures and concurrency tools. The HN thread (92 comments) mostly discusses whether Clojure's data-first style helps or hurts, especially in the LLM era and in comparison with static typing.
- Clojure is presented as a Lisp (like Common Lisp, Scheme, Racket) that is dynamic, favors built-in data structures over objects, and has full macro support.
- Sequence functions, laziness and threading macros let data-processing code read like SQL, with reducers and transducers adding efficiency and parallelism.
- clojure.spec and core.typed offer optional, after-the-fact checking of nested data shapes.
- Clojure uses protocols and multiple dispatch rather than class hierarchies for its OOP-like features.
- Concurrency support includes persistent data structures, atoms, refs with STM, futures and core.async channels modeled on Go's CSP.
- The author recommends learning Clojure even without production use, since it changes how one writes code in other languages.
Discussion The thread is a mix of fond recollections and debate. Many commenters praise Clojure's simplicity and data-centric design and share learning resources, while a sizable group pushes back on the claim that it is 'advanced' or that dynamic typing scales well for teams. A recurring side topic is whether immutability and strong types matter more now that LLMs write much of the code, which drew speculation and some skepticism. The mood is generally warm and nostalgic, with a few sharp critiques.
- Clojure's data-first, immutable style is a valuable way to learn (many): Several commenters describe Clojure as the language that changed how they think about data, transformations and immutability. Some learned it via 4clojure puzzles or early in their careers and still value it.
- Static types are needed for team-scale and LLM-era code (many): Commenters argue that dynamic maps and untyped data become hard to maintain as codebases and teams grow. Some note that strong type systems with clear errors help LLM agents verify their work, and suggest Haskell, Rust or Scala are more LLM-friendly.
- Immutability and functional ideas predate Clojure (some): Some point out that immutable data and functional programming existed long before Clojure, and that Hickey's contribution is in popularizing and organizing these ideas rather than inventing them.
- Clojure's REPL and simplicity are its real strengths (some): Commenters who like Clojure highlight the interactive REPL workflow and its small, simple core. Others say TypeScript's hot reload is not a true REPL, but that it still offers a strong ecosystem.
- Clojure is overrated as an advanced language (a few): An outsider argues that Clojure fans overstate its sophistication and that TypeScript covers much of the same ground with a larger ecosystem and better tooling.
Links from the comments
- Rich Hickey's HOPL paper 'A History of Clojure'
- Video of the HOPL talk on the history of Clojure
- Malli type providers with Typed Clojure for instant feedback
- Earlier HN discussion of this post, with 216 comments
#clojure #lisp #functionalProgramming #immutability #typeSystems #llm