News for hackers. Stuff that matters.
Re:Why Co–Star Uses Haskell by mjh2539 on Friday November 05, 2021 @12:06PM (#29121208)
> Yet another confirmation that pure functional langs work great when its just one or two buddies working on a "pure programming" project, but evidence remains scant of their utility beyond that.

Evidence is abundant if you look for it. FB, Microsoft, and Standard Chartered all have active internal haskell projects.

Re:Why Co–Star Uses Haskell by taeric on Friday November 05, 2021 @12:13PM (#29121308)
Like all evidence, it is actually easy to find both sides. Notably, I have yet to come across a project in clojure, Haskel, or scala that wasn't abandoned as soon as the major advocate for that language left the group.

Sad in the cases where it was a well done project. Frustrating when it was bursting at the seams.

Re:Why Co–Star Uses Haskell by whateveracct on Friday November 05, 2021 @04:32PM (#29124419)
The main reason for that phenomenon is it's more personally advantageous to rewrite than to learn Haskell and extend what's there.

Haskell advocate quits? Blame them for selfishly using a toy language (they're gone anyways - who is gonna disagree?), and save the day by spending a long time reimplementing an MVP subset of what they already did. Congrats - you're a hero! The end product has less functionality, but at least you didn't have to do something actually hard like learn Haskell and work with Someone Else's Code.

I've seen this happen multiple times. For shame - and yes people did get promotions for it. Pathetic.

Re:Why Co–Star Uses Haskell by ufmace on Saturday November 06, 2021 @12:25AM (#29127515)
This sounds like a good thing to me actually. If your company's primary language is X and you only have one enthusiast for Haskell (or any other such language), it's a bad idea to let them build critical components in their pet language. It's worth longer time for a rewrite and maybe fewer features if you can now count on anybody in the company being able to start working on it fast, instead of having to learn a whole new language and ecosystem first. It might even be less work to learn that language, but that work has to be repeated anytime somebody new needs to touch the code.

If you wanna have a supported component in some new language, you need higher-level commitment to keeping a reasonable size bench of developers who know that language at various skill levels. Of course unless you're a rather big company, maintaining hiring and training pipelines for multiple languages can be quite inefficient.

Re:Why Co–Star Uses Haskell by whateveracct on Saturday November 06, 2021 @03:11AM (#29128113)
The main problem in my experience is the initial engineering team that builds the MVP is very into Haskell, and then as the team/org/company grows, they bring in outside leadership.

Outside leadership doesn't embrace Haskell (they don't know it), so they see it as a threat instead of as something to value. So then the Haskellers bleed (either due to the culture clash or due to the leadership intentionally hiring against Haskell. I saw a VPE literally say that "wanting to work in Haskell" as a motivation is a "red flag"!) and now you have a Haskell project but no Haskellers.

It wasn't Haskell's fault. But it'll take the blame by the boneheads.

Re:Why Co–Star Uses Haskell by taeric on Saturday November 06, 2021 @06:54PM (#29134612)
Main problem that I have seen, is that new programmers jump on a lot of the higher level abstractions, mainly just because they can. It winds up obscuring more than it helps. Worse, it often locks them in to particular abstractions that aren't a good direction for where things are going.
Re:Why Co–Star Uses Haskell by whateveracct on Saturday November 06, 2021 @11:21PM (#29136274)
Juniors write bad code in all languages. Why is Haskell's version of this so much worse?
Re:Why Co–Star Uses Haskell by taeric on Sunday November 07, 2021 @08:50AM (#29139423)
My claim wasn't that the Haskell version is worse. Just that it isn't some super power that is free from this problem.
Re:Why Co–Star Uses Haskell by whateveracct on Sunday November 07, 2021 @03:09PM (#29143018)
It does mitigate the problem. The worst Haskell mess I've seen is nothing compared to the balls of mud that can be made in less disciplined languages. They're not All the Same.
Re:Why Co–Star Uses Haskell by taeric on Sunday November 07, 2021 @07:45PM (#29145092)
You may have just been lucky. The worst balls of mud I have inherited were in highly functional styles and systems.

Conversely, I may have just been unlucky. Would love to see studies and data.

Re:Why Co–Star Uses Haskell by ramesh31 on Friday November 05, 2021 @05:34PM (#29124953)
>The end product has less functionality, but at least you didn't have to do something actually hard like learn Haskell and work with Someone Else's Code.

But did the business need all of that functionality? Rewriting a subset of an application that is far more maintainable and cost effective in the long run can be a huge win. I am currently rebuilding an application full of intractable bugs and proprietary DSLs that was implemented in Salesforce with lots of bells and whistles that nobody wants or needs to be a simple Golang/Mysql app hosted on AWS. Yes, it is a tiny subset of the current functionality. But it solves the business case and will save millions of dollars per year in Salesforce fees while simultaneously making the user experience an order of magnitude simpler and allowing faster onboarding.

Engineers allowed to run free can often times spend an inordinate amount of time building things out that no one really asked for. Your Haskell backend was probably a thing of pure beauty from a programmers point of view. But an expensive liability to the business.

Re:Why Co–Star Uses Haskell by whateveracct on Friday November 05, 2021 @06:54PM (#29125601)
> But did the business need all of that functionality? Rewriting a subset of an application that is far more maintainable and cost effective in the long run can be a huge win.

It was needed enough that the rewrite (which was slow) had to delay release and the legacy software had to be kept alive well past its sunset date (and plenty of people jetted by then.) Because the business had to keep the lights on!

The missing functionality at least was said to be missed by the business folks who made use of it. "If only we had feature X" definitely was said.

There wasn't anything too beautiful about the Haskell. It was mostly systems work. But incrementally evolving and improving would've definitely be cheaper long term than a rewrite .. but it does require people to learn Haskell, which seems to be a nonstarter for many. If people don't wanna, they don't wanna.

Re:Why Co–Star Uses Haskell by taeric on Friday November 05, 2021 @05:02PM (#29124714)
That would be the sad case. I have also seen the case where the code was impenetrable and did not at all lend itself to extension.
Re:Why Co–Star Uses Haskell by whateveracct on Friday November 05, 2021 @07:27PM (#29125820)
I've worked on a Haskell project supposedly like that. Took me a couple weeks of not complaining to improve it significantly. The trick was not closing my eyes at the sight of ugly bad code.
Re:Why Co–Star Uses Haskell by taeric on Friday November 05, 2021 @09:34PM (#29126703)
My problem with this, is you can replace "Haskell" with any other language in that sentence, and it still works.
Re:Why Co–Star Uses Haskell by whateveracct on Friday November 05, 2021 @10:44PM (#29127059)
Why's that a problem? It is true if any language.

But people act like Haskell can create a mess that is beyond what other languages can create. To the point where it isn't true that you can just..fix it by not complaining.

Re:Why Co–Star Uses Haskell by taeric on Saturday November 06, 2021 @12:03AM (#29127417)
Hmmm. I can see your point that folks act like it can create a mess beyond other languages.

I agree that that is not accurate. I suspect it is more a reaction to the seeming claim that it is immune to that. For my part, my claim was meant to be that it needs an advocate. That is all.

I do not know why they other languages have in built advocacy across the board. Python, in particular, is seeing a ton of good will in ways I just don't understand.

Re:Why Co–Star Uses Haskell by tome on Saturday November 06, 2021 @08:13AM (#29129551)
> Notably, I have yet to come across a project in ... Haskell ... that wasn't abandoned as soon as the major advocate for that language left the group.

The Haskell OGs of Don Stewart, Roman Leshchinsky, Neil Mitchell, Lennart Augustsson and more left Standard Chartered. Haskell is now more widely used in Standard Chartered than it was when they were there!

Re:Why Co–Star Uses Haskell by taeric on Saturday November 06, 2021 @11:08AM (#29130837)
This furthers my claim that there is evidence on both sides. Would be amazing if there was a study.
Re:Why Co–Star Uses Haskell by Barrin92 on Friday November 05, 2021 @05:12PM (#29124792)
I'm pretty sure Nubank has for years and continues to rely heavily on Clojure. (to the point where they acquired Cognitect)
Re:Why Co–Star Uses Haskell by taeric on Friday November 05, 2021 @06:15PM (#29125284)
Right, I meant my point to be that you can find evidence on both sides. Far as I can see, language is not a predictor of success.

Having an advocate for a program is a predictor. That advocate doesn't have to be a developer.

Re:Why Co–Star Uses Haskell by valenterry on Saturday November 06, 2021 @02:29AM (#29127986)
Seems like you just haven't come across many projects then.
Re:Why Co–Star Uses Haskell by taeric on Sunday November 07, 2021 @08:52AM (#29139439)
?? Do you have studies or collections of evidence that shows it skews in the other direction?
Re:Why Co–Star Uses Haskell by valenterry on Monday November 08, 2021 @02:31AM (#29146818)
Yeah, myself. I have worked in multiple companies that used Scala and still do, even after the original people who introduced Scala already left.
Re:Why Co–Star Uses Haskell by taeric on Monday November 08, 2021 @11:53AM (#29151245)
That says nothing of the number of projects I have seen.

And note that I am not anti these languages. Just acking that there is plenty of experience on both isles.

Re:Why Co–Star Uses Haskell by pphysch on Friday November 05, 2021 @12:10PM (#29121265)
Do any of these projects have more than 1-2 active maintainers?
Re:Why Co–Star Uses Haskell by bidirectional on Friday November 05, 2021 @04:13PM (#29124251)
None of them are individual projects, all of those companies have several projects in Haskell. Standard Chartered, for one, have their own custom implementation of Haskell and it is used by dozens of developers across different projects.
Re:Why Co–Star Uses Haskell by dllthomas on Friday November 05, 2021 @05:40PM (#29125006)
IIUC it's their own custom implementation of something a lot like Haskell, with the compiler implemented in Haskell.
Re:Why Co–Star Uses Haskell by samhh on Friday November 05, 2021 @06:51PM (#29125572)
It's called Mu. It's strict and has a few other quirks. There are a few different teams using it for different projects.

Source: Used to work there.

Re:Why Co–Star Uses Haskell by hota_mazi on Friday November 05, 2021 @12:20PM (#29121397)
I've always been fascinated by the fact that these claims are always completely unfalsifiable.

"A lot of companies use this <non mainstream language> in internal projects but since it's internal, we can't show you".

It reminds me of "I have a girlfriend but she goes to another school".

Re:Why Co–Star Uses Haskell by bojo on Friday November 05, 2021 @12:47PM (#29121758)
I mean, what are those of us in this category supposed to do?

For the last 5 years I have 7 developers that have been working on internal applications in Haskell for an enterprise company that I am not able to show you due to legal reasons. We have a small open source library or two out there, but they are not even remotely representative of how deep our development iceberg really is.

Re:Why Co–Star Uses Haskell by d0mine on Saturday November 06, 2021 @07:08AM (#29129206)
Show corresponding Haskell vacancies—somebody has to maintain the code if it exists.
Re:Why Co–Star Uses Haskell by twic on Friday November 05, 2021 @01:22PM (#29122197)
I've spoken to people who have been through that department at Facebook, and they report the scale of use of Haskell is wildly exaggerated.
Re:Why Co–Star Uses Haskell by hota_mazi on Friday November 05, 2021 @01:11PM (#29122079)
So... an article from six years ago, and then a few open job reqs.
Re:Why Co–Star Uses Haskell by mbesto on Friday November 05, 2021 @06:33PM (#29125439)
I've tech diligenced 200+ software companies and I've seen Haskell twice and Clojure once. The two that were using Haskell had to drop the project and rewrite because they couldn't find enough developers.

I have zero problems with the technical capabilities of functional programming languages, but it's simply not a smart decision to use them in for profit businesses writing CRUD apps. It simply doesn't make economic sense. When you get to scale and need to write <insert specific modular service that does this one thing really well> then it starts to make more sense.

Re:Why Co–Star Uses Haskell by Tanjreeve on Saturday November 06, 2021 @11:12AM (#29130869)
So if you can find developers then it makes sense to better software in a more powerful language? That seems like not really a problem with either of those two languages.
Re:Why Co–Star Uses Haskell by mbesto on Sunday November 07, 2021 @08:17PM (#29145257)
"more powerful language"

Heh. My pickup truck has more torque than my Ferrari, but my ferrari goes to 60 much quicker. "Power" requires context, especially when it comes to programming languages.

Re:Why Co–Star Uses Haskell by Tanjreeve on Wednesday November 10, 2021 @07:12AM (#29173804)
There are languages that objectively make it easier to manage complicated things. They enforce strong guards against user errors and they are easy to refactor even in a large codebase it means you can do more things with a smaller team.

Whether you can find people to work on hard problems easily seems completely orthogonal to the language used in the same way that its also very hard to find top Java/C++ etc developers capable of handling non trivial work but we don't throw our hands up and say "Welp we'll just have to write it in python then because this problem is too hard".

Re:Why Co–Star Uses Haskell by golergka on Friday November 05, 2021 @09:56PM (#29126842)
Microsoft have their own functional language. Not exactly an internal protect.