Live data from Hacker News

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

news.ycombinator.com

31–40 of 91 posts

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

#31

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

Typesafe is contributing greatly to that list. http://www.typesafe.com/resources/case-studies-and-stories

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

#33
post #2

I'd guess Scala is the most popular choice, but for nearly every language you'll find a company using it for at least parts of their products.

I like Scala, but it's still got mutable state, for loops, and lots of other imperative trappings. It's got some functional features, but I don't consider it to be a functional language (IMHO). If Scala is functional, then so are Ruby, JavaScript, and a host of other languages with higher order functions and the ability to be immutable, so long as you make the effort to not mutate anything (though anything is immutab…

I'm not sure how familiar you are with scala if you are equating them in equal 'functional power' to Ruby and Javascript. Have you read Functional Programming in Scala? The fact that the language supports immutable records out of the box, type classes, monadic comprehension all make it much more pleasant to deal with the realities of immutable data.

You can write immutable java, but the language doesn't make it easy to at all. Look at the hilariously bad builder pattern (which is as good as it gets in Java) compared to the right way of doing things in Scala.

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

#34
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".

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

#35
post #30
post #27

Javascript / Nodejs it's multi-paradigm: scripting, object-oriented (prototype-based), imperative, functional ( source: https://en.wikipedia.org/wiki/JavaScript ) Many languages known as functional (Scala, F#, Lisp, Scheme, OCaml) are multi-paradigm languages (check out Wikipedia!), purely functional programming language like Haskell are the exception ( https://en.wikipedia.org/wiki/Purely_functional ). And the IO pa…

All I can think is... Poe's Law. https://www.youtube.com/watch?v=ztVMib1T4T4

I was like wait what...Then I saw your comment.

Yup Pretty much same reaction to that suggestion.

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

#36

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

Yup! I did a research while ago (end of 2014). Scala was by far the most used among the other choices (Clojure,Haskell,F#).

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

#37

Jane Street is using OCAML. That or F# is my preferred choice. Having said that, the tricky part is sticking to pure FP and coordinating data structures. Not impossible, but it's a foreign area for many shops.

Do you know why Jane Street chose OCaml over Haskell? They have similar performance, right?

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

#39
post #37

Jane Street is using OCAML. That or F# is my preferred choice. Having said that, the tricky part is sticking to pure FP and coordinating data structures. Not impossible, but it's a foreign area for many shops.

Do you know why Jane Street chose OCaml over Haskell? They have similar performance, right?

Jane Street started using OCaml in the mid-2000s, when Haskell wasn't (or, at least, wasn't perceived as being) up to snuff in terms of performance. Haskell has come a long way in the past 10 years.

In 2015, Haskell is almost as fast as OCaml, albeit less predictable and therefore possibly still less desirable in certain financial settings. Haskell has a better concurrency story, though.

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

#40
post #37

Jane Street is using OCAML. That or F# is my preferred choice. Having said that, the tricky part is sticking to pure FP and coordinating data structures. Not impossible, but it's a foreign area for many shops.

Do you know why Jane Street chose OCaml over Haskell? They have similar performance, right?

I'd guess because OCaml is a bit more traditional. It's strict and has no purity enforcements; it's a whole lot easier to transition people to.

Disclaimer: My development these days is almost exclusively in Haskell

Post reply on HN