34 ms·
Is Clojure dying, and what has Ruby got to do with it?
- graphememes 10y agoI'm still left with the question of "why all the parenthesis?" While it might sound silly and reductionist, it is ostensibly the single hurdle I could never overcome when it came to lisp languages. The majority resides with the fact that it could work without them, so I see it as an ancient artifact.
- bitwize 10y agoUse Emacs and optionally avail yourself of a structural editing mode like paredit. Then, at a minimum, the editor will help you match parens and you barely even have to think about them. Seriously, get over your Emacs hate (if you have any) because Emacs is to Lisp family languages what IntelliJ is to Java.
- graphememes 10y agoI don't hate emacs, I have however invested a lot more time and work into vim than emacs so that is why I do not use it.
- indigo0086 10y agoI use spacemacs. before I had to have a vim plugin in every ide. But seeing the incredible power of emacs and the ease of integrating vim with it (pretty much a "pick your style" at the beginning of spacemacs installation) I'll never go back.
- smnplk 10y agothe only reason i didn't like spacemacs was the 3 keystroke combos for everything that I do with 2 strokes in vim.
- throwaway7645 10y agoYea...I like the theory of emacs, but the reality of vim usage.
- flavio81 10y agoSLIME (for Emacs) is wonderful. I like Emacs, what i don't like is the key combinations, which are horrible. Fortunately, you can redefine them. Emacs can be customized at will, and using Lisp :)
- peterhadlaw 10y agoThe parentheses end up serving as a tool to speed up the development process with tool like paredit. You end up manipulating the "tree" of code vs the characters on a line. Check this out: https://www.youtube.com/watch?v=D6h5dFyyUX0 https://www.youtube.com/watch?v=D6h5dFyyUX0
- bryanlarsen 10y agoparedit doesn't require parentheses to do it's magic.
- bryanlarsen 10y agoThere seems to be a very nice solution to the parenthesis problem: https://sourceforge.net/p/readable/wiki/Home/ https://sourceforge.net/p/readable/wiki/Home/ I have no idea why it hasn't caught on. As far as I'm aware, there's no Clojure implementation. Lispers like their parentheses.
- protomyth 10y agoPerhaps because significant white space (e.g. Python) has quite a lot of detractors of its own.
- weaksauce 10y agoI absolutely cannot stand significant whitespace... it is a step back in almost every area of usability.
- throwaway7645 10y agoI love both Lisp & Python. I'm not sure about large projects, but to me, nothing is easier to read than Python and a lot of people agree. It is so strict and authoritarian that nearly everyone ends up writing similar code. Good for sharing scripts on my team. If I write Perl, only I can understand it...and even that is temporary lol (I joke, but you get the point).
- cutler 10y agoIf you love Lisp & Python try Hy (hylang.org).
- goatlover 10y agoIn your opinion. For you it's a step back. For some of us it's very easy to read and write.
- weaksauce 10y agoI don't really get this line of thought... are curly braces really that hard to read and get in the way of things to you?
- dangerbird2 10y agoParentheses exist because it is the easiest way to represent the raw AST in text form. S-Expressions were originally an intermediate form for a more algol-like syntax[0], but became the primary form of representing Lisp because allowing the programmer to manipulate the AST is extremely useful, arguably what makes Lisp Lisp. There are homoiconic languages like Prolog and Julia that have more familiar syntax styles, but S-Expression Lisps are unmatched in making homiconicity readily apparent. Another reason Lisp programmers tolerate parentheses hell is that Lisp development has often paralleled that of emacs and emacs-like editors that make manipulating s-expressions extremely intuitive. [0] https://en.wikipedia.org/wiki/M-expression https://en.wikipedia.org/wiki/M-expression
- dragandj 10y agoIt took me an afternoon to get used to the prefix notation (not to parentheses; those are used even in python), and after that afternoon I would refuse to program without it. Makes the code way more regular.
- coolmitch 10y agoI'll plug Parinfer as the best tool I've found for removing the pain of editing s-expressions. It's done wonders for my own workflow, and there's almost nothing to learn before you can use it effectively (compare to Paredit which requires you to know quite a few shortcuts before becoming productive) I almost never have to think about the parentheses while editing, any more than I would braces in a c-like language. It's really freeing. It's also fully integrated into Cursive so there isn't even a setup step if you're using that already. https://shaunlebron.github.io/parinfer/ https://shaunlebron.github.io/parinfer/
- ledgerdev 10y agoI feel most syntax themes are designed for syntax based languages and make the parenthesis far too dark/prominent and it's visually overwhelming. If you dial back the color of parenthesis and brackets to a lighter grey, the experience is almost like writing python with parinfer.
- flavio81 10y agoFor Lisp, parentheses are a big plus. They allow the following advantages: TL;DR: Once you start programming in Lisp for long enough, you end up loving and embracing the parentheses. 0. They allow for an extremely simple syntax, which in turn allows the source code to easily manipulate source code. No simple syntax, no really easy way to write macros. And macros are one of the most essential keys to Lisp's power. You can argue that, without extremely simple syntax, a Lisp language is not possible. 1. Syntax, being so simple, is extremely easy to learn. Yesterday i explained Lisp's syntax to a friend, in 3 minutes. 2. No need to care for special operator precedence rules. The precedence of operators is obvious by looking at the code. 3. IDEs, like SLIME, can easily traverse the code in many powerful ways. Due to this syntax, the IDEs can "understand" expressions and expressions within expressions. This means that the IDE can 'understand' any part of your code, not just big constructs like functions, methods or classes. 4. IDEs will also easily complete the parentheses for you, and will warn you of a missing parenthesis. 5. It is also dead simple to understand which parenthesis closes which one. It can be done with most source code editors -- Even a simple program like Notepad++ can do it, Visual Studio Code can do it, etc. 6. Parentheses also enable IDEs to automatically apply "pretty" format to the code rather easily. 7. As anything, you get used to it. Many people, for example, think that, in Python, whitespace as a block delimiter is a bad idea, however I never had any problem with that, it was just fine. Unless you are using Windows Notepad to edit code...
- graphememes 10y agoThis is more an emotional response to me than it is functional or logical one since you can apply all of these points to any other language.
- iLemming 10y agoIt's not emotional, no. After just a few months of using Lisps it feels like parentheses bring some structure and order. In non-lispy languages things feel "all over the places" - there you do have to deal with punctuation - not just parens but: semicolons, dots, commas, brackets, curlies, indentation. Programming in a Lisp is like writing a prose. Your brain is occupied with ideas, you just need to type them down. You don't need to think about structure (until later), it's a flow - you're looking for right words (functions), you can immediately try them out in the REPL, pretty much like a writer would review usage of a word in a thesaurus or a dictionary. But to be fair I met a few people who claimed that even after months of using a Lisp, they just couldn't get the parentheses. I dunno, guess some people's brains maybe just not suited. You can call it dyslisplexia or whatever.
- falcolas 10y agoContrast, for a moment: var x = fib(a, b); with (let x (fib a b)) And count the delimiting symbols. I count 5 in the first example. In the second, I see 4. Let's try something a bit harder. function(a, b) { return a * b; }(6, 4); vs. ((fn (a b) (* a b) ) 6 4) 10 first, 8 second. Yes, "why all the [symbols]" indeed.
- deleted 10y ago[deleted]
- bshimmin 10y agoFor your second example, your JavaScript is wrong. Let's compare the ES2015 JavaScript: ((a, b) => a * b)(6, 4); ...against the Clojure: ((fn [a b] (* a b)) 6 4) Not a lot in it, really, is there?
- lilactown 10y agoIf we're golfing... (#(* %1 %2) 6 4)
- smnplk 10y agoAnd a bit shorter version... 24 ;)
- mrkgnao 10y agoI wonder, does #(* %1) do anything sensible?
- kbp 10y ago> I wonder, does #(* %1) do anything sensible? It's a 1-argument function, so applying it to 2 arguments would give an error. Minus the arity error, 1-argument * is an identity.
- latte 10y agoClojure's * can accept any number of arguments, including zero (returns 1 in this case), one (acts as identity function on numbers) or more than two (returns the product of all arguments). This helps to simplify arithmetic expressions in some cases (e. g. polynominals) and allows to calculate a sum or product of any sequence, including empty one, using (reduce * xs)
- daxfohl 10y agoGoing further, it seems like the whole category of alternative languages hit a peak about three years ago, and interest has been dwindling since. It's like coders got their fix of "new ways of thinking about code", and now have gone back to whatever they feel most productive in. Moreover, the buzziest alt languages now (Elixir, Go, Kotlin) seem to be much closer to existing mainstream languages than the buzzy ones of a couple years ago.
- TylerE 10y agoI think that's more an indication of _just how much the needle has been moved_. 5 years ago mainstream was something like PHP or Java 6.
- falcolas 10y agoErr, maybe 15 years ago, sure. 5 years ago it was the same applicants as today, only minus Go and Rust. Python and Ruby were strong in the dynamic region, Perl 6 was still an inside joke, C++ still dominated game development, Javascript was still the mainstay of web development, and so forth.
- throwaway7645 10y agoI don't think Rust's usage is large enough to fit into that category although it is growing and its followers are very devoted.
- smitherfield 10y agoGo was around and buzzy (closer to the peak, even) 5 years ago. Apologies if I've made you feel old!
- daxfohl 10y agoHa, I'm definitely old. And you're right, the peak in alt-languages was closer to five years ago. Then came alt-databases. Next I think is alt-transactions (blockchain).
- virtualwhys 10y agoClojure's not dying, but it's also not thriving[1]. I think it will continue on as a solid niche language for the foreseeable future, but it's highly unlikely that the language will grow by leaps and bounds barring some must-have innovation in the Clojure language and/or ecosystem that gets the tech world to take it more seriously. There are so many options these days that it's tough to stand out from the crowd. Clojurescript, while interesting, is a dime-a-dozen with Elm, Purescript, Scala.js, Typescript, etc. all on offer, and with static types to boot. Also, Lisp itself is a tough sell, mainstream adoption isn't in the cards without a major paradigm shift. [1] https://trends.google.com/trends/explore?q=%2Fm%2F0_lcrx4,%2Fm%2F091hdj,%2Fm%2F03yb8hb https://trends.google.com/trends/explore?q=%2Fm%2F0_lcrx4,%2...
- swannodette 10y agoI don't really have anything to say about your other points, but the only comparable compile-to-JS tech in your list to ClojureScript is Scala.js. The other options assume you don't see significant value in using the same programming idioms across client and server.
- dragonwriter 10y agoWhile not on the list above, there are certainly others like Opal (Ruby in js)
- nurettin 10y agoI've used Opal for client-side validation of a server-side game's rules. (player makes a move on the client, game rules are played out, just the move is sent to server and server plays the same move again using the same game class) That said, it wasn't a breeze to work with. The compiled object's properties were hard to access. I actually had to serialize it to json
- deleted 10y ago[deleted]
- virtualwhys 10y ago
- protomyth 10y agoI do wonder how much the purchase of Sun (Java) by Oracle and/or the slow down in Java advancement has affected those languages that a primarily hosted on the JVM.
- frou_dh 10y agoI always thought the Java tie-in was a double-edged sword. For some potential Clojure users, in addition to learning the language they were interested in, they'd also have to half-learn a language (and its tooling) that they probably weren't interested in. I guess in the US there is/was an assumption that everyone coming out of the computing education system is already experienced with Java.
- derefr 10y agoI feel like Clojure is more of a language that just happens to exist in the same package ecosystem as Java, and which offers a good syntax for fluently calling into the APIs those packages offer. Like Elixir with Erlang, or Rust with C. You don't really need to know Java to write Clojure, though you do need to know things about the JVM and about the particular (Java) types that the JVM's reflection and concurrency primitives are built on. Just like Elixir still requires you to understand BEAM and OTP primitives, or Rust still requires you to understand the "C Abstract Machine" and (usually) POSIX primitives. In at least the Clojure and Elixir cases, I don't think the runtime was chosen because anyone was expected to be familiar with the relevant abstract/virtual machine; they were chosen because BEAM and the JVM are just well-engineered VMs that have decades of research and bug-fixing and stress-testing put into them, and it's a "free win" for your language's production-readiness if you build on such a runtime. Interoperability with existing code in that ecosystem is also nice, but secondary; people using your language want to use your language, after all; if they wanted the best interoperability with Java, they'd just use Java. (In the Rust case, [zero-overhead] interoperability with C code really was the paramount concern; but still, that's interoperability with existing C code, not the expectation that anyone would want to "take advantage of C" by writing hybrid Rust/C projects. If you're using Rust, you probably want to be writing Rust, not C.)
- systems 10y agoclojure's killer app, datomic, is closed source in my opinion, this is a key reason, why clojure is not thriving i can't think of any (problem) domain, where clojure have a framework or library, than is significantly better than most other frameworks or libraries if you are not number 1 at anything, it is hard to thrive
- swannodette 10y agoI use Datomic everyday. While it's certainly a stunning piece of technology and you could pry it from my cold dead hands, I don't think it has that much bearing on the growth of the Clojure community.
- derefr 10y agoSure, but that's the point: if Datomic is "the best thing Clojure's got" as far as killer-apps go—and it's not really that important to the community—then Clojure doesn't really have a killer app. A killer app is something that looks like Rails does in Ruby, or Phoenix does in Elixir: a thing where 50%-or-more of the people learning the language are only learning it in the context of using that one framework, and so often get confused as to what's a feature of the language vs. a feature of the framework. Which is, y'know, an awful annoyance for the people who use the language for other things—but boy does it pull people in.
- t3soro 10y agoClojure, and lisp in general, tends to avoid the "framework" way of thinking prevalent among object-oriented languages. It's therefore no surprise that something like Rails hasn't taken off. There are, however, libraries and patterns which are very common, ring for example.
- derefr 10y agoI'm not sure that Clojure avoids it, per se; a framework isn't something you set out to build by saying "this shall be a framework." A framework is just a library, exposed directly as functions and data in a given runtime, that has enough internal structural complexity and "active" logic that the framework offers high-level abstractions that pre-compose its components into functional arrangements, rather than expecting you to DSL-glue them together yourself. Consider: OpenGL/DirectX are essentially "frameworks." They rely on you to specify the high-level (scenes) by calling the library APIs; the library does the medium-scale logic of managing the GPU; and then the library calls back to your code (shaders) to get the low-level details of textures and vertices specified to it. That's a framework! And there's really no way that it could be anything other than a framework. If Clojure doesn't have any "frameworks", that's not because Clojure does something to avoid making libraries into frameworks; it's more because nobody has built a library that inherently is a framework, specifically for Clojure.
- iammiles 10y agoI spent the better part of 2013 - 2015 learning and working with Clojure. I love the language and the feeling I got solving little problems like Project Euler or 4clojure. However, I could never quite transition to feeling productive making larger projects and found myself using reverting to Scala or JS instead.
- Grue3 10y agoIs Ruby supposed to be an example of "not dying" language? Because it has certainly passed its glory days as well. Also Common Lisp is better in every way ;) There's even a JVM implementation (ABCL) for people who like that sort of stuff.
- swannodette 10y agoI don't know but it seems to me Ruby is dying the same way anything else with 200,000+ questions on Stack Overflow is dying (i.e. it isn't).
- flavio81 10y agoTrue, Common Lisp is better in every way, but still Clojure has its uses (in my opinion, mainly when you need to interact with a lot of Java libraries and don't want to submit to the sadism of the Java language.) Also, the more Clojure users out there, the more people are potentially able to "jump" to the other Lisps like Racket, Arc, Scheme, and CL.
- throwaway7645 10y agoDoes anyone actually use Arc? Racket, Common Lisp, Clojure, Picolisp even yes. Arc was just used for this forum right and is based on Racket?
- mark_l_watson 10y agoI agree with you, Common Lisp does seem better and ABCL does well with Java interop (as does Clojure). While the community around Clojure is fantastically good, I don't like the language itself as much. Personally for my hacking pleasure, Haskell, Common Lisp, Chez Scheme (or other Schemes), and Ruby are all more fun for me to use.
- modularfurnitur 10y agoI think Clojurescript might be the thing. With advances in the Google Closure compiler, it's getting better and better. And the front end developer tools and libraries in Clojurescript are _the best_ out there. The holy grail for javascript exists in Clojurescript. Until then I'll keep making my Javascript env look like Clojurescript. With janky react devcards, Immutable.js, and react-redux.
- boubiyeah 10y agoWell, clojure is better designed than javascript, that's for sure. But the holy grail for me would absolutely need static typing.
- ledgerdev 10y agoYou should look into Clojure Spec. It's a very nice balance of trade-offs for helping developers build correct software. While it uses a different approach than static typing, it seems a more natural fit for dynamic languages. Plus it's sort of a toolkit to be used in many different ways.
- ledgerdev 10y agoAgreed. I suspect one current thing hurting adoption from the JS community is the very heavy JVM based tooling. With the Google Closure compiler now running on top of JS, there would seem to be a path for the CLJS(not clj) tooling to become more JS ecosystem friendly. For the JS developers out there, is this something that's of interest? Or is the existing tooling(lein) good enough? What would be your ideal tooling story?
- philbo 10y agoAs a JS programmer with some Clojure experience I can confirm that the JVM is absolutely the biggest turn-off for me personally. Lisp syntax, immutable data structures, laziness, all splendid. The build/runtime environment, not so much. Sounds like I should revisit CLJS based on your comment.
- rdtsc 10y ago> Elm, Elixir, JavaScript, seem to be better at prioritizing the humanistic aspect. Both in the affordances of the software (Elm’s famous error messages), and in person-to-person interactions. Can't stress that enough. I have observed Elixir community and I have to say Jose and others did an excellent job fostering a healthy, friendly and warm community. That is such an essential component. That combined with standing on a solid, reliable, battle proven platform (Erlang's BEAM VM) makes for a powerful combination. You see them interact and learn, and ask for help and you think as a new comer "Right on, I want to hang out with these people". Then you run some benchmarks, check out some docs, tutorial and think "Yeah I made the right choice". So my recommendation if you want to build programming language community - copy what Elixir did and it will be a good start. That means both community, outreach, documentation as well a technical foundation.
- eriknstr 10y agoI feel that Rich Hickey alone makes the Clojure community very healthy, friendly and warm. The JVM is solid, reliable and battle proven, is it not?
- stretchwithme 10y agoHe gave the Simplicity Matters talks at Railsconf (https://www.youtube.com/watch?v=rI8tNMsozo0 https://www.youtube.com/watch?v=rI8tNMsozo0) and opened my eyes to a lot of important issues. He's accessible yet challenging. It didn't make me want to do Clojure, but I definitely wanted to fully understand the message.
- Arcsech 10y agoRich Hickey is really, really smart and friendly enough, but he doesn't engage with the community nearly as much as Jose Valim or Chris McCord (Elixir and Phoenix devs) do.
- sanswork 10y agoJose and Chris really go above and beyond. Almost every elixir/phoenix question I see on stackoverflow has a really solid response from one of them with not just an answer but often insights into the why something works a specific way as well.
- jakebasile 10y agoI really hope it isn't dying since it's by far the most pleasant language I've ever worked in. Now that I've spent enough time on it I'd very much like to use it for the rest of my career. I suppose if it does die out there are other Lisps available despite the claim that Lisp is dead.
- mshenfield 10y agoUltimately a thoughtful read.
- ubercow 10y agoClojure's "killer feature" for me is the by-default persistent data structures. Are there any other functional languages out there with similar features? Lisp or otherwise.
- jbeja 10y agoAny mainstream functional language at this point. The data structures are not closed.
- runT1ME 10y agoScala has a collections library that heavily emphasizes immutable/persistent data sructures. You aren't forces to use them but it is idiomatic Scala to be "pure"/non mutating.
- lilactown 10y agoErlang/Elixir also is immutable & persistent by default.
- retrogradeorbit 10y agoIt is immutable and persistent, but not with the same performance characteristics. It lacks Bagwell's data structures that allow structural sharing. Take a 10 million item list in elixir and 'change' (return a new) the 5 millionth element. Time how long it takes. Do the same with clojure. Compare.
- ramchip 10y agoThat was true a few years ago, but not anymore: https://medium.com/@jlouis666/breaking-erlang-maps-1-31952b8729e6 https://medium.com/@jlouis666/breaking-erlang-maps-1-31952b8... (You would have to use a map though, the native lists are still plain old lists)
- deleted 10y ago[deleted]
- pmarreck 10y ago
- programminggeek 10y agoThis is odd. I find myself moving to Assembly nowadays.
- wand3r 10y agoThere will always be room in the market for trendy, abstracted languages like Assembly that provide simple syntax and garbage collection to sort memory management. Sometimes I think it's too user friendly though: assembly new project When you scaffold an app like this in assembly you hardly know what it's doing under the hood.
- jasonkostempski 10y agoI had never touched Clojure until a few weeks ago. I started learning it because Spec got me really excited and I want it or something a lot like it right now.
- coliveira 10y agoI think Clojure's mistake is to sell itself as a JVM language. Sure, there are lots of people who love or need to use the JVM, but for everyone else it is a downside. There is already one language that is the queen of JVM, Java. Every other language is faded to become a second class citizen.
- draw_down 10y agoFor me, there are a number of ideas in Clojure that I think are wonderful. I just really hate reading and writing lisp code. I can't think of a syntax I like less, unfortunately, even including junk like Visual Basic.
- eth0up 10y agoCertainly not this, but it's a great tune anyway: https://www.youtube.com/watch?v=8PLE3IjTRb8 https://www.youtube.com/watch?v=8PLE3IjTRb8 - The Wurzels, Ruby
- eth0up 10y ago^ <step here> ^
- reality_czech 10y agoIt is now official. Netcraft has confirmed: Clojure is dying. One more crippling bombshell hit the already beleaguered Clojure community when Lambda Island confirmed that Clojure market share has dropped yet again, now down to less than a fraction of 1 percent of all new code. Coming on the heels of a recent Netcraft survey which plainly states that Clojure has lost more market share, this news serves to reinforce what we've known all along. Clojure is collapsing in complete disarray, as fittingly exemplified by failing dead last in the recent comprehensive programming languages survey. You don't need to be the Amazing Kreskin to predict Clojure's future. The hand writing is on the wall: Clojure faces a bleak future. In fact there won't be any future at all for Clojure because Clojure is dying. Things are looking very bad for Clojure As many of us are already aware, Clojure continues to lose market share. Red ink flows like a river of blood. Due to the troubles of Lisp, abysmal sales and so on, Lisp Machines went out of business and was taken over by GigaMos Systems, who sold another troubled Lisp. Now GigaMos is also dead, its corpse turned over to yet another charnel house. All major surveys show that Clojure has steadily declined in market share. Clojure is very sick and its long term survival prospects are very dim. If Clojure is to survive at all it will be among programming language dilettante dabblers. Clojure continues to decay. Nothing short of a miracle could save it at this point in time. For all practical purposes, Clojure is dead.
- sanderjd 10y agoIs this an ironic homage to some piece of alarmist writing about something else? If not, it seems way over the top. It was pretty fun to read though.
- raspasov 10y agoClojure is a tool for people who know their doing by people who know their doing. Just like a fine Stradivarius violin. For me the violin would be indistinguishable from an entry level violin but for the master it's a very powerful tool.
- discreteevent 10y agoThat analogy can be used both ways! "I'm an artist, and if you give me a tuba, I'll bring you something out of it” - John Lennon.
- phs2501 10y agoOddly, as someone who was reasonably into Common Lisp, what really viscerally turned me off to Clojure was the use of square brackets. This sounds petty but I actually have some rationalization for it. Once you learn to read Lisp (mostly looking at the indentation and ignoring the parens) it's really nice that there's only one kind of delimiter in the language. It allows a lot of easy structure editing with a decent editor. I had emacs set up to use the unshifted square bracket keys to create and exit balanced parenthesis pairs. Once you got used to this, this was really pleasant to write and mutate code. As soon as I saw Clojure, I knew that my setup would unavoidably get twice as complicated because they added another delimiter that's used in random places in the code. (Why are function arguments a vector instead of a list? Just because the designer thinks it looks better? Why are let bindings a vector? Why are ordinary function calls and function bodies a list? It just feels arbitrary.) That in and of itself really turned me off. (The fact that it's the JVM really didn't help either, but that was actually secondary to the above.) Other issues for me were the lack of two layers in the LET statement (i.e. it's (let [a 1 b 2] ...) rather than (let ((a 1) (b 2)) ...). To some that probably "looks better" but it kills the ability to use emacs's transpose-sexps to swap the order of your let bindings around. All in all the syntax just didn't seem well thought out to me. OTOH to non-lispers it probably looked better, so maybe that was the goal.
- deleted 10y ago[deleted]
- dragandj 10y agoRegarding the second point, why didn't you just define your own let macro? As a Java->Clojure guy I find better readability of Clojure's let compared to CL's support of transpose an acceptable tradeoff, but the point of being a lisp is that you are not constrained by all decisions of the boss?
- phs2501 10y agoWell yes, in theory, but it's generally considered in somewhat bad taste to replace fundamental basics of the language. At that point you're not really writing Clojure anymore, it's hard to read other people's code, it's hard for other people to read your code, etc. See the somewhat controversial Allegro CL IF* macro for an example of this (I think that's what it was called; turns out that's really hard to search for). It's a little different if you're either creating a domain-specific language (at that point you've already made the decision to have a new language, so go nuts) or if you're adding new control structures that you can't have in the base language without excessive boilerplate (see for example the somewhat common AIF macro, which binds its conditional result to a variable). But I'd consider making a new MY-LET macro because I don't like what the built-in LET looked like to be a bit gauche. Regardless, I just decided to stick with the Lisp dialect that already worked the way I wanted.
- outworlder 10y agoSo, a keynote on conference about a dying language has mentioned that another, unrelated language is dying. And people are taking notice. It does not make sense.
- throwaway7645 10y agoThis was a really well written article. Nice to see the nod to Larry Wall's excellent talk on postmodern languages.
- cutler 10y agoA lot of people who have never used the language sneer at Perl but I worked with it almost exclusively for the first 10 years of my programming career and still have a deep appreciation for the elegance of its design and the great mind that gave birth to it. Perl is the original linguist's programming language, superseded by Ruby, some would argue, which in turn was superseded by Perl6 with its built-in grammars.
- throwaway7645 10y agoYea...really wish Perl6 was more polished now.
- j_m_b 10y agoOne of the best things about ClojureScript is the build process using lein. I've had a very stable build for years now, whereas JS has had grunt, growl, webpack, etc.
- lsdafjklsd 10y agoYup, front end development is light years ahead of JS. sad
- cutler 10y agoExactly. Wave goodbye to Webpack, Babel, Redux, Gulp, Grunt, Browserify, Brunch, Yeoman and the rest of the usual suspects. I'm baffled as to why Clojurescript + Leiningen isn't the preferred way. Javascript Stockholm syndrome perhaps?
- retrogradeorbit 10y agoIt's true of everything in life. The best is never the most popular. The most popular is often, frankly, crap. Why would programming be any different?
- valw 10y agoDon't look for such an elaborate explanation, it's just the parentheses that set most JS programmers off
- j_m_b 10y agoI really hope this isn't true, Clojure is my favorite programming language. I feel that it spoiled me. Builds are easy, code is elegant and easy to parse, functional programming combined with immutable data structures is beautiful. It also is great for "full-stack" devs in that there is little context switching between server and client. I think the "killer app" that Clojure needs is that it should be compilable into C/C++ with the same great interop it has with Java. It would be amazing to be able to utilize all those libraries, all those frameworks, all that code... in a Clojure REPL!
- j_m_b 10y agoFurther extrapolating on this idea, it would be neat to have "one lisp to rule them all" which worked something like the LLVM where you could write a module for each language you would like to compile into and then Clojure could be the glue between all of them.
- j_m_b 10y agoYes, I know there is Chicken Scheme and Guile. I prefer Clojure over them though.
- cutler 10y agoFor the niche that Python enjoys (data science, devops, machine learning) there's also Hy (hylang.org) which has more or less the same syntax as Clojure. With Clojurescript, Hy and Clojure you can use Clojure syntax in all 3 major layers: front-end, scripting and compiled/back-end.
- j_m_b 10y agoHaven't seen Hy yet, thanks for pointing it out! I have been getting back into machine learning recently and Python dominates. Great to see a Python lisp!
- albertoCaroM 10y agoThat's the point, Clojure would not die if it were compilable in C / C ++ or had better startup time. I used to love clojure, I think it has some great ideas, but I switched to Racket because of the lack of two features. I don't think I'm the only one who did it.
- BWStearns 10y agoI wonder if a microservice library or framework could become the killer feature to break clojure out of its niche. It could still be used by other jvm languages, possibly js languages, and wouldn't require betting the farm on it to try it out.
- mountaineer 10y agoWithin the monthly HN "who is hiring" posts, Clojure and Ruby appear mostly flat[1], albeit with Ruby at a much higher level. [1] http://www.ryan-williams.net/hacker-news-hiring-trends/2017/may.html?compare1=Clojure&compare2=ruby http://www.ryan-williams.net/hacker-news-hiring-trends/2017/...
- agumonkey 10y agoI have to say, it's been long since I searched for Hickey or clojure conf talks. Maybe that's just me and there are lots of new valuable stuff, but in a way it's hard to top cljs, core.logic, datalog in terms of brain wow.
- georgewsinger 10y agoI quit using clojure because (i) no C/C++ FFI, (ii) lack of strong type system, and (iii) horrific startup times (although clojure itself is fast, its startup time is not fast).
- retrogradeorbit 10y ago“What is right is not always popular and what is popular is not always right.” -- Albert Einstein I love Clojure, am more productive in it than any other language (and I've done a lot in my time, including the other FP languages mentioned in this thread) but I have to concede that most people will just not like it or get it. And that's fine by me. I also like alternative music. Most people will never like it. Most people like mainstream pop. This is also fine by me. Oh and I certainly would never go back to a mutable-by-default language like Ruby. I mean if it works for you, do it. But I think you are crazy.
- emperorcezar 10y agoI heard somewhere that over half of developers are new to the field. What disheartens me is that the majority of developers care very little about programming. They care about things going out the door fast, quality be damned! I never thought of Clojure as a language that would catch on to the 90% of shops out there. That's what ruby and python are for (and of course Java, but that's for historical marketing reasons.) What I have thought the niche of Clojure and other languages like it are larger scale projects and established places that care about robustness and correctness. Where the wishy washy ways of the pythons and rubies of the world can can a real issue when not done correctly.
- lngnmn 10y agoWhy would you expected a dialect of Lisp to become popular in the Packer's and Pointy Haired Bosses Paradise (a ready-made ecosystem for sweatshops and coding factories of easily replaceable coding drones)? A bit more seriously (which does not mean than anything in the previous paragraph is less true) the Java ecosystem has been grossly oversold from the very beginning, and even Rich himself has been converted (I still remember how I spat when I listened to his praise for Java as the best target platform in his very first marketing videos). Clojure has been very well positioned and cleverly promoted (basically bringing decades of research by very bright people culminating in the Common Lisp to the Java Land of packers) but there was (and is) no demand for it and very few of those who could understand and appreciate the principles and ideas on which it has been founded. It is dying for the very same reasons that the Common Lisp is still dying - The Worse Is Better or Idiots, Idiots Everywhere. No one really needs a perfection (approaching perfection) of the great languages. The popular crap to get shit done for a paycheck (Java, Javascript, Ruby you name it) is what is in demand. But this is rather a common pattern. This is exactly how the Upanishadic philosophy has been degraded into cryptic meaningless tantras, how Buddhism has been transformed into debased Lamaism, how western philosophy ended up with Hegelian nonsense and Marxism or what a sophisticated noise we have instead of Bach. The very same pattern. The world is dominated by idiots and will always be.
- Pica_soO 10y agoThese decline and declare articles are programmers equivalent of alien-abduction tales in dive bars. I was - sniff- abducted by a foreign framework - sniff- they made me do this - sniff- they made me learn - sniff - put there knowledge everywhere in my brain. It was horrible. - sob - It sounds horrific but you are not bound by oath and vow to the framework you love. You must not jump ship, you can ride two or three, depending on where your money comes from.
- dmichulke 10y agoFront page rank #22 (after 18hs) with 208 points and 192 comments on HN on a dying language. Shouldn't <put dying thing here> be met with a lack of interest?
- rimliu 10y agoSome funerals are attended by a large number of people.
- AKifer 10y agoOnce modern languages like Crystal, Elixir and probably all the rest begin to allow AST manipulation, the appeal from Lisp dialects diminishes even further as like when mainstream languages began to ship with a garbage collector. Clojure like all Lisp is not dead or dying, it's not just for everyone, and that's fine.
- dizzystar 10y ago>> Someone asked if their were any Clojure failure stories. Yes, unfortunately there are a few that I'm aware of. I don't want to go into detail, but I've definitely gotten more SOS calls than I care to count. I'm okay cleaning up messes, but Clojure allows developers to really hang themselves in ways that they can't in other languages simply because you can't do those things in other languages. Clojure isn't an easy language to get, or rather, it is easy to reach for very complex, totally passing up the very simple tools the language gives you. The language is very simple, and I think that throws a lot of people, especially if they come from languages with more boilerplate baked in. Personally, I love Clojure, but I never considered it practical for any team that is larger than a handful of developers, and it is certainly not safe for every developer to use. I'm using it on my current project because I'm working alone, and in keeping it small and focused, I have no plan to change that. Is Clojure dying? I don't really know. I've never met enough Clojure developers that stuck with it long enough to move the meter to "massive uptick," so there isn't much of a down-slope relative to "alive." I've always seen it as a niche language with a wonderful community. I sometimes joke that I know all 50 people in the US who actually know how to use the language.
- xiaq 10y agoThere is something missing in the "simple vs. easy" argument. You need to put things in the perspective of evolution. Designing an "easy" language is easy because you can usually resort to human intuitions, yours or somebody's else. Everyone can tell your language is easy or not; although there is no single criteria of what is easy, it's still possible to come up with something that many people agree are easy. Evolving easy languages is also not hard. Just follow the trend and keep making it easy to do whatever just became popular. Statistics, backend development, machine learning, whatever. If some early design choice turns out to be a bad move, just provide alternatives. People don't have very high expectations about the internal coherency of your langauge, so you have much freedom in evolving your language. Designing a "simple" language is much harder because it requires a very deep understanding of the underlying structure of your runtime environment, the kinds of systems you want to build with the language, and the structure of computer programs in general. Appreciating easiness requires experience and insights, and simple things can appear complex when looking from a different perspective. Even if you are super smart and came up with a amazingly simple language, that's only the beginning. Sooner or later, whether it's new area of programming or a design mistake surfacing, you need to evolve your language. And that is hard, because blindly adding features will destroy the simpleness and your language degenerates into an "easy" one. Instead, you need to carefully think about the natures of the new requirements, challenge the assumptions underneath the original design, and restructure your design. This process is often slow and can be more challenging than the original design process. Of course as the article says, "simple" and "easy" is hardly a dichotomy; what I described are extreme cases, and most if not all languages fall somewhere in between and exhibit properties from both sides. But I think it's helpful to think the two dimensions in this way.
- agentgt 10y agoI'm try to understand how Ruby has any relation to Clojure's purported dying other than I guess a few critical things were said at a Ruby conference. What is becoming less popular is dynamically typed languages or perhaps more correct to say languages who's types are not statically analyzed at compile time. So if there is anything hurting Clojure I believe it is the increased uptake of languages with much better type systems than in the past (Scala, Swift, Rust, and even Go). Particularly Go as clearly it is eating a lot of the jaded JVM crowd (that .NET core should be taking up but for various reasons have not). Hell even Python is moving towards being more type oriented or at least having support for optional typing. That being said I think out of all the dynamic languages Lisp, and thus Clojure are the best. I even like Elisp. Its the only time I do like a dynamic language (other than quick shell like scripts) and that is because the runtime is integrated so heavily with the development that essentially you are getting your types constantly checked (as well as auto completion and code lookup).