22 ms·
Clojure at Netflix (2013) [slides]
- tosh 8y agovia tonsky: https://twitter.com/nikitonsky/status/1057317735766593536 https://twitter.com/nikitonsky/status/1057317735766593536 - Migrate as you go - 1/10th the code that does 10× as much - Life with existing Java codebase is better with Clojure macros - Eliminate boilerplate with custom DSLs - REPL to live servers
- nerdponx 8y agoWhat happened to Clojure? Was it just a fad, or are people still using it in their day jobs? Are people still hiring Clojure devs? If you write Clojure at work, are you happy with it?
- jcadam 8y agoNot a fad. Clojure 1.9 was just released. I can only use it on personal projects, as employers hiring for Clojure are few and far between.
- imglorp 8y agoOne datapoint if it helps someone: these guys are full clojure. https://www.relaynetwork.com/careers/ https://www.relaynetwork.com/careers/
- dgritsko 8y agoBarely hanging onto the top 50 at #49 according to the TIOBE index (Java is still #1). Make of that what you will. https://www.tiobe.com/tiobe-index/ https://www.tiobe.com/tiobe-index/
- yen223 8y agoThat index lists Ladder Logic (#45) as being ahead of Bash (#48). Make of that what you will.
- kamaal 8y agoThat's because TIOBE derives metrics from search results. Which means every time some one searches 'Python, the snake', that also gets counted as 'Python, the programming language'. Most people looking for help on the internet are searching: "How do I do X in shell?" No of people looking for help with the word 'Bash' are likely to be lower. That's one reason why TIOBE is sometimes way off the real trends.
- steveklabnik 8y agoI don't like TIOBE, and think it's a pretty bad index, but they search for "$LANG programming", not just $LANG. https://www.tiobe.com/tiobe-index/programming-languages-definition/ https://www.tiobe.com/tiobe-index/programming-languages-defi...
- 200px 8y ago> Which means every time some one searches 'Python, the snake', that also gets counted as 'Python, the programming language'. This is false.
- jcelerier 8y agowell... yeah ? there are entire companies of thousand of electrical engineers working in LL. They just don't come and post about it to hackernews and make PLC projects in github, they do their 9-5 job and that's all. Compare https://www.indeed.com/jobs?q=PLC+engineer https://www.indeed.com/jobs?q=PLC+engineer and https://www.indeed.com/jobs?q=bash+programmer https://www.indeed.com/jobs?q=bash+programmer
- ilikehurdles 8y ago>They just don't come and post about it to hackernews and make PLC projects in github Same logic applies to clojure. I think that's the point he's making. Everyone and their 12 year old nephew rockstar developer has questions about java. I also find that clojure questions nowadays are mainly asked in the clojurians slack organization. Immediate feedback is more attractive than waiting around hoping for an answer in stackoverflow.
- phaedryx 8y agoWhat I make of it: "I'm quietly being productive with $LANG in my day-to-day job and loving it" doesn't move a language up the ranking.
- cutler 8y agoTIOBE is a joke.
- zmmmmm 8y agoI like the CloudFoundry report [1] better as a reflection of what businesses are actually using rather than search engine metrics (TIOBE) which are overly influenced by controversy and search engine methodologies than actual usage. However it's no prettier a picture, almost no functional languages in the list at all, only Scala making a significant dent (and you can debate whether that is functional or not). Other JVM languages like Groovy are significantly ahead of Clojure in all rankings. [1] https://www.cloudfoundry.org/wp-content/uploads/Developer-Language-Report_FINAL.pdf https://www.cloudfoundry.org/wp-content/uploads/Developer-La...
- vorg 8y ago> Other JVM languages like Groovy are significantly ahead of Clojure in all rankings. Apache Groovy fluctuates on TIOBE a lot. Six months ago it was at the same 50-ish position as Clojure, which is its usual ranking. It's shot up only in the past 6 months, which has also happened a lot in the past and is always followed by a sudden fall -- perhaps someone's gaming the search engine rankings. On Redmonk, Groovy and Clojure have ranked equal-ish for a long time. In the CloudFoundry report, Groovy is at the same very low rank as Others which would include Clojure if present. So Groovy and Clojure are at the same ranking in all rankings I've looked at.
- tribaal 8y agoWe are a mostly Clojure shop and are very happy with it. It's very expressive, functional, and allows you to tap into the Java ecosystem if you need to. Might not be as hyped today as it was some years ago, but the language itself is still a joy to use. Edit: SWE at exoscale.com here. We're hiring, also for full remote positions!
- catbodi 8y agoDang thats some expensive cloud pricing. Your cheapest plan offers 512MB of RAM for 5 Euros a month. There's well over 5 competitors who can get you quadruple that amount of RAM and maybe even double the storage for half that price per month. This is due to renting out space at datacenters, no? I'm no hosting expert.
- pyritschard 8y agoHey, Exoscale CTO here, Thanks for looking into the service. We're certainly not the cheapest in terms of pricing but I would also warn against using RAM prices as the sole way to gauge a service. To drive low prices a lot of VPS providers tend to have a very liberal way of playing with overcommit, which we don't do. The same goes for CPU. Our instances should be considered to higher-end families such as the C3 and here you'll see we're playing in the same field in terms of prices.
- tribaal 8y agoIt's due to us offering some guarantees on what you get, and therefore not over provisioning our hardware :) Many of our clients choose us for performance (IOPS, memory guarantees, etc...), and our geographic and legal situation (no connection to 5 eyes countries, strong privacy laws).
- calgoo 8y agoThat 512mb server can cost several thousands at enterprise datacenters so its not that bad. It all comes down to who their customer base is.
- swah 8y agoWhile other posters comment that "Clojure still works", IIRC the "promise" was that Clojure/Lisp would be much, much more productive, and that claim I feel like must been disproved in daily work, otherwise Clojure would still a main topic around here. Reminds me of the classic Erann Gatt post: https://news.ycombinator.com/item?id=2308370 https://news.ycombinator.com/item?id=2308370 (I loved to play with Elisp, Clojure, Lua, Factor, Ion, Ioke and hope dynamic languages become fashionable again someday...)
- lukev 8y agoIt is (sadly) not clear at all that programming language popularity (or rather, "online buzz" around a language which is all you can measure) correlates strongly with productivity.
- KingMob 8y agoI can only speak for myself, but I'm definitely much, much more productive using Clojure. I think its absence from HN is more reflective of a less-than-stellar onboarding experience for newcomers, and HN's general neophilia.
- empthought 8y agoI think individual developers are most likely to become much, much more productive when using Clojure/Lisp vs. Java, C#, and the like, but software development teams are unlikely to experience the same benefits. And it's not even because Clojure is bad for teams, it's because teams often form because there are nontechnical stakeholders, and suddenly an individual contributor's code-writing productivity is a much smaller factor when compared to the communication practices and other parts of the development process outside of writing code.
- StreamBright 8y agoIf there is one think about humanity that is worth to note is that the shittier alternative always wins. This is true from money through computer architectures to programming languages.
- jimbokun 8y ago"hope dynamic languages become fashionable again someday..." Python, Javascript and Ruby are very dynamic.
- jakebasile 8y agoThe industry can rip Clojure from my cold, dead hands. It's still used in smaller teams at a lot of places including some of the BigCos. It's a simple joy to use and it is a damn shame it's not more popular than it is, but I don't think it is a fad.
- mecameron 8y agoWe've been using Clojure for 3 years and ClojureScript for 1.5 years. We're actively converting more of our legacy codebase to Clojure/Script. It's been a great choice for us and even the skeptics have become converts over time. I think it's a joy to work with and allows us to reason about our problems and solve them better than many alternatives.
- z3t4 8y agoIt's interesting that in the current state of software development, a programming language that have been stable for not even a year might be considered obsolete.
- KingMob 8y agoA perennial problem in Clojure is libraries that reach a mostly "done" state tend to look inactive to outsiders, because the language is so stable there's almost no maintenance work. So inevitably, someone will ask "Is lib foo still being used? The last commit was over 8 months ago" and then people have to chime in, "yes, it's still in heavy use".
- nerdponx 8y agoSeveral languages have this problem, e.g. Common Lisp. It would be nice if developers of libraries like this at least updated their copyright annually, as an indicator that they and the project are still alive.
- imhoguy 8y agoDamn, you have just brought me an idea for next weekend project. Copyright-year updater which submits PRs to GH projects :) In Clojure of course!
- Jach 8y agoWho is the indicator for though? Wouldn't users of that language quickly come to expect that inactive is not necessarily dead or useless? (Especially with Common Lisp, stuff decades old is still useful.) And I find outsiders unlikely to care that much, it's just a nit random passerbys will make when they think they need to comment on something, rather than actually informing a serious decision. It's also kind of pointless to "update the copyright year" for individual works tied to your name, since the copyright lasts x years after your death. If anonymous/pseudonymous, then it's like 95 years after initial publication date, and you can't just extend that arbitrarily by updating the base year and nothing else every year..
- 8y ago
- abc_lisper 8y agoYes, we are using it at a BigCo. I am extremely happy with Clojure. I wouldn't think Clojure is a fad, it never was that popular.
- pixelperfect 8y agoClojure is still around and a great language for experienced devs. But the experience for newcomers is much less attractive than for other languages, which is preventing growth. Also, the largest Clojure community is the Slack channel, which is hidden from the rest of the world.
- jakebasile 8y agoI really wish the community would move away from using Slack. It's completely opaque to most people and anything past the last couple days gets lost to the ether. Yes, I know you can find it on some archiving site, but it's non-intuitive. Wish they'd move to Discord or Matrix or... pretty much anything else.
- tosh 8y agoAccording to the JVM Ecosystem report/survey Clojure is the 2nd main language on the JVM (after Java): https://snyk.io/blog/jvm-ecosystem-report-2018 https://snyk.io/blog/jvm-ecosystem-report-2018 ClojureScript also seems to gain traction. Quite impressive when you consider that Clojure is a language/ecosystem not driven/backed by one of the larger tech companies.
- cutler 8y agoSee my earlier post in response to yogothos. On jobs boards Scala adoption is orders of magnitude higher than Clojure.
- Dirlewanger 8y agoCircleCI uses ClojureScript last I read.
- shady-lady 8y agothink they stopped: https://www.reddit.com/r/Clojure/comments/9ho97m/is_circleci_still_using_cljs_saw_a_few_react/ https://www.reddit.com/r/Clojure/comments/9ho97m/is_circleci...
- smoe 8y agoThat link only refers to the frontend where they used to have ClojureScript. Judging from their backend job postings they seem to use Clojure and Go. .
- hellofunk 8y agoThe cancellation of a few major Clojure conferances hasn’t helped. I’m guessing it speaks to demand. I used Clojure for a long time, professionally. Not much any more. Main issue is that the language is not very readable (a pain point mentioned in these slides) and very hard to find people to work in it. Also more than any other language Clojure is very sensitive to typos in your code. A misspelled keyword results in nil accidentally flowing through your app. It was frustrating to spend time on scaffolding everywhere to catch these things.
- kamaal 8y ago>>A misspelled keyword results in nil accidentally flowing through your app. Some dynamic languages, worked around this issue in the 90's. Perl for example, if you use 'use strict; use warnings' will catch most of these misadventures. Having said that, only the most novice programmers make these kind of mistakes. Like the absolute beginners, in the first day or two of exposure to programming. As a rule almost any shop these days write unit test cases, so that should flush out these kind of bugs. EDIT: Why the downvotes? People seriously work with programmers whose biggest incompetence at work is typos? Or you think writing unit test cases is bad?
- StreamBright 8y agoThey just disagree without explaining why. Anyways, I sometimes have typos in my Clojure code, but once I follow through with your mental model and just reproduce the problem in REPL it is easy to find these sort of bugs.
- kamaal 8y agoI'm not sure, but if people have problems, as bad as things like hiring programmers who struggle with indenting code, making typos in variable names, write functions hundreds of lines long, can't modularize code, write 3 nested for loops, or write nested if's where '&&' suffices. Then you are having far bigger problems related to project management, hiring and overall direction in which you are running your team/company. Clojure as a tool doesn't aim to fix these kind of problems. And it can be argued no tool will fix these problems.
- mayneack 8y agoWe're still using Clojure at Factual and are hiring. https://www.factual.com/company/careers/?gh_src=1pt2v8 https://www.factual.com/company/careers/?gh_src=1pt2v8
- yogthos 8y agoClojure use has been growing steadily, and lots of companies are hiring. In a recent JVM survery of 10K people Clojure came in as the second most used language after Java https://snyk.io/blog/jvm-ecosystem-report-2018 https://snyk.io/blog/jvm-ecosystem-report-2018 My team has been working with Clojure for the past 8 years, and we're extremely happy with it.
- cutler 8y agoThese stats look highly suspect with Clojure:Scala = 1.6. Here in London the jobs boards Angel.co and Indeed.com have Scala:Clojure at 3.6 and 19.6 respectively.
- yogthos 8y agoIt's one of the most comprehensive surveys to date. Meanwhile, the job numbers can relate to many factors. For example, there could be more turn around for Scala jobs.
- cutler 8y agoThe survey opens with: "Welcome to the largest survey ever of Java developers ... The survey was conducted by publishing its availability to the Java community at large (via social media primarily), to Java User Groups around the world, including the Virtual JUG, and to subscribers of Java Magazine, the Java bimonthly publication from Oracle Corp." So the sample is heavily biased and doesn't include the population of JVM users who have never touched Java.
- StreamBright 8y agoI regularly use Clojure at work, even though I am usually a sole contributor because other people are not willing to use anything other than Python, Go, Java. The primitives for doing concurrent and parallel programming is just so nice that I can't think of living without it. Go has similar solutions though. The biggest advantage is to have a concise small code base that does exactly you want without dancing around language related boilerplate.
- tombert 8y agoI work for one of the big "brand name" companies (I don't want to say which, but it's on the "companies using Clojure page"), and on my team we try and start all new projects to use Clojure. Frankly, I love it. After the "zen" of lisp clicked for me, Clojure gave me an OS/2-style "Better Java Than Java". Suddenly I was able to compose standard JVM library stuff in a more-natural and easy way than I could in vanilla Java, I was able to easily define relatively-well-optimized persistent data structures, and I could quickly provide new semantics to the language as I saw fit. Also, the Clojure REPL provides an amazing level of increased productivity. Do I miss the Hindley-Milner type system from my last job? A bit, but surprisingly it doesn't bother me as much as I thought with Clojure. I don't know if Clojure was just a fad, but I think that it'll always have a loyal fanbase, like mosts Lisps.
- sunshinerag 8y agoCare to mention what is the language you used in your last job that you are comparing clojure with.
- tombert 8y agoI was using F#, and before that Haskell, and before that Scala.
- anon1253 8y agoWe've been using a full Clojure stack (front-end + backend) in production for nearly 4 years and very happy with it (6-8 people full time). But that is very much anecdotal. I guess one thing to note is that the language is very stable, there are very few (if any) breaking changes and a 4 year old library will "just work" most of the time. Even more amazing is that it's trivial to port 40 year old ideas from (Common)Lisp if you're so inclined, or interface with a known good Java implementation. To me that is a big plus, personally I wouldn't even want a ton of extra features in Clojure ... the language is fine and libraries fill in the rest. It does give the impression that not a lot of happening and that it might be fading or boring, but in a lot of settings boring is actually a good thing. The amount of times some NodeJS or Python thing changed from underneath me and I needed to rework an entire codepath or build infrastructure just because the language changed their mind on how things should be done are gladly behind me with Clojure!
- jimbokun 8y ago"...personally I wouldn't even want a ton of extra features in Clojure ... the language is fine and libraries fill in the rest." And for anything else there's macros.
- joseakle 8y agoWe use Clojure at Nubank. We’re actively hiring Clojure devs or we can teach those who don’t know it yet. https://nubank.workable.com https://nubank.workable.com We’re very happy with it.
- ljosa 8y agoWe're using it happily at Yieldbot. We're an ad network, and the core matching technology (which finds relevant ads based on the contents of the page and decides which one to show and how much to bid) is all Clojure. All the data science stuff is Clojure (it's been great with Spark and pretty good with Storm). The data pipeline is all Clojure now. The central database for ad campaigns and such is Datomic. The APIs for the frontends are moving to Clojure. ClojureScript never caught on for the front-end work. There are some substantial services for which Elixir was chosen instead of Clojure.
- Naomarik 8y agoMy feeling (and personal experience) is that the state Clojure is in now is so solid there's not a lot to talk about. Every time I take a peek at the JS ecosystem there's a new flavor or build tool. I've been making a living using Clojure for a few years now as a solo dev and I don't feel the language is lacking in anything I would care much about. I started with reagent not knowing anything about react or having any Clojure experience and was immediately productive. I was able to augment part of a webapp I had in production in no time due instant feedback loops from the REPL and figwheel. The language is being iterated on but it has already been in such a state in that I'm not keeping up with what's new because I'm able to solve any problem I need to already. I'm extremely happy with it. I have a lot of interests other than programming and I feel that Clojure allows me to deliver complex projects on time without driving me insane or having to keep up with new trends.
- eigenhombre 8y agoI've been doing Clojure professionally happily for five years. My company/team in Chicago uses Clojure and is hiring (onsite). https://hire.withgoogle.com/public/jobs/opploanscom/view/P_AAAAAADAAFvGt7ggWHI2Qh https://hire.withgoogle.com/public/jobs/opploanscom/view/P_A...
- quantisan 8y agoWe use Clojure for the whole backend, Python for machine learning, and JS for frontend at Motiva AI. It's the fourth company that I worked at (UK and US) with Clojure as one of the main languages. I'd say hiring Clojure devs has been one of the best perks for working with Clojure. Consistently high quality people that I've had the honour to work with. At Motiva, we've dabbled in other languages like Haskell, Scala, Rust, Go, etc. but Clojure has been what sticks for us on the backend team https://github.com/Motiva-AI https://github.com/Motiva-AI. We are a fully distributed remote team and we are hiring. Drop me an email.
- rb808 8y agoIs Clojure still a thing? It seems to have fallen off my radar. Java seems resurgent after 8, even Scala seems to have lost momentum.
- deleted 8y ago[deleted]
- systems 8y agoto talk about something new, you need to have something new to talk about i dont think that scala or clojure have lost momentum i think both clojure and scala, stopped adding new features that are worthy of blogging about you cant just add feature, just to keep people talking about you clojure, is what it is, a nice language, a very smart leader (rick hickey), and a nice vibrant community (check #clojure on twitter) the most talked about language nowadays is actually c++, and i think this mainly because they suddenly decided to have a very ambitious roadmap, and keep adding features, so there is always something new to talk about does this make c++ better than clojure, well, i dont think they are even comparable, but it just make c++ more talked about than clojure
- mattdeboard 8y agoVery well said!
- kamaal 8y ago>>i dont think that scala or clojure have lost momentum i think both clojure and scala, stopped adding new features that are worthy of blogging about More like Clojure is in Cathedral mode of open source development. Most of the development is in private discussions, implementation and prototyping at Cognitect, and once they have something to share, they release it to the world. That's more a communication and marketing thing. For example, you can try Googling but you won't be able to see anything on the Clojure roadmap. No one knows what's the plan even year or two from now. But thanks to smart leadership, and brilliant development team they have, its mostly a non issue if you don't really care about the everyday minutiae. You can bet the top dollar that they are working on something good, and it will be eventually released to the world. To people coming from other open source tools, that can sound as strange.
- 666lumberjack 8y agoInteresting stuff. I'd be curious to know how Netflix are getting on with it now.
- codetrotter 8y agoWould be interested to hear their experiences with Clojure at Netflix for the 5 years that have followed since then. Did they keep writing more Clojure? If so, how much of their code is now in Clojure compared to Java? How much more did they rewrite from Java to Clojure? Do they use Clojure rather than Java for new code? What other languages do they use? Python? Erlang? Rust? How much, in terms of functionality, is written in each language they use? How many lines of code do they have in each language? To what extent did they find existing libraries for the different languages usable for what they are doing? Among the things that seemed great with Clojure in 2013, did they find that some of these were not so great after all once the codebase grew? Any other problems?
- Scarbutt 8y agoDid they keep writing more Clojure? Since Netflix likes to constantly write about their tech (videos, blog), my guess would be no, but interested in an official answer too. They are now heavy users of nodejs though. I personally ran out of reasons to prefer another dynamically-typed language over Javascript on the server (not a hard rule of course).
- abritinthebay 8y agoWe’re heavy users of LOTS of languages at Netflix to be fair. Clojure included.
- Scarbutt 8y agoTo clarify, the reason I prefer nodejs (for web apps) over clojure these days is the vast amount of libs and documentation for almost all your needs. Clojure has the java ecosystem, but it was very tedious (more cognitive load) investing lots of time doing interop instead of just focusing on the problem at hand. Interop is both a feature and a curse. Of course, as a language I find Clojure superior in almost every way compared to JS.
- paulie_a 8y agoHonestly the vast amount of libs is the reason I don't like nodejs. It's a lot of shoddy duplicates.
- deleted 8y ago[deleted]
- systems 8y agois clojure still used at netflix [2018]?
- TheMagicHorsey 8y agoI love Lisp, so I thought Clojure would be a great productivity booster. And it is, if you are a one-man or one-woman shop. But try to build a team around a Clojure project and it's another story. The language basically begs you to make "magic" happen with domain-specific constructs. That might make you feel powerful as a programmer, but it's also a nightmare for new team members to get up to speed on. And then, as others have mentioned, it's hard to find Lisp programmers. Most programmers are turned off by the syntax and/or immutability. I happened to take a Lisp class as an undergrad, but I would otherwise probably be in the same boat.
- jimbokun 8y ago"Most programmers are turned off by the syntax and/or immutability." Programmers who don't see the value of immutability or can't understand it are not programmers you really want to work with.
- TheMagicHorsey 8y agoI know plenty of productive programmers who aren't even computer science majors, and just work in Javascript and Python. And I also know people who code in Rust and Haskell, and can never meet a deadline. Theoretical chops doesn't make a good programmer. Knowing that immutability is a good thing and abandoning the imperative style, or even being comfortable with a functional style, isn't a prerequisite to being productive in most organizations.
- jcadam 8y ago> Programmers who don't see the value of immutability or can't understand it are not programmers you really want to work with. I'm not disagreeing with you, but since you just described easily 90%+ of all working programmers, it's kind of unavoidable. One place I worked, one of the lead engineers knew I was into functional programming and asked me if I thought it would be a good idea to introduce Scala or Clojure into our pure Java code base. I said "No. The majority of the programmers here couldn't make the adjustment." Put another way, if I could assemble a hand-picked team of all of the engineers I would rate as "great" who I've worked with over my 12+ year career thus far -- I'd have a team of about 7 people.
- deleted 8y ago[deleted]
- projectileboy 8y agoThis is a bit tangential to the post, but I've seen a couple comments in this thread that amount to "Clojure is hard to read", but I think that's a really unfair comparison, because people are unwittingly comparing apples and oranges. It seems to me the reason people think Clojure is hard to read is that the language is so powerful and expressive, that when you're reading Clojure code, you're typically trying to understand the actual problem that's being solved, as opposed to just reading a bunch of code that's necessitated by the lack of power afforded by the language. For example, I can easily "read" a bunch of nested for loops in Java, but then I still have to try and understand what the actual problem is that's being solved. People seem to confuse those two things when comparing Clojure with other languages.
- anon1253 8y agoExcellent points! From my personal experience I'd also like to add that there is a bit of preference involved. I find Lisp like languages much much easier on the eyes compared to Javascript or other C-like syntax. This is also partially due to the excellent support of s-expressions in editors with things like paredit [1], parinfer [2], or clever-parens [3]. With that functionality the syntax becomes nearly invisble and you're editing a /tree/ rather than characters. Coupled with autocomplete and auto-indent [e.g. 4], the code is much easier to manipulate in my experience (but again, might be preference) [1] http://danmidwood.com/content/2014/11/21/animated-paredit.html http://danmidwood.com/content/2014/11/21/animated-paredit.ht... (also http://emacsrocks.com/e14.html http://emacsrocks.com/e14.html) [2] https://shaunlebron.github.io/parinfer/ https://shaunlebron.github.io/parinfer/ [3] https://github.com/luxbock/evil-cleverparens https://github.com/luxbock/evil-cleverparens (Vim with Emacs via Evil) [4] https://github.com/Malabarba/aggressive-indent-mode https://github.com/Malabarba/aggressive-indent-mode
- vindarel 8y agoDamn lispy is like all of them in one ! http://oremacs.com/lispy/ http://oremacs.com/lispy/
- ronnier 8y agoI worked in a large company where clojure was used. After the original developers moved on from that project (they always move on), it was a giant struggle to get people who could work in the code base. They ended up rewriting it in something more standard. Whatever benifit clojure provided was outweighed by the high cost of maintaining the code base and the inability to find devs who wanted to work on it. That’s my only data point with clojure.
- m12k 8y agoI'd like to learn a modern production-ready functional language (I have some academic experience with SML), since they seem like a good way to grow as a programmer. Main contenders so far are Haskell, Scala and Clojure (Reason might go on the list soon too) - but the fact that Clojure is dynamically typed is a bit of a turn off for me. My experience with dynamic vs static typing is that as a system grows in size and complexity, the value of static typing goes up. Doing a major refactor is one of those things that I find especially error-prone in dynamic languages, while statically typed languages make this much less daunting (of course they come with the opposite issue that you might not be able to compile for a day until you've fixed all the type errors - but I'd take this trade-off any day of the week). Can anyone with experience comment whether Clojure suffers from this too or if it somehow handles the lack of static typing better than other dynamic languages?
- gregwebs 8y agoYou can't refactor Clojure without fear like in Haskell. It is actually possible in Haskell now to defer type errors to runtime, but I haven't heard of a practice of using that, even to aid in refactoring. See this comment: https://news.ycombinator.com/item?id=18345672 https://news.ycombinator.com/item?id=18345672
- akmiller 8y agoI'd disagree with this. Primarily been developing with Clojure for 5 years now with some pretty large codebases. It does depend on how you write your code but favoring pure functions, pushing immutability to the edges of your programs allows you to refactor without fear. Clojure also has many things to aid in this such as pre/post conditions, clojure.spec (which allows you to build complex type definitions), and of course test.check (property based testing).
- lgas 8y agoHaving spent the last two years working professionally in Haskell after having spent the previous two years working professionally in Clojure, I'd disagree with this. Haskell is roughly infinitely better than Clojure for meaningful refactoring. Clojure gives you (great) tools for using your own brain to make sure the refactor goes well. Haskell replaces your brain almost entirely in the process and just gives you a precise list of the things have to fix. The difference in experience is night and day. When you're done with a Haskell refactoring (even a major one) and it compiles again you will be completely done 99% of the time. With Clojure there's not even a "compiles again" moment to look for, and even when you think you're done you're refactoring there's a good chance that there's something that will pop up at runtime (and some point arbitrarily far in the future) and tell you otherwise.
- lvh 8y agoLatacora has its token Clojure person: me. I write Clojure every occasion I get, we've shipped Clojure code to customers, et cetera et cetera. Most of the stuff I'm doing in Clojure would be possible in other languages, but in a sense that's only one notch below "Turing tarpit" possible. So, in the only sense that a startup should care (would you f'ing ship it?): only possible in Clojure or a handful of close cousins. I'm hearing less about it on HN these days? But it was a great language yesterday, remains one today, and there's constant development of tooling and community :)
- jwhitlark 8y agoI think some of that is due to the nature of the people it attracts, namely, grumpy, older, I've been burned before, programmers. I use Clojure constantly and have for 10 years, but I've never felt a strong need to proselytize. I just make money and enjoy coding, day in and day out.
- vbuwivbiu 8y agoamazed to see there are people who find myObject.myMethod(x, y, z); easier to read than (my-function x y z) - that's 2 delimiters in Clojure vs 6 in your C-style language
- zeveb 8y agoIn fairness, it'd actually be: (my-method my-object x y z) But yes, the Lisp version is so much clearer to me. I just don't get why it's not more popular.
- vbuwivbiu 8y agoor (object-as-namespace/my-function x y z) still fewer delimiters and less noise
- trevor-e 8y agoHow does this work with autocomplete if you need to know the method name before the object you're working with? Maybe I'm not getting something but that sounds incredibly painful to use in practice.
- jimbokun 8y agoBecause idiomatic Clojure code is based on functions and not methods. The method call syntax is just there to support interop with Java.
- zeveb 8y agoIn Common Lisp, it works because symbols are scoped by package, not by object. So if you're in the package foo and start typing 'bar,' then your editor would autocomplete symbols in the foo package starting with 'bar'; likewise if you typed 'baz:quux' your editor autocomplete would autocomplete symbols in the baz package starting with 'quux.' Common Lisp most definitely doesn't have one namespace; this is really nice in practice.
- trevor-e 8y ago
- jimbokun 8y agoI would like to know the words spoken for this slide: https://speakerdeck.com/daveray/clojure-at-netflix?slide=29 https://speakerdeck.com/daveray/clojure-at-netflix?slide=29
- mikeflynn 8y agoWe have used Clojure in our data processing and API code for five years now at Studio71, and it's been a huge success for us. We have much smaller dev teams than our competitors so Clojure has helped us keep pace with a smaller code base and fast data processing, but it has been a challenge to hire new developers when we need one, but with patience it has always worked out.
- finalfantasia 8y agoAs the leader in online affiliate marketing, we’ve just launched our analytics and insights platform that is written in Clojure [0]. If you like Clojure, come work with us [1]. [0] http://junction.cj.com/article/introducing-insights-cj-affiliate http://junction.cj.com/article/introducing-insights-cj-affil... [1] https://engineering.cj.com https://engineering.cj.com
- choot 8y agoOne strategy which i learnt from a tech company executive is that if you want to hire best of best at low cost, develop products in interesting new programming languages as the most curious programmers who are very serious about programming care less about money and more about work in a particular language of their interest. No wonder the company had successful projects in every asoteric languages. Now, I come from executive background in corporate job where going with anything other than Java is considered risky. This came off as suprise to me.
- Royalaid 8y agoIt's all tradeoffs, all the way down. The good thing about Java is most problems are solved or have easy paths forward by dipping into the massive development talent pool.
- lemming 8y ago...if you want to hire best of best at low cost, develop products in interesting new programming languages as the most curious programmers who are very serious about programming care less about money and more about work in a particular language of their interest. The problem is that the particular language of their interest probably changes every 6 months.
- narwally 8y ago>The problem is that the particular language of their interest probably changes every 6 months. As a language nerd, one of the nice things about Lisp is that the language is easily extended into other paradigms. I've stuck with Clojure for a long time because of this. It had Go style CSP-concurrency as the core.async library within a few years of release. I can use types by just loading core.typed, or I can play around with logic programming with core.logic. Whenever I find a cool feature in another language, I usually find out that it's already available in Clojure as a library.
- auganov 8y agoThis talk goes into detail how Clojure plays out in larger teams, particularly how they worked to maintain REPLability for a huge monolith: https://www.youtube.com/watch?v=BThkk5zv0DE https://www.youtube.com/watch?v=BThkk5zv0DE That said, I think a lot of the preoccupation with rewrites is just premature optimization. Just a while ago I noticed some open source Clojure code of a startup acquired by FB got rewritten in Haskell. Was very glad to see founders don't seem to be working on this new code-base. Probably moved on to do higher value things.
- dr_teh 8y agoI love Clojure! It's honestly the best language ever.
- truculent 8y agoI always see loads of Static vs Dynamic and Functional vs OO opinions breaking out in the comments. While the discussion is often interesting and insightful, it would be nice to see some empirical analysis of the trade-offs here. Stuff like development time, error rates, maintainability (no idea how you'd measure this one...). Anyone know if such studies exist? Feels like they should be out there given the amount of discussion the topics generate