Clojure will affect the way you think about programming (2017) eli.thegreenplace...
HN Best 200 @best
Clojure will affect the way you think about programming (2017) eli.thegreenplace.net · 18 points · 5 comments · HN thread
TL;DR Eli Bendersky argues that Clojure is an especially good language to learn next because, as a modern Lisp, it packs in ideas that broaden how programmers think: dynamic typing with optional checking, macros, higher-order functions, persistent data structures, and built-in concurrency tools. He recommends it even for readers with no plans to use it in production. The post is from 2017.
- Quotes Alan Perlis that a language not affecting how you think about programming is not worth knowing, and presents Clojure as a strong candidate for that.
- Clojure is a dynamic Lisp with full macro support and uniform syntax, which the author says forces programmers to treat code as data.
- Sequence functions, laziness and persistent data structures let data-processing code read much like SQL, with reducers and transducers for parallelism.
- clojure.spec and core.typed offer optional static checking when needed.
- Concurrency comes from persistent data, atoms, refs with STM, JVM threads and futures, and core.async's CSP-style channels and go blocks.
- Clojure interoperates seamlessly with Java, and ClojureScript targets JavaScript.
Discussion The thread is very small, with five comments, and reads as nostalgic and brief. Commenters mostly share personal histories with Clojure, with one pointing to an older Hacker News discussion of the post and another dropping an unrelated link. The tone is mild and reflective, with a light joke about the article's age.
- Clojure instilled a lasting appreciation for immutability and dataflow (some): One commenter learned Clojure early and says it shaped their taste for immutable data and dataflow style. This is a positive view of the language's influence on how they program.
- Dynamic typing and untyped maps and lists are a drawback (some): The same commenter says Clojure's habit of using lists and maps for everything left them with a distaste for dynamic types, and they now prefer the ML family of languages for static types.
- Learning Clojure young left a map-and-function mindset that resists static types (a few): A commenter who started Clojure at 17 and later left programming says they still think in maps and functions and find static types hard to appreciate. This is first-hand experience showing the influence can cut the other way.
- The article is old and dated (a few): A short joke says the article is ten years old and its author should want it back, a light dig at the post's age.
Links from the comments
- Earlier Hacker News discussion of this article, with 216 comments.
- Clojure SDK for Conductor OSS, shared as a note that Clojure is used in that project.
#clojure #lisp #programmingLanguages #functionalProgramming #concurrency