r/Clojure • • Sep 23 '23

Grateful for Clojure and Clojurians

Brief story: I became interested in Clojure a few years ago, then my attention dragged to other things. I observed the space discreetly, but not too closely, and from a distance the community seemed to be shrinking. Recently I was toying with an idea that I thought Clojure would be a good fit for. I was skeptical at first, but then I started looking more closely at the space.

My mind was blown.

I'm just amazed at how good and mature the tools, libraries, and ecosystem as a whole have become. Calva, deps, kondo, shadow-cljs, bb, cherry, http-kit, lacinia, xtdb, integrant, clojuredart, etc., to name a few from a long list I've researched. Or things like electric, which is just insanely cool and there is nothing like it anywhere.

The only question I have is literally: why isn't anyone talking about this? Do people just keep quiet and build something? Or the talk moved to other places?

Anyway, thanks to the Clojure community, it's a pleasure to be here.

82 Upvotes

25 comments sorted by

29

u/dustingetz Sep 23 '23 edited Sep 23 '23

Electric founder here, my personal theory is a consolidation economic cycle which is especially concentrated in usa tech. People gravitate towards higher salaries which inevitably points in the direction of what the monopolies are doing. and Conway's Law ("you ship the org chart") is ultimately about cashflows and not about technology. Clojure has problems (just like Elixir, OCaml and every other niche lang – read their forums, it's the same discussion patterns) but in the end cashflow is the invisible hand that shapes our behavior.

With Electric I am trying to do my part but let me tell you, it is expensive to make cool new stuff and communicate it and get it to market! Electric's payroll is 4 FTEs for 3 years (so far), not to mention the preceding 3 years x 2 FTE of failed attempts, and I looked like an idiot that entire time. Someone has to pay for that; the amount of personal risk is far beyond what society would consider "normal" or reasonable.

Hopefully soon Electric can help Clojure start to break through into mainstream, and then Hyperfiddle (programmable crud spreadsheet, google sheets killer) can launch Clojure into the stratosphere and attract the investment/capital, toolbuilders, marketers, influencers etc needed to bring Clojure to the world stage with it's unique & compelling value prop laid out and demonstrated clearly in a way that cannot be found anywhere else.

7

u/RomanTsopin Sep 23 '23

Thank you, always find your input very insightful.

I understand your point about marketing new tech. Personally, I failed to grasp Electric multiple times and was only managed to get it through London Clojurians video, but then I read everything i could find.

Some things are just too different / beyond your usual realm. What helped me was to view it as a natural progression: first a rest API and manual everything, then an open API client/model generation, then graphl with queries, subscriptions, and connection management, and finally no networking hassle at all. There are still open questions for me, e.g. how to do native apps, without bringing back graphql. (btw similar problem with liveview). But still, such a radical shift when you manage to connect the dots. Game changer.

Really hope Electric will bring the same (likely greater) impact to Clojure as liveview to Elixir.

5

u/dustingetz Sep 23 '23 edited Sep 24 '23

Thanks for the feedback! It is certainly possible for us to do much better in terms of communication, but someone (me) has to pay for it. I only mention this at all because its on topic for the larger thread – as you point out, the more "different / beyond one's usual realm" a project is, the more analysis work is needed to figure out who we are trying to explain it to, their worldview, priors and beliefs, how they like to be talked to, how to present in a way that actually helps them connect the dots – it's just super hard, on top of all the other already hard things we do. When you have something different the default steady state is nothing changes (as compared to incremental/ “mid” ideas which are near at hand and easy to act upon). I think this applies to Clojure as well.

18

u/fadrian314159 Sep 23 '23

People do talk about the cool stuff. It's just that we tend to talk amongst ourselves, having been burned by outsiders who say that "It's just like XXX", where XXX, the language it's written in, and the ecosystem take about ten times as much to get working, takes ten times the code to interface, and delivers about one tenth the benefits of the Clojure equivalent. Add that to the fact that Clojure is usually used for projects in business that can't be talked about and you can see why Clojurians tend to do, not promote.

1

u/akapcdro Sep 23 '23

Interesting! I’m new to the Clojure world, and got curious about what kinds of these business that can not talk. Would you mind sharing some examples of industries or companies?

8

u/fadrian314159 Sep 23 '23

Right now I'm working for a healthcare consulting firm. They tend to keep their permanent headcount low, so projects tend to be done with one or two people. It is my professional opinion that the project I'm working on now could only be done in Clojure due to the code density it provides. And no, I'm not able to divulge more about the project other than it's for a relatively large company with timelines that require a highly productive language. Therefore, Clojure.

18

u/seancorfield Sep 23 '23

Why isn't anyone talking about this? It's a hard sell because a lot of what makes Clojure and its ecosystem so great only becomes apparent once you're using it. Some of us have been talking about it. When I first got into Clojure (2010), I did several talks at conferences and user groups / meetups about the leverage that Clojure provided us at work -- but most folks' eyes glazed over at just how different it looked to them. I stopped trying to "convert" folks and just got on with making stuff.

Even within the Clojure community, some things are a hard sell because you only really "get it" once you've used those things for a while (Polylith and Electric spring to mind here). Some of this stuff just looks... alien... even to Clojurians!

5

u/[deleted] Sep 24 '23

I’ve had a similar experience and have found it disheartening. I also started to doubt Clojure’s value because I’m quite easily swayed by the crowd. Now I just use it where it makes sense but don’t promote it.

I’ve shown how helpful Clojure can be automating processes for clients (things nobody was willing to touch) and the response I got was ‘that’s great but can you do it in Java instead?’ If I had to do it in Java I would never have started!

4

u/dustingetz Sep 24 '23 edited Sep 24 '23

hot take: clojure’s accessible value in 2023 does not quite reach the threshold to create a 10x tipping point which clearly outweighs the cost of accessing it. The potential is there, with brilliant aspects (e.g. thin layer of immutability over host platform) unfortunately attenuated to the point of being cancelled out by deeply rooted weaknesses (indifference towards beginner experience). The way to get it there, like any product is through relentless focus on a specific widespread use case and persona, steered by metrics not just intuition. What if we stopped trying to be good at everything for everyone (“general purpose language”) and instead tried to be magnificent at one specific thing? (“situated programs” aka cloud information systems)

3

u/SimonGray Sep 24 '23

Solving the beginner experience, I believe, is essentially impossible unless the host platform is made into a complete abstraction. The typical beginner issues tend to be error messages exposing the thin layer over the host platform that Clojure ends up being in any of its implementations.

The terse quality of official documentation and idiosyncracies of the official CLI tooling add further to the fire, of course.

I don't see how you solve the beginner experience without fundamentally changing the philosophy of Clojure.

3

u/dustingetz Sep 24 '23 edited Sep 24 '23

Errors are a part of it (is a total solution necessary?), and yet in my experience hosting Clojure workshops for Java/Ruby/Python programmers many years ago, the first 90 minutes were spent just getting to a working hello world project properly jacked into the editor. So many people see Clojure on HN, decide to try it for an hour and bounce off frustrated because they assumed that "REPL" means what it means in Python/Ruby and were trying to balance parens in a cursed terminal interface. Yes there has been some progress here in books/clojure.org copy/etc but the larger point stands. Forcing RichAlexStuFogus to use VSCode for a year would go a long way towards fixing this, as well as e.g. spend one day a year volunteering at a coding bootcamp to do a "clojure day" at the end. If you don't have real world metrics on what is actually causing people to bounce, how can anything improve? (I personally switched to VSCode this year, not because I like it but so I can experience Electric the way beginners do)

5

u/seancorfield Sep 24 '23

I switched to VS Code a while back, not because it is a "beginner experience" but because it is a very sophisticated, powerful environment.

I script it with ClojureScript (via Joyride). I run two Portal windows inside VS Code. I let VS Code manage my REPL (jack-in) and I don't even have the REPL output window open.

I used Emacs back in the '80s/'90s and picked it up again when I got started with Clojure (2010) and I've gone through pretty much every Clojure-connected editor since then -- including several configurations of Emacs -- before settling on VS Code / Calva / Joyride / Portal.

That VS Code just happens to have a better beginner experience is just icing on the cake.

3

u/dustingetz Sep 26 '23 edited Sep 26 '23

Oops, I didn't mean to imply that VSCode is worse, it's the fact that it's better for beginners in so many ways that it is became the default starting point for beginners. Apologies. Pez is doing important work!

Due to this, relentlessly streamlining the default user activation pathway is the #1 thing to do to increase growth by decreasing the bounce rate, which for Clojure I'd guess at as 90%+ maybe as high as 99%

2

u/jwhitlark Sep 25 '23

VSCode is a good start. I'd recommend you look at devcontainers. Then you really can have a "clean room" getting started, with people bringing nothing more than their preferred config, (if they have one). Take a look at the (small amount) of work it took to add it to https://github.com/seancorfield/usermanager-example#quickstart-via-devcontainers-or-github-codespaces or My Samples of ways to use it with Clojure

1

u/bo-tato Sep 26 '23 edited Sep 26 '23

The core team improved a lot the error messages, if you're using directly the clojure repl. A lot of the editor plugins for clojure haven't taken that into account and are showing verbose stacktraces by default though. I think a good language to look at is Elixir as it is quite similar to clojure in many ways. Personally I prefer clojure but I'm envious how good their guides and documentation and getting started experience is for beginners. That along with elixir having "standardized" around Phoenix where clojure beginner's constantly have to research a bunch of different options and figure how to integrate them together, and easy editor support (any editor with lsp support and install elixir-lsp and it just works), mix being more familiar to people coming from cargo, npm, gem, or whatever else than clojure's deps.edn, all combines to make a far nicer beginner experience for elixir. Clojure could do all that also, it'd just take a lot of work. But at the end of the day I don't think that make clojure hugely popular, it's just really hard for a niche language to catch on, especially when it's a different way of programming than people are used to (s-exp syntax and immutable by default). Elixir has an excellent beginner experience, a more "normal" looking syntax, and it's not growing any faster than clojure. Since the days of python,php, and ruby there hasn't really been any new language enter the mainstream without massive corporate backing or being the exclusive language of some platform.

Edit: and clojure realizes this, that's the genius of being a hosted language. It will probably never be one of the top languages, but it doesn't take many users to keep it useful and maintained, as it benefits from all the improvements and libraries of it's host platforms, virtual threads on the jvm is one I'm excited about right now

4

u/seancorfield Sep 24 '23

I also started to doubt Clojure’s value because I’m quite easily swayed by the crowd.

I have no doubt about its value. I work on the backend of an online dating platform that was rewritten to Clojure, so I can compare how it was before to how it is now: we have a smaller team, maintaining a much more sophisticated system, that has about half the lines of code of the old, simpler system, and it's easier to make changes and fewer bugs show up in production (partly due to immutability). That's serious leverage.

3

u/dustingetz Sep 24 '23

“Marketing is telling people something that they already believe to be true”

13

u/Stranglet Sep 23 '23

I'm thinking about creating a big Spanish Clojure community, especially towards junior devs. I think companies to take into account the pool of available 'cheap' developers, and they are now all python, JS and PHP based. I want to change that slowly, but I'm also a newbie in clojure, though I want to use that to my advantage.

I was also blown away.

10

u/aHackFromJOS Sep 23 '23 edited Sep 23 '23

I fully agree about the depth of the ecosystem. Core.async, Cider, spec (yes spec1, I absolutely love it), deps, kondo, charred, Morse (even though I’m constantly forgetting its name), and plenty of things I haven’t had a chance to try yet like babashka, next.jdbc, ClojureScript - I find it all deeply well thought out and satisfying to use (or study). (Even the long stack traces I like, to be honest.)

In terms of buzz, I think you are correct about people using Clojure just getting on with building. It seems to have a strong base in non flashy communities like finance and longtime Java programmers. And just more seasoned programmers generally, who may be less inclined to evangelize.

As Rich Hickey put it in one of his talks:

So fundamentally, what is Clojure about? Can we make programs out of simpler stuff? I mean, that's the problem after 18 years of using, like, C++ and Java, you're exhausted. How many people have been programming for 18 years? Ok. How many for more than 20 years? More than 25? Ok? Fewer than 5? Right (?), so that's really interesting to me. It may be an indictment of Clojure as a beginner's language or may be that Clojure is the language for cranky, tired, old programmers.

[audience laughter and applause]

And, you know what? I would not be embarrassed if it was, that's fine by me. Because, you know, I did make it for myself, which I think is an important thing to do. Trying to solve other people's, you know, problems and think you understand what they are, you know, that's tricky

https://github.com/matthiasn/talk-transcripts/blob/master/Hickey_Rich/EffectivePrograms.md

7

u/frankieche Sep 23 '23

People using Clojure are more mature and less likely to make TikTok videos about their bootcamp experiences.

4

u/thheller Sep 25 '23

As a perspective from a tool author I can say that "talking about it" was not on my radar, and somewhat still isn't.

I built it because I needed it. I then encountered other people having the same issues I had, so I told them about it. That is still pretty much the only thing I do in terms of "talking about it". It seems to work, but it is somewhat quiet. I also much rather spend my limited time working on the tool than talking about it in some "marketing" context.

3

u/jbiserkov Sep 23 '23

"Thank God for St. Rich Hickey, who writes Java, so we don't have to!"

-- Jordan Biserkov

1

u/jbiserkov Sep 23 '23

That is of course a huge oversimplification, but I love that sound bite.

It's not just Rich, it's the entire community.

And it's Java too (not just the JVM).

And Javascript.

And Dart.

And others.

2

u/lgstein Sep 24 '23

People like to compare how to solve a problem in language X vs language Y. There are so many problems that don't exist in Clojure/are already abstracted away that this is not possible. When an experienced Clojurists "solves a problem" its often just adding a few characters somewhere (declarative!)