34 ms·
State of Clojure 2020
- Taikonerd 7y agoI'm glad that Clojure users seem happy with their language. But it seems like a worrisome sign that their survey has roughly the same number of respondents year after year... * 2020: 2519 responses * 2019: 2461 responses * 2018: 2325 responses * 2016: 2420 responses
- Scarbutt 7y agoBecause with modern Javascript you get most of the niceties of Clojure (immerjs for immmutability, lodash for data processing, babel for macros) without the disadvantages (no job market, no ecosystem). The debuggers in JS are so good that you don't need the Clojure repl. JS under v8 is also faster at raw processing(single thread but there are also workers now) unless you write Java with parenthesis, which at that point, you are not writing clojure anymore. OTOH, Rich Hickey has influenced(in good way) a generation of programmers and doesn't get credited enough.
- Zelphyr 7y agoI've been a Javascript user and fan for a long time. I've used it since it was in beta at Netscape. But one of the disadvantages that needs mention about Javascript is productivity. I have been hands-down more productive in Clojure than I ever was in Javascript.
- RussianCow 7y ago> no ecosystem Aside from the entire Java ecosystem? I know using a Java library from Clojure isn't exactly plug-and-play, but that's a bit dismissive. Java has way more code written in it than JavaScript for most things.
- lkschubert8 7y agoAnd for that matter the whole js ecosystem too. Clojurescript runs wherever javascript does.
- ithrow 7y agoTrue, with time you get good and fast at doing interop, but I can see newcomers getting frustrated with the chore and quitting prematurely because of that.
- hpoe 7y agoYour right on those disadvantages instead in the js world you just have to deal with a codebase that was largely developed using the SOCP methodology (StackOverflow Copy Paste) from every "full stack developer" that had a really nice certificate from a 6 week bootcamp.
- bgorman 7y agoFor what benchmarks are you seeing single threaded JavaScript outperform Clojure on the JVM?
- dgb23 7y agoFunctional libraries in JS including the ones you mentioned add friction (syntax, dependencies etc.), performance issues and mental overhead. Clojure/Script is designed to be almost completely functional. The code you write is cleaner, more concise and performant almost by default. You also get one syntax to rule the whole web frontend system (js, css, html). For me the reasons for not using it as a primary replacement are: I get dizzy from interop; it is much more convenient to embed Clojurescript into JS than the other way around. And secondly and more importantly I cannot use it in collaboration.
- emmanueloga_ 7y agoDebuggers are not a replacement for REPLs. The magic of the repl is to be able to recompile and reload exactly one function or form, for instance. Even if it is really fast most JavaScript setups require recompiling a whole file and likely reloading the whole page to test. Clojure also has debuggers: you can debug from either Cider or Cursive, for instance. I'm not that familiar with debugging outside of those two though.
- girvo 7y ago> most JavaScript setups require recompiling a whole file and likely reloading the whole page to test With most setups nowadays (create-react-app/Webpack, Parcel, etc.) and "hot-module reloading" that's no longer really the case... ...but that doesn't take away from your point, because it can have some truly odd effects on the debugger haha
- iLemming 7y ago> Debuggers are not a replacement for REPLs. Nothing is a replacement for a good, "true" REPL. Being able to evaluate any [sub]expression, without any kind of ceremony, anytime, from anywhere in your code is incredibly liberating. Who never used Lisp seriously, would never understand how amazing that workflow is. I think REPL is the main reason why we still have Lisp dialects. After over six decades Lisp is still alive and thriving.
- emmanueloga_ 7y agoTrue! For a long time I was looking for the mythical "livecoding" setup, thinking some experimental programming language was needed or something, when all the while Clojure was there, just waiting for me :-) In that way I feel Clojure's defaults to immutability go a step beyond what's offered in most Lisp's setups. Not everything "just works" though, thought is still needed in order to have certain things be easily reloadable. I'm talking things like using "defonce" forms and having a setup like described here [1]. I'm still exploring this space but I think the gist of it is to create a direct acyclic graph of dependencies, so you can start and stop exactly what you need, not unlike what build systems do. 1: https://lambdaisland.com/blog/2018-02-09-reloading-woes https://lambdaisland.com/blog/2018-02-09-reloading-woes
- iLemming 7y agoYou're talking like everyone abhorred Javascript before, and since it has gotten a few "modern" features, everyone (including many Clojuristas) rushed back to it. "Niceties of Clojure" you're talking about have slowly started appearing in other languages as well, not only JS. However, those languages are still missing key ingredients that make Clojure such a nice tool. Javascript is still a very difficult language to work with. Arguably, it is even hard to rate the language as a production-ready PL. The hidden cost associated with building, maintaining, and scaling JS applications is immense. There are so many inconsistencies and oddities in the language - it is not even cute or funny anymore to talk about WATs or "bad parts" of it. It gives you a false sense of simplicity, it feels like an easy language to start writing apps with, but God, very soon, you realize how awful things are (in comparison). Clojure(script), on the other hand, is so much more practical. It only looks more difficult, but given enough patience, it brings you stability, consistency, predictability, and, most important - the incredible joy of building working software. Notably, the majority of Clojurists are seasoned, experienced, tired, grumpy software developers. After trying different options they've finally found something that more or less makes sense. People mistakenly characterize that as a "Stockholm syndrome." Which I assure you is not. I personally use Clojure because it simply makes sense. Once it stops making sense, I will move onto something else. Who knows, maybe Javascript will evolve into something better then. But I can honestly say: "Javascript today does not make more sense." It is not a mere opinion of someone with a cursory knowledge of JS, I've used it (and many other languages that transpile/compile into it) for many, many years.
- mercer 7y agoWhile my initial reaction would be in the vein of "it's not THAT bad" I just want to say that my experience is very similar. I have a kind nostalgia for JS because it was my first foray into 'proper' programming (alongside PHP), and I quite like TypeScript. I'm comfortable enough with JS that I can open the dev tools, write a moderately complex chunk of code, and save it as a bookmarklet or private chrome plugin. I'm a JS native. But good lord do I feel so much better working in Clojure or, day to day, Elixir. There's no way I can comare them to JS and argue for the latter, even with the many improvements since the document.write() days.
- iLemming 7y ago> no ecosystem Today it is possible to run Clojure on: JVM, JS, BEAM, .NET CLR, Common Lisp runtimes; Have interop with Python and R. There are Clojure-like Lisp dialects that can compile to Lua and C. > you don't need the Clojure repl If you never have experienced the joy of using "true" REPL, you will never understand the immense value of it. Non-lispy languages, sadly have no "true" REPLs.
- fiddlerwoaroof 7y agoJavaScript could have one: see the indium plugin for emacs/chrome. The issue in js is that webpack and related build tooling does a really good job of making a repl impossible.
- iLemming 7y ago> JavaScript could have one No, it is still would be very crippled imitation of REPL, merely interactive environment. For a language to have a fully-functional REPL, it is required to have at least some homoiconicity, which JS is not. Let me demonstrate: ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('root') ); Can you evaluate that in JS REPL? Can you evaluate any part of it? Now, let's naively "convert" that into Clojurescript: (ReactDOM.render [:h1 "Hello, world!"] (document.getElementById "root")) You can evaluate every single part of it. You can evaluate "Hello, world!" string; [:h1 ...] vector; document.getElementById function, all these are valid Clojure expressions. In addition to that - Clojure example is so much easier to modify and change. With just a few keystrokes, you can do a lot. That's basically the workflow - in Clojure, you bootstrap an app with some small, core dependencies, then start a REPL, connect to it and keep modifying your app while running it. That is what gives so much praised productivity boost. It doesn't matter how fast your compiler is (in other languages) - "save & recompile" workflow never going to be as good as working with a "true" REPL.
- goatlover 7y agoSo the Lisp/Smalltalk approach to organically growing an app.
- didibus 7y agoI think you're taking a tunnel vision view of the language. A lot of languages have a lot of features, but Clojure has just the right set of features all harmonized perfectly together, and almost no bad ones. So it's about how it all comes together. The secret to this comes down to the Clojure mindset. And where I agree with you is your last statement, Rich Hickey helped push this mindset to other languages, and I'm seeing some of it slowly ramp up in other languages as well. Which is great, but it never comes together as nicely, and who knows where it's going as well.
- deleted 7y ago[deleted]
- Zelphyr 7y agoThere was something that was said about an old language that I've always enjoyed, REBOL, which in effect is that new programmers adapt to it very quickly but seasoned programmers often have trouble unlearning how they did things in languages they're more familiar with (usually descendants of C). I feel the same applies to Clojure and Lisps in general. So one reason why the respondents haven't increased much is because its not attracting enough new developers and seasoned developers are giving up too early. Which is too bad because, sure, getting over that initial hump can be frustrating at times but, boy is it worth it! Spending only a few months with Clojure has already made me a much better programmer in the other languages I use.
- otoburb 7y ago>>There was something that was said about an old language that I've always enjoyed, REBOL [...] A few of them went off and were so inspired by REBOL that they created Red[1]. [1] https://www.red-lang.org/p/about.html https://www.red-lang.org/p/about.html
- sharms 7y agoThere is also bias with respect to survey fatigue. Many of us still use Clojure, but the survey has been running for 10 years, so we are just cranking away, building systems and letting others fill out the survey.
- darksaints 7y agoThe numbers reflect my anecdotal observations of its usage. I started playing with it in 2014, while working at Amazon. There were tons of repos in Amazon's source control system, and it seemed to be growing fast. By 2016, most of them were effectively zombie services, or dead repos that had been replaced...mostly by java, with a smattering of kotlin and scala. There were maybe one or two teams still using it, but it was very much maintenance mode stuff.
- didibus 7y agoThis reminds me of this podcast: https://corecursive.com/david-heinemeier-hansson-software-contrarian-transcript/ https://corecursive.com/david-heinemeier-hansson-software-co... In it, the creator of Rails says: > it doesn’t have to be a million person movement for it to be a place where you can live and breathe and work. Um, I mean, I created. Base camp when Ruby had nothing, right? In terms of the tooling that I wanted and I needed to create web applications. I just created all that stuff for myself. By hand. I mean, it’s totally doable And that's how I feel about my choice of using Clojure.
- mercer 7y agoI have the same feeling, with Elixir as my first choice and Clojure as the mistress, so to speak. It's weird to describe it in these terms, but finding both made me feel like finding a home 'professionally'. I'll happily move to other languages if it's necessary and I keep an eye on how things develop, but I've committed to both Elixir and Clojure when it comes to getting good at something. Because both made me enjoy programming again!
- yogthos 7y agoI don't really see anything worrisome about that actually. This indicates that there is a stable community around the language, and while it would be nice for Clojure community to keep growing, it's very much sustainable at this point. It's also worth noting that responses are indicating that companies using Clojure are getting larger, and more people are using it professionally. This likely indicates that many Clojure startups have successfully grown into larger companies at this point. This is also reflected by efforts like Clojurists Together where companies are funding open source projects that are seen to be strategic for the community. So, overall I don't really see anything to be concerned about here. Clojure is a niche technology, but the community around it is very vibrant even if it's not growing especially fast.
- lkrubner 7y agoEDN is a brilliant literal for data, and since it offers more types than JSON, I would love to see it catch on in the places that now use JSON, especially in APIs. JavaScript has a complicated early history and even though one can use objects as a key value map, it’s not quite a map, in JavaScript. EDN does have the advantage of being a clean implementation of its idea. On a different topic, I’ve read that almost 50% of computer programming work is just building database views and providing GUIs so non-technical people can interact with databases. Making this work easy used to be a major goal of multiple corporate products. One reason VisualBasic had such a devoted following is that it made it so damn easy for novices to build a GUI for a database. In recent years the industry has moved towards HTML as the default way to build an interface for anything on a network, but HTML continues to lag when it comes to forms. You have to use a mountain of JavaScript to get the form functionality of VisualBasic. We’ve actually gone backwards on ease of creating database GUIs. Yes, in theory you can use something like React to build forms, but the dev using VisualBasic would be done with the project while you’re still waiting for npm to finish downloading your dependencies. And React requires more skill. VisualBasic had a wonderfully gentle learning curve. Likewise, Ruby On Rails (and other frameworks including Symfony and Django) have scaffolding that allows the fast construction of HTML forms, but, again, HTML is a limited method of building forms. I’d love to see Clojure succeed in this space, building corporate GUIs for databases. How to do that? Is a new GUI technology needed? Towards that end I’d love to see EDN used as a config language to define a scaffold for forms. There are elements of Swing that worked well and could be rescued from the larger wreckage of Java GUIs. And JavaFX represents a huge “road not taken” for the whole industry. The tech industry has had eras when it focused on opening the door to beginners. Those eras gave us HyperCard and Flash and VisualBasic. Right now the industry seems to be undergoing an episode of gatekeeping. We are requiring beginners to learn React, which is a big eco-system, and also stuff like Docker, which is tough for beginners. The point of making so much tech mandatory for even simple projects inevitably keeps some people from discovering the joy of programming. Clojure is the most fun language that I ever worked with, and it’s conceptually simple and it has EDN as a data literal language, all of which is a kindness for beginners. If it also had a simple method for building GUIs I believe it could help lead the industry into the next era when we again focus on making programming accessible for beginners.
- 7y ago
- gdsdfe 7y agoSome people say that their organization have 100+ people using clojure? Where?
- puredanger 7y agoNubank in Brazil has 500+ Clojure developers.
- gdsdfe 7y agoOh woaw!
- rapfaria 7y agoNubank, brazilian fintech.
- lkschubert8 7y agoI'm pretty sure it sees a fair amount of use at Walmart labs.
- d4mi3n 7y agoThe company I currently work at, FundingCircle, hosts the SF Clojure meetup and uses Clojure for a number of accounting systems. I’m not a huge fan of the language myself, but it does have it’s strengths.
- bschwindHN 7y ago
- distantaidenn 7y agoFormer Ruby guy reporting in. Started using clojure a few years back, but have been serious about it recently. I can't explain how pleasant the language is. Everything just makes sense, and once you get the tooling sorted (which is admittedly a bit convoluted), it such a beautiful environment. I've always been an emacs user, so clojure was a match. Emacs + cider for repl-based development has been an amazing productivity boost. I wanna shout from the rafters and tell everyone that this is how it should be done! I don't even want to imagine working in another environment anymore. The Lisp enlightenment is real, in that I started to see code differently -- more in the sense of homoiconicity. I realized I began to lose the distinction between code and data. Everything just merged. The clouds didn't part nor did I ascend to a higher level of being as promised -- but it was definitely a "whoa" moment. Enough of my blubbering, just wanna say keep up the good work! The language has brought back the fun of programming for me.
- andykx 7y agoI love Clojure, but I felt like 90% of the time it took me to “learn” Clojure was spent actually learning how to use emacs and working with a REPL. Once you get it down, it’s easy to be super productive, though.
- simongray 7y agoI tried learning emacs when learning Clojure, but found IntelliJ with the Cursive plugin to be a much superior experience (the static analysis is awesome). Been writing Clojure for 3 years now (2 years professionally) and I still prefer Cursive to the alternatives, e.g. Atom, Vscode + Calva, emacs. I would say that most of my colleagues with their custom emacs setups still don't have as a good of a development environment as the vanilla experience in Cursive. I also use parinfer (https://shaunlebron.github.io/parinfer/ https://shaunlebron.github.io/parinfer/) rather than paredit, which makes editing Clojure a bit like editing Python. Rather than memorising commands for structural editing, you instead adjust the whitespace using tab/space/delete and the parens reorder themselves accordingly. You can still use paredit commands while having parinfer enabled, but I rarely have a need to.
- gdsdfe 7y agoAny clojure shops in Montreal? Or Canada in general?
- rfrey 7y agoI think yogthos (author of Web Development in Clojure (book) and Luminus (web framework) is in Toronto and leads a gang of clojurists.
- lvh 7y agoIt's really unfortunate that the Clojurians Slack, being free, lacks good history. So much knowledge is disappearing, or at least becoming inaccessible (I'm sure someone has logs, probably via alternative clients or bots). Hard to move a community though.
- emmanueloga_ 7y agoA lot of ppl is active on https://clojureverse.org/ https://clojureverse.org/ though, but sure, it would be nice to have a permanent log for clojurians too. Do you have any idea what it takes for Slack to record the history and make it available? Is is very expensive? I know they charge individual users for the service of seeing far back into the past, not sure if they make that free for any particular communities.
- lvh 7y agoSlack's official pricing starts at $6.67 per seat per month, and Clojurians is a very big Slack. Sometimes they comp slacks, but Clojurians is apparently not important enough for that and/or Slack is big enough now they don't have to care :)
- dantiberian 7y ago> I'm sure someone has logs Yep Arne Brasseur runs https://clojurians-log.clojureverse.org/ https://clojurians-log.clojureverse.org/, though integrated logs would be better of course.
- comma_at 7y agoThe clojurians zulip chat[1] offers a free, full-text-searchable archive of slack. Also, IMHO it's much better than slack for chatting. If only everyone switched! [1] https://clojurians.zulipchat.com/ https://clojurians.zulipchat.com/
- pepper_sauce 7y agoIt's probably me but I can never seem to get Zulipchat to work for basic things like pulling up the history of #jobs.
- _bxg1 7y agoI tried out Clojure for a personal project about a year ago, just to see. The tooling situation definitely needs some work. Compared to the batteries-included setup of Cargo or NPM, it felt pretty slapdash. The fact that Leiningen is both the go-to and unofficial was a tad bewildering. Once I got set up, the development experience in VSCode was also quite underwhelming. I've never liked CLI editors and I didn't want to shell out for IntelliJ, so it was my best option, but it didn't offer much beyond indentation and inline eval (the latter was cool, but the lack of basics like autocomplete outweighed it). These factors obviously aren't as relevant at a company that already has a standard way of doing things, and maybe the situation has improved since I tried, but it really put a damper on the "hit the ground running" experience which is important for gaining initial traction with developers. All of that said, I can see the language being really pleasant to use in the right context. Most of my hobby projects involve GUIs and/or graphics, so I haven't done any more Clojure since. If that weren't the case maybe I would've put in the extra time to really figure out a good environment for it.
- tekacs 7y agoA few of these things may differ from when you tried Clojure out last: > The fact that Leiningen is both the go-to and unofficial was a tad bewildering. Clojure now has an official, built-in CLI that mostly supersedes Leiningen. You can just install Clojure itself, create a 'deps.edn' (which can be as simple as '{}') and get going at a REPL by running 'clojure' or 'clj'. Packages are auto-installed - in some ways I find it even easier than node, where npm is a separate tool/install sometimes. :) > Once I got set up, the development experience in VSCode was also quite underwhelming. There's a VSCode editor plugin called Calva[2] which has developed pretty thoroughly over the last year or so. Outside of IntelliJ/Cursive, it's starting to become one of the more feature-complete systems and it has plenty of features that you'd expect. [1]: https://clojure.org/guides/deps_and_cli https://clojure.org/guides/deps_and_cli [2]: https://marketplace.visualstudio.com/items?itemName=betterthantomorrow.calva https://marketplace.visualstudio.com/items?itemName=betterth...
- _bxg1 7y agoI believe Calva is what I used, but it's entirely possible that it's gotten better since then
- keithasaurus 7y agoClojure is a decent language. I've worked with it a good deal in work. But I would take any functional language with types over it. Some thoughts: - its dynamic-ness makes it not suited to large projects IMO. - The currently-accepted attempt at a non-type-system-type-system 'spec' is not well thought out. - Biggest wins I think are immutability by default, homoiconicity, and "simplicity" - The repl is fine but can be a crutch -- see startup time - Clojure still hasn't really found a niche, and I'm not sure I would ever reach for it first unless I was integrating with other clojure projects.
- tekacs 7y ago> The currently-accepted attempt at a non-type-system-type-system 'spec' is not well thought out. This is quite possibly true (I certainly have my complaints with it), but I'd love to hear more about what you're getting at when you say this.
- keithasaurus 7y agoWhen the canonical example of an fdef takes significantly more code than the function itself, I think you have to re-evaluate your approach: https://clojure.org/guides/spec#_specing_functions https://clojure.org/guides/spec#_specing_functions
- tekacs 7y agoHm the /amount/ of syntax isn't something I think about I guess, this being a Lisp. I think they've taken the approach of making the system thorough and capable and this being a Lisp, we users can skin it with any level of shorthand that we please. Datomic (the database from Cognitect) has a similar approach with its schema, which is quite verbose, but many folks that I know tend to simply write a function which spits out the schema, since it's 'just data'. I tend to use Ghostwheel [1], but there's also spec-tools [2] and others. [1]: https://github.com/gnl/ghostwheel https://github.com/gnl/ghostwheel [2]: https://github.com/metosin/spec-tools https://github.com/metosin/spec-tools
- peferron 7y agoI started writing Clojure professionally last year. It's an incredibly relaxing experience. I attribute that to most of the code being pure functions that operate on plain data types (maps, lists), combined with the delightful experience of structural editing. My largest issue is spec.alpha, which is far from perfect. spec-alpha2 should fix many of my complaints, so I'm looking forward to its first release.
- didibus 7y agoClojure is hands down my favorite programming language till date, and I've used a handful at this point. Got professional experience with C++, C#, ActionScript 3, Java, JavaScript, Scala and Clojure. And I've toyed with Python, Kotlin, Rust, Haskell and Elixir a fair bit. Still, I'd say Clojure is my top. Its just well thought out, to the point, and so fun. Wish the core team many more years of work, and I hope the ecosystem stays afloat, and prospers. Also, kudos to never breaking my code! That quality is so underappreciated.
- jakebasile 7y agoLearning and switching to Clojure as my primary language is the best decision I've made in my career (which is relatively short at 10 years, I'll admit). It's probably somewhat decreased my earnings compared to trendier languages, and I worry that the market for Clojure developers is small and fragile which might bite me in the future... but I've never been happier doing my job than I am since I've started working with Clojure! - The language itself is beautiful to read and write, minus a few warts that take some getting used to here and there. - The jobs that are there tend to be smaller teams at larger companies which is my preferred type of setup. - The community is mostly self-selected and tends to be fairly friendly. - Working with the REPL feels like having a conversation with your computer, teaching it how to do what you want it to do vs fighting with a compiler. - I like the "batteries not included" ethos - everything is a library and I can pick and choose what I like. - Working on the JVM means I get access to untold thousands of Maven packages plus the JVM itself which is a very solid system.
- mollusk 7y ago> It's probably somewhat decreased my earnings compared to trendier languages Odd, considering that Clojure is the best paid language according to the Stack Overflow Developer Survey: https://insights.stackoverflow.com/survey/2019#work-_-salary-and-experience-by-language https://insights.stackoverflow.com/survey/2019#work-_-salary... https://insights.stackoverflow.com/survey/2018#work-_-salary-and-experience-by-language https://insights.stackoverflow.com/survey/2018#work-_-salary...
- why_only_15 7y agoThat effect is probably much more so about where the language is used (US vs elsewhere primarily) rather than how much people get paid for that language in a particular place.
- mercer 7y agoI find that at least in The Netherlands the vast majority of job offerings are quite conservative in their 'stack'. It's nice that they are now okay with React rather than only Angular, or Python instead of just PHP, but finding a Clojure or Elixir shop is still much like finding a unicorn. And my impression is that this is true in most of the EU.
- namelosw 7y agoI'm a Web developer the most of the time and I tried to jump back and forth between languages and communities in my spare time to check out if there are some ideas that could interest me. I found dynamic language communities are most inspiring to me, just like the old Ruby community. I found the Clojure community is really fun. I tried Fulcro/Pathom, it's like GraphQL but much more flexible. And also there are open-source alternatives to Datomic like DataScript in the browser, and Crux is also very promising. I always wonder what if we bring some Prolog/Datalog to day to day programming, and those are the ideas well implemented and polished. Another interesting community I found is Elixir, Phoenix Liveview is very fast to not only prototyping but also achieve high performance. As a comparison, most statically typed languages community spent most of their time climbing the lambda cube, or in another word, struggle with correctness and expressiveness. It's not necessarily a bad thing - on the contrary, it's applausable. But I found most of the statically typed languages are focusing on those similar things rather than exploring new directions with would be more weird and fun.
- dmitriid 7y agoThis survey reinforces a positive feedback loop. "Clojure is great because Clojure is great". For a "state of X" survey it would be nice to see questions like "what are the biggest hurdles, problems, issues". For example, State of JS drills down to language features, syntax, overall happiness, frameworks etc. E.g. the author of Rum and Datascript re-wrote his ICFPC submission from Clojure to Rust and gained 17x speed increase [1]. This could be something to poll. [1] https://mobile.twitter.com/nikitonsky/status/1148504609213833216?lang=en https://mobile.twitter.com/nikitonsky/status/114850460921383...
- lemming 7y agoThere actually is a question in the survey, "What has been the biggest obstacle to using Clojure?", but it's not highlighted in the blog post.
- rubyn00bie 7y agoIt's hard to want to choose Clojure when it's hard to know where to start. I saw "CojureScript" followed by "ColjureCLR" and just blacked out... I'd like to learn a lisp and I hear clojure is the jam, but seeing that ecosystem exists, while flexible, makes it seem like 90% of it will be learning the tooling and not the language... It just makes me think "hmmm. I need the JVM, might as well use Java... at least it'll be predicatable straightforward, and EXTREMELY well documented, in it's convoluted-ness[1]" Can someone please sell me, or assure me, otherwise? [1] Which is also high... I can barely get a JVM project running these days with the plethora highly foreign of build tools, IDE dependencies/configurations, and language settings. Maybe that's just par for the course in 2020 on the JVM, with great power comes great complexit?
- emmanueloga_ 7y agoThere are all sorts of bells and whistles you can choose when it comes to Clojure, but I would recommend you focus in one thing for a start, just plain Clojure with the JVM. Download a Clojure jar [0], the following command opens the REPL: $ java -jar clojure-1.10.1.jar ... you can also run the file you are editing: $ java -jar clojure-1.10.1.jar file.clj ... that's it! You can go a long way just like that, the start up time of running scripts is not that bad. Gradual improvements: * Perhaps install a clojure package [1] instead of using the jar. The jar is nice to understand the main Clojure compiler is at its core just that, a Java program... but the package installed with brew or apt will probably (depending on your OS and how up to date the packages are) also give you a global `clojure` or `clj` command that you will see around in tutorials. Just makes it easier to follow the tutorials! * Use rebel-readline [2]. Just follow the readme!. It gives you a nice coloured command line REPL with all sorts of cool features, but you don't need to make use of all of them at once. Take your time! * Choose an editor with good integrations. Obvious choices: VSCode+Calva extension, IntelliJ+Cursive, or Emacs+Cider. The main thing about having a good integration is the instantaneous feedback of sending chunks of code to the REPL, although for a slow start you can do the same just copying and pasting code from the editor to the REPL! About books: I read 3 or 4 different ones... most books I read were pretty good, some of them are available online for free! Confidence comes from writing lots of code mostly, though, not just reading. I'm not proficient enough yet that I remember the APIs yet so books help to gimme a cohesive roadmap of things to learn. Suggested little "project": I also found this library [3] that is cool to play a bit with random things to produce some graphical output. It is a wrapper around Processing. Good luck! Caveat: there are many ways to do teh same thing. This comes from a focus on libraries over frameworks. Also, the whole JVM API is available to you so for a lot of things you are supposed to just use the Java APIs. Don't bother about wrappers or clojars for a start, just call Java from your clojure. Is fast, fun and easy! :-) Pick one way of doing things and do it for a while... even if it doesn't give you the "fullest of the performance" for any given task, it will be an OK vehicle for you to learn and get familiar with the ecosystem. Classical example: http servers. 0: https://repo1.maven.org/maven2/org/clojure/clojure/1.10.1/ https://repo1.maven.org/maven2/org/clojure/clojure/1.10.1/ 1: https://clojure.org/guides/getting_started https://clojure.org/guides/getting_started 2: https://github.com/bhauman/rebel-readline https://github.com/bhauman/rebel-readline 3: http://quil.info/ http://quil.info/
- zerr 7y agoIsn't Clojure an extremely unpopular language (outside HN)? I mean, it's not even in the top 50 in TIOBE index.
- puredanger 7y agoTIOBE is garbage. It is primarily based on google search hits. Red Monk's ratings are based on github and stackoverflow (which Clojurists actually don't use much) and typically has Clojure around 25, which I think it is a defensible ranking. Best estimates of devs using Clojure are 20k-50k (based on multiple sources, some public, some private).
- ilikehurdles 7y agoWow, TIOBE has Object Pascal, Assembly, D, and PERL in the top 20. Also, MatLab over Objective-C. Meanwhile, Typescript is at 46, well below Julia, COBOL, Ada, and Rust (don't get me wrong, great language, but I'd be surprised if it was more widely adopted than Typescript). Its method for ranking seems problematic.
- ChrisRackauckas 7y agoIt has been shown that TIOBE tends to not be very robust. If you change the metric from searches of "X programming" to "X language", you can can swing the results of many languages up or down by 20 spots. https://juliacomputing.com/blog/2019/09/16/tiobe-blog.html https://juliacomputing.com/blog/2019/09/16/tiobe-blog.html
- iLemming 7y ago> Isn't Clojure an extremely unpopular language Are Haskell, Rust, F#, Elixir, OCaml, ReasonML, Elm, Purescript, Racket extremely unpopular? Clojure today has more podcasts, books, conferences, jobs than any of these languages. But sure, it is a dying programming language. Just like Haskell has been "dying" for 30 years now and OCaml "died" multiple times in the past 24. There are good reasons why they are still being used and why people get excited about them.
- d_t_w 7y agoI studied Java at University and then worked with it for 15 years through various companies, finance mostly. I like the language but the opportunities and my use of it felt very stale in the end. I switched to Clojure a decade ago, around the time I started working with distributed systems. The best move I have ever made. I love working with Clojure and I find a large benefit in my understanding of the JVM. Recently I've built a front end (Clojurescript) and some lambda services (Clojurescript on Node) to complement my startup (Clojure, https://operatr.io https://operatr.io - its a tool for Kafka). There's an advantage to using a single language/mindset through your entire stack. I spoke at the last Conj (https://www.youtube.com/watch?v=MnvtPzEH-d8 https://www.youtube.com/watch?v=MnvtPzEH-d8) about my experience, broadly speaking my top reason for loving Clojure is that I am much more effective in delivery today than I was a decade ago. I simply don't believe I could have built Operatr in Java/Javascript, YMMV. In technical terms Clojure's data-orientation coupled with host-interop is much more important to me than it being a functional language or emacs/vim etc. Turns out I still use Intellij (with the Cursive plugin) and my work setup has changed very little. It's a great tool, if you haven't tried it you should have a play - particularly if you work with Java.
- arc-in-space 7y ago>I love working with Clojure and I find a large benefit in my understanding of the JVM. Reliance on the Java ecosystem has been the biggest issue for me in trying to use Clojure. I love many things about the language, but I have zero experience with Java or the JVM. A number of my attempts at using Clojure for a project have been hindered by my lack of understanding of the underlying runtime and the tools. In a way, it almost feels like Clojure simply isn't for me. On the other hand, I've had much more luck with ClojureScript, which I'll happily use over JS any day, though the build system still occasionally mystifies me.
- kimi 7y agoThe only reliance you have is on libraries that are often battle tested, well engineered, and cover any project space. Quite different from some other ecosystems I won't mention.... of course YMMV.
- pgt 7y agoFair warning to anyone picking up Clojure / ClojureScript: it can make you less productive by making your old tools insufferable. It's like taking an automatic 2.5L turbo Subaru w/aircon for a spin and then getting back into your 1.3L Toyota Tazz - daily driving won't be as fun again for a while. Lisp "ruined me" for a few years because after trying it I couldn't stand using anything that dit not have macros and Paredit. It's like the saying, "Beware of tasting freedom; it can make you psychologically unemployable." For example, dealing with the abomination that is JSX when I could just write a pure ClojureScript function that returned Hiccup data structures that gets rendered to HTML. And you get isomorphism for free (one codebase on client and server). I initially switched to Clojure for Datomic (the killer app for Clojure, IMO), but now I mainly write ClojureScript and use DataScript (datalog on the client) in every project.
- dgb23 7y agoDatomic really is a killer app in terms of its features, but it doesn’t seem to be targeted at solo/small teams with its pricing and licensing model. Datascript looks interesting. I guess you get disk persistence with event sourcing?
- ithkuil 7y agoyou can give https://github.com/tonsky/datascript https://github.com/tonsky/datascript and https://github.com/replikativ/datahike https://github.com/replikativ/datahike a spin
- lkschubert8 7y agoIf you are willing to go with AWS the cloud deployment model's pricing is much more palatable.
- nickik 7y agoYou can use Datomic for free for up to 2 peers right? That should be enough for a fair number of solo projects.
- ilikehurdles 7y agoJUXT's Crux database[1] is worth looking at. It's open source and free. It is also an immutable, time-traveling, event-sourced database with a datalog query engine. Datomic is still more fully featured in a lot of ways, but Crux's concept of bitemporality is pretty interesting and something I've been wanting to explore deeper. [1]: https://opencrux.com/ https://opencrux.com/
- gherkinnn 7y agoThe question for me is where do I find remote clojure jobs? Playing with it is all fine and all. But how about making it a full-time thing? Most job boards have next to no entries and clojure boards are mostly US only.
- gdsdfe 7y agoWhere do people find Clojure jobs??
- ivarv 7y agoThe #jobs channel in Clojurians slack ( http://clojurians.net/ http://clojurians.net/ ) and the sites on this list https://purelyfunctional.tv/guide/clojure-jobs-resource https://purelyfunctional.tv/guide/clojure-jobs-resource are great starting points.
- gdsdfe 7y agothanks!
- ilikehurdles 7y agoI've also found them on LinkedIn and angel.co in the past.
- int_19h 7y agoIs Clojure ever going to treat Windows as a first-class platform? https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Windows https://github.com/clojure/tools.deps.alpha/wiki/clj-on-Wind... "Currently, clj on Windows is in an alpha state."
- Volundr 7y agoLeiningen is well supported on Windows, I can't speak for boot. Clojure has only had built in command-line tooling since 1.9, and the whole thing is still considered alpha.
- qu4ku 7y agoClean Code, Episode 0. The Last Programming Language by Uncle Bob (Robert C. Martin) — worth watching for those who need reasons. https://www.youtube.com/watch?v=Z5p5r9FWrpU https://www.youtube.com/watch?v=Z5p5r9FWrpU