2 ms·
I’ve been playing a lot with the idea of just using ClojureScript for everything, both backend and frontend. Shadow-cljs [0] makes interop with the NPM ecosyst
by adamkl 6y ago
I’ve been playing a lot with the idea of just using ClojureScript for everything, both backend and frontend.
Shadow-cljs [0] makes interop with the NPM ecosystem a breeze, and ClojureScript is stable, mature, and feature-complete in its own right.
Although you lose out on some of the features of the JVM (threading), you get access to a lighter weight runtime, and the massive world of JavaScript libraries (which don’t bring much OOP baggage with them).
I’m not sure how viable it is long term, but so far it’s been fun, and pretty trivial to write simple wrappers over JS libraries (when repeated direct interop doesn’t make sense).
Somebody else in here mentioned that Clojure isn’t a “first” language, but I think if there was an “easier” (yes, I said easier, not simpler) path to get into it, more people might pick it up as their second language.
[0] https://github.com/thheller/shadow-cljs https://github.com/thheller/shadow-cljs