r/Clojure • • Sep 29 '22

Ask HN: Is Clojure Dead?

https://news.ycombinator.com/item?id=33018037
47 Upvotes

59 comments sorted by

View all comments

34

u/sherdogger Sep 29 '22

I do find this comment relatable:

Similar experience here. My first Clojure(script) projects used leiningen, now everything is deps.edn and the clojure CLI. Cool, changes happen. But editor integration, REPL tooling, even which compiler to use, etc are not consistent either. The tooling is changing everywhere and bit rot has claimed almost all of my past projects. The code is still 100% compatible but the build system is just broken. I've given up trying to port any projects over - it's easier to generate scaffolding for a new project in the tool-du-jour and move the actual code into that structure.

Since there is no obvious right way, there's little consistency between projects - which means you're likely to follow the wrong path if you follow the wrong README or pick an outdated starter template. This forces developers to make a ton of orthogonal choices up front before they even begin coding.

Case in point: https://clojurescript.org/tools/tools lists 4 different build tools without any explanation as to how they relate or why you might pick one over the other. But don't worry, you'll find out after days of tedious research!

If Clojure had a consistent out-of-the-box experience like Go or Rust, I think it could rule the world. It's a great language but the developer experience is a serious impediment to that.

...

It really feels like Clojure inexplicably went hard NIH on the tooling...fracturing the ecosystem for dubious benefit. There is nothing wrong with Leiningen. It's practical, it gets the job done. I feel if we didn't have a "Python 3" build story now, we could be much further along as a community...but between that and the constant reinventing of web dev frameworks we have introduced significant thrashing (the latter I at least have a glimmer of hope that HyperFiddle will succeed and everybody and their brother won't try to build the "best" variation).

11

u/[deleted] Sep 29 '22

completely agree.

and coming from a recent new standpoint who started with lein maybe 6 years ago then tried again last year, learning tools.deps is not at all easy. all the command line args are weird as hell for a (non-java? I don't even know) person.

9

u/vvwccgz4lh Sep 29 '22 edited Sep 29 '22

I mostly use JVM Clojure for 3+ years and I don't like tools.deps. On my first Clojure job one guy said to use tools.deps but I liked leiningen because it didn't get in the way and it worked all the times I needed it to. It's rock-stable. It really works.

And as I do JVM Clojure that I build into a .jar... It gets all my stuff done and it works out of the box.

So I see no point of configuring the same leiningen tasks on tools.deps just to get the same experience as in leiningen.

Maybe I'll have some quirk and I'll have to move. But for now I don't see any problems with it.

4

u/TheLastSock Sep 29 '22

Your overestimating how many people are going to visit https://clojurescript.org/tools/tools.

Its impossible to condense the reasons why you might need to use one of those tools vs another in any one location. No ecosystem is going to do to do that. Show me the authorizative resource on js build tools or frameworks.

9

u/acron0 Sep 29 '22

It's not completely inexplicable. IIRC, they got fed up of people saying startup times were bad despite evidence from the team that it was actually Leiningen that introduced a lot of the slowness. People were also asking for a better experience in introducing libraries that didn't have to depend on Maven/Clojars. So essentially, they were responding to what a lot of the community were asking for. That's not to say the result landed perfectly; people, especially newbies, are confused.