Live data from Hacker News

Ask HN: Which functional programming language is the popular enterprise choice?

news.ycombinator.com

81–90 of 91 posts

Re: Ask HN: Which functional programming language is the popular enterprise choice?

#81
post #78

Earlier quoted context omitted.

"Of course the payoff is immense, you end up with much more maintainable and composable code. However I'm not convinced that many enterprises care much about these properties, as they are often more of a long term win" Actually, you have it backwards. Enterprises care a great deal about long term maintenance and have large codebases. However, they are also very conservative and prefer the tried and tested approach. S…

> If there were 3-4 large enterprise companies with 200kloc+ Haskell projects in use I feel Haskell could see long term 20-30% uptake in the enterprise I would be very surprised if there were not tens of companies with 200kloc+ Haskell codebases. I know that one of them is an enormous enterprise (but the others that I know of are not).

What company? I would like to know.

Re: Ask HN: Which functional programming language is the popular enterprise choice?

#82

If you consider Scala functional, I think it wins the popularity contest: used by startups and established companies (Linkedin, Twitter, Meetup, Verizon, Morgan Stanley, Autodesk, HuffPo, etc, etc...) and is not "we use it in a dark corner where nobody cares" and more like "betting the whole farm on it".

I would "bet the whole farm" on Haskell before Scala. That's not to make a dig at Scala. It's way better than Java. It's also really complicated, and the need for JVM compatibility is a big part of that. Then you have the compile speed issues, the problematic tool chain, and the fact that average Java programmers, given Scala, will create unmaintainable nightmares. I'd use Scala over Haskell when I wanted JVM interop…

> Then you have the compile speed issues, the problematic tool chain [...]

Did you ever use Haskell? Those issues are far worse in Haskell than in Scala.

You just hear more people complaining about Scala, because it is used, while Haskell projects are usually not developed and maintained anymore after the author finishes his PhD.

Re: Ask HN: Which functional programming language is the popular enterprise choice?

#83
post #47

Scala is getting big in the enterprise. This list http://www.quora.com/What-startups-or-tech-companies-are-usi... gives a small overview

Scala is not a functional programming language, it is OO first and foremost. It has better support for functional programming than Java 8, Python or Smalltalk. And that in itself is great.

It's more functional than most languages called "functional".

Re: Ask HN: Which functional programming language is the popular enterprise choice?

#84

Earlier quoted context omitted.

I would "bet the whole farm" on Haskell before Scala. That's not to make a dig at Scala. It's way better than Java. It's also really complicated, and the need for JVM compatibility is a big part of that. Then you have the compile speed issues, the problematic tool chain, and the fact that average Java programmers, given Scala, will create unmaintainable nightmares. I'd use Scala over Haskell when I wanted JVM interop…

> Then you have the compile speed issues, the problematic tool chain [...] Did you ever use Haskell? Those issues are far worse in Haskell than in Scala. You just hear more people complaining about Scala, because it is used, while Haskell projects are usually not developed and maintained anymore after the author finishes his PhD.

> Did you ever use Haskell? Those issues are far worse in Haskell than in Scala.

I've used both, if anything Haskell is a little faster.

> You just hear more people complaining about Scala, because it is used, while Haskell projects are usually not developed and maintained anymore after the author finishes his PhD.

FUD. This is simply not true.

Re: Ask HN: Which functional programming language is the popular enterprise choice?

#85
post #79
post #50

Earlier quoted context omitted.

No IO in Haskell is purely functional. Your Haskell program wires up a computation that is eventually run by the runtime. The wiring up, as described in Haskell, supports referential transparency and composition as only pure code can. Your confusion may arise from people using the term "pure" to differentiate from "monadic".

All I meant is IO (aka input/output) can have side effects outside of the scope of the language environment. Haskell has the IO type to encoding those this side effects: https://wiki.haskell.org/Introduction_to_IO

I haven't decided yet, check out this link to decide for yourself:

https://leanpub.com/purescript/read#leanpub-auto-the-eff-mon...

Re: Ask HN: Which functional programming language is the popular enterprise choice?

#86
Not a secret -- at Monsanto (Fortune 200) we use Scala heavily now, starting from one project in 2010 and now a dozen teams use it for many many production projects internally and in AWS. Certainly some in the almost 200k LOC range. Scala is replacing Java at Monsanto (and yes we're always hiring!)

NB: Our Climate Corporation teams are running Clojure.

"What is functional?" is a difficult question my partner and I ponder often. As someone else here said, simply having functions as first class values seems insufficient as that would include Perl, JavaScript, C (fxn pointers) and other langs as "functional." Saying supporting any mutability at all removes your status as "functional" means Lisps aren't functional, which seems to ignore the history of FP. Erlang doesn't have monadic IO but is highly regarded by many as functional. If our definition essentially includes only Haskell as "functional" then the term seems useless. So we define as functional any lang that supports functions as first class values AND significant enforced immutability.

Scala's first class functions, default immutable data structures and "val"s compile-time enforcing immutability without too much ceremony put Scala in the FP category for us, along with the Lisps, MLs, F# and Erlang.

Re: Ask HN: Which functional programming language is the popular enterprise choice?

#87

Earlier quoted context omitted.

> Then you have the compile speed issues, the problematic tool chain [...] Did you ever use Haskell? Those issues are far worse in Haskell than in Scala. You just hear more people complaining about Scala, because it is used, while Haskell projects are usually not developed and maintained anymore after the author finishes his PhD.

> Did you ever use Haskell? Those issues are far worse in Haskell than in Scala. I've used both, if anything Haskell is a little faster. > You just hear more people complaining about Scala, because it is used, while Haskell projects are usually not developed and maintained anymore after the author finishes his PhD. FUD. This is simply not true.

Thank you for attacking that misconception. Haskell is, at this point, a very practical language, and becoming increasingly that way over time as it proves to have the best enforcement model for the functional style among the options out there. For good and bad, we're not in the 1990s anymore.

Re: Ask HN: Which functional programming language is the popular enterprise choice?

#88

Earlier quoted context omitted.

> Did you ever use Haskell? Those issues are far worse in Haskell than in Scala. I've used both, if anything Haskell is a little faster. > You just hear more people complaining about Scala, because it is used, while Haskell projects are usually not developed and maintained anymore after the author finishes his PhD. FUD. This is simply not true.

Thank you for attacking that misconception. Haskell is, at this point, a very practical language, and becoming increasingly that way over time as it proves to have the best enforcement model for the functional style among the options out there. For good and bad, we're not in the 1990s anymore.

That gave me a good chuckle.

Re: Ask HN: Which functional programming language is the popular enterprise choice?

#89

If you consider Scala functional, I think it wins the popularity contest: used by startups and established companies (Linkedin, Twitter, Meetup, Verizon, Morgan Stanley, Autodesk, HuffPo, etc, etc...) and is not "we use it in a dark corner where nobody cares" and more like "betting the whole farm on it".

I would "bet the whole farm" on Haskell before Scala. That's not to make a dig at Scala. It's way better than Java. It's also really complicated, and the need for JVM compatibility is a big part of that. Then you have the compile speed issues, the problematic tool chain, and the fact that average Java programmers, given Scala, will create unmaintainable nightmares. I'd use Scala over Haskell when I wanted JVM interop…

Does Scala have "compile speed issues" compared to Haskell? That's probably my biggest pain point using Haskell day-to-day.

Re: Ask HN: Which functional programming language is the popular enterprise choice?

#90

Earlier quoted context omitted.

I would "bet the whole farm" on Haskell before Scala. That's not to make a dig at Scala. It's way better than Java. It's also really complicated, and the need for JVM compatibility is a big part of that. Then you have the compile speed issues, the problematic tool chain, and the fact that average Java programmers, given Scala, will create unmaintainable nightmares. I'd use Scala over Haskell when I wanted JVM interop…

Does Scala have "compile speed issues" compared to Haskell ? That's probably my biggest pain point using Haskell day-to-day.

No. Scala neither needs to compile dependencies, nor does it need to recompile everything on a change.

The first compile might take a bit, but after that all changes are usually incrementally compiled in less than a second.

Post reply on HN