138 points · by nathell · 6y ago · 42 comments
Which is about 8 years old.
Clojure hold a soft spot in my heart for emotional reason, but the engineering behind it is top notch.
If any of you need motivation to go and learn it! Please do it! You will never regret invest time in clojure.
I've written about this (free online) book here on HN before but it really gave me the kick I needed (and lightweight humor) to actually start using Clojure(Script) professionally, so if you're on the edge, give "Clojure for the Brave and True" a try!
https://www.braveclojure.com/clojure-for-the-brave-and-true/
> The lessons are carefully thought out and unique. From learning asynchronicity to the lyrics of Lady Gaga, to learning about thread lock in the context of drunken dwarves, every chapter is fresh and (in all honesty) beautiful. - Artur Malabarba, CIDER maintainer
Agree that Clojure is a good language to learn. If you plan to use it beyond educational purposes though, expect to hit many walls when/if you plan to write real world apps with it. The foundations are there but the ecosystem isn't. Someone will mention the Java libraries, but at that point you are not really writing Clojure. Also, be prepared to deal with the cultish obsession of the community. They have very strong opinions but will never elaborate.
Uh, Clojure was literally written from day one on the founding principle of Java interop? Using Java libraries from a functional lisp is literally the reason Clojure exists.
I'm curious to know what "cultish obsession" you are referring to. Also, what strong opinions have you been unable to get elaboration on?
Laughed at the "How to refactor? Just don't write code that needs refactoring, simple made easy!"
So with this, are there other languages where they are explicitly designed to be "parasites" like Clojure?
One could argue the many "compiled to JS" language are such, but they are always very hardcoded to JS, so not really parasitic like Clojure.
Clojure was definitely designed to be both embedded and hosted, but those are distinct axes.
There are lots of languages designed to be embedded as scripting or automation runtimes in other systems. Tcl, Lua, Python, Guile (a lisp)...
Why embedded- pre-web, there used to be a practice of writing your infrastructure in systems language (C/C++) then writing your application tier in a scripting language. Countless games and GUI line of business tools on Windows were written this way.
Java in this case was considered a "systems" language, and there is a long history of embedded languages for Java. My favorite JVM-embedded language was called Beanshell.
This embedding was/is a use case for Clojure, important for "sneaking" Clojure in to the enterprise.
The "designed" part implies that the scripting runtime plays nicely with process-owned resources like threads and memory, and has a well defined interface for exposing your infrastructure objects to the scripting layer.
Post-web, if you squint, you can recognize this architecture in the DOM the browser (written in a systems language like C++ or Rust) exposes to its scripting tier (Javascript).
This is typographic patriotism on my part (I'm Polish). This typeface [1] is a design of the late Andrzej Heidrich, who also designed the banknotes of the Polish zloty.
One of my two favourite Polish typefaces. The other is Antykwa Toruńska (Torunian Antiqua) [2], a 1960 design by Zygfryd Gardzielewski.
https://nelsonmorris.net/2012/07/31/do-not-use-version-range...
https://hypirion.com/musings/lockfiles-are-not-the-only-opti... https://stackoverflow.com/questions/44521542/why-doesnt-grad...
I'm not sure I understand what issue you would solve with using "[org.clojure/clojure ">1.2.0"]" compared to what we're doing today, which is specifying the exact version we're using. What is the issue you're addressing here exactly?
In general, the Clojure community favors stability (more than others like npm) when it comes to dependencies, so you're almost always defining the exact version of the dependency you want.
I'm not sure I understand how `:scope "provided"` plays out if two dependencies say they want different versions of clojure, but that's also relevant.
That sounds like a solution to some problem, but I'm unsure of what that problem is. Not sure it makes sense to depend on more than one version at a time, because you're usually just testing with one version and can ensure compatibility with just one version.
Semver somehow made people believe that we can have versions numbers created with human-intuition but used as they are 100% true and generated by robots.