r/functionalprogramming • u/kichiDsimp • Mar 24 '25
FP Most actively developed/maintained FP language
I have played with Haskell, tried Scala and Clojure and my best experience was with Haskell.
But I wish to know which language is the most practical or used in production.
Which is actively been worked on, which has a future apart from academic research etc etc.
Thank you for your answers.
53
Upvotes
38
u/OkRestaurant489 Mar 24 '25
Erlang is maintained by Ericsson and probably used more in industry than in research. Some well known examples are WhatsApp and Klarna, but there are much more. Check out the Erlang Ecosystem Foundation and it’s sponsors to see a portion of the companies using and supporting development of the Erlang Ecosystem. (Elixir belongs to the ecosystem for example since it runs on the Erlang VM called BEAM.)
51
u/[deleted] Mar 24 '25 edited Mar 24 '25
Probably each developer would mention the language he/she feel closer to. However I am surprised that OCaml has not been mentioned, here some info about:
18
u/DabbingCorpseWax Mar 24 '25
I wouldn’t discount Haskell, it’s used in more places than people realize. FB’s spam etc filters are written in Haskell, Haskell is common in fintech companies and banks (not HFT firms). It gets used in other domains as well, where it gets chosen as “the language” for a company. I don’t remember their name but there’s a Dutch HR-software company and they do everything in Haskell (which lets them do more with a smaller dev team).
OCaml is definitely up there too. It’s much more widespread than it was even 10-15 years ago and development of the language seems to have shifted towards industry devs working on the language.
Clojure and Scala are used widely, I personally don’t think they’re “the future” but they’re also not going away. They both have a future.
14
u/biskitpagla Mar 24 '25 edited Mar 24 '25
I'd pick F# and Elixir. F# isn't growing like Elixir but it manages to bypass the need for growth by leveraging dotnet. And companies using Elixir have very few reasons to migrate elsewhere. But I'd personally focus more on Rust right now. There aren't many Rust jobs yet but that's not stopping people from writing a lot of code in it and that kinda sorta should translate to more jobs in the future.
6
u/sqPIdt37xCHo0BKbwups Mar 25 '25
Clojure by a mile
11
u/reformed_goon Mar 24 '25
Elixir
11
u/caenrique93 Mar 24 '25
Scala is actively maintained and a lot of companies use it in one way or another. Mainly for big data and backend micro services. The ecosystem is very mature with a lot of libraries for most use cases and leveraging the jvm infrastructure.
5
u/thuiop1 Mar 24 '25
I like Gleam, but it is very new and still very niche.
5
u/ScottBurson Mar 25 '25
Common Lisp with FSet is great for functional programming.
4
u/nrnrnr Mar 24 '25
Decent candidates include OCaml, F#, Erlang, Haskell, and perhaps others I’ve overlooked. “Most” practical is hard to judge, but all these languages are used in production. And I daresay all have a secure future.
Haskell occupies a unique position in that it is also a playground for academic research in a way that the others might not be.
15
u/pihkal Mar 24 '25
Well, in one sense, many mainstream languages are adopting more functional elements. Java, Js, Typescript, Rust, Swift, etc. Older langs like C, C++, and Python have probably the least FP elements in them. (For Python in particular, GvR is not a fan of FP.)
If we set aside the FP transformation of mainstream languages, what do we have? Haskell has a strong future, but is probably not that big in production. I used to be a big Clojure person, but it's been stagnant for a while, and interest has decreased in recent years. Elixir is still small, but seems to have growing interest. Lots of other langs are either too small, or too niche.
I'd say your best bets are Rust or Scala, honestly. Scala's more FP; Rust has a brighter future.
Just my $.02.
3
u/CrazyConsideration36 Mar 24 '25
I personally prefer Elixir and Haskell. I have worked extensively with Scala professionally but I just can’t get into it. However, in my experience is the most widely used functional language (purely anecdotal).
7
u/QuirkyImage Mar 24 '25
Clojure is probably most use in industry it is used in finance easily integrates into older Java systems. I would guess F# does pretty well because corporations often use Microsoft’s ecosystem. Oldest has to be Lisp, Common Lisp is still being developed. Academic is a difficult one when you say research do you mean research in programming languages, compilers and interpreters etc? Or languages used in building experiments eg controlling equipment? The latter is probably Java, C++ not sure how common FPs are in this area I guess not a lot although I have heard of Lisp being used in space equipment. Java has a load of libraries for instrumental equipment. C++ being used a lot in embedded systems.
7
u/sdegabrielle Mar 24 '25
The most actively developed/maintained open source FP language project is Racket without a doubt. Four releases a year like clockwork. https://docs.racket-lang.org/release/HISTORY.txt
Racket has and continues to get plenty of production use, but tends to fly under the radar because it is a small - but growing - community driven project.
Racket has always been a working tool. From the very beginning DrRacket (DrScheme) has been deployed to new computing students.
Recent examples
See https://racket-lang.org to learn more - the community is very welcoming so join us on Discourse or Discord! 😁👋 invites: https://racket.discourse.group/invites/VxkBcXY7yL https://discord.gg/6Zq8sH5
PS active engagement with the research community means Racket gets innovations before anyone else e.g. https://rhombus-lang.org - this is also one of the reasons why Haskell is so cool. 🤩
7
u/khunset127 Mar 24 '25
F#
2
u/MaxHaydenChiz Mar 24 '25
The developer of lichess, which is the second largest chess website and a massive open source code base, said that he originally picked Scala because he thought the better library access and more "commercial" language development would be beneficial. But that in retrospect, he should have just used Haskell.
Make of that what you will.
I usually go by whatever has the better ecosystem for the project I'm doing, but there is some threshold where the project is large enough and complex enough that you care more about how easy it is to make your own libraries than you do about what other libraries are out there. (At a large enough scale, you can even maintain the compiler and the runtime yourself and probably have an internal fork managed by a dedicated team responsible for upstreaming your internal changes, but few people work at such companies.)
2
u/rook_of_approval Mar 25 '25
fstar surely
2
u/akirakom Mar 25 '25
The most actively developed (but not used in production) FP language: Lean 4. Lean 4, 5, 6, ... (inductively defined) will have a promising future IN academic research.
2
u/SuperGrade Apr 18 '25
I'll emphasize an angle on F# (that others have mentioned) - not for language quality, nor directly for the .Net libraries themselves (which are both good of course). . . . you pick any FP language it's a hard sell and 'going out on a limb'. The equivalence of F# project files to C# project files within a large .Net project gives you the ability to gradually inject it to great effect and low risk. Especially now with AI, strategically porting bits (I tend to almost always go C#->F#) becomes even faster.
You probably have this with Java/Scala as well; but I don't know them. I'm speaking to massive F#/C# combined being viable, from experience.
2
u/[deleted] Mar 24 '25
F# is extremely practical thanks to having access to the entire .NET ecosystem of libraries. We use it in production at a very large scale company.
1
u/turtel216 Mar 24 '25
Probably some multi paradigm language with a focus on functional programming. Which would be Rust.
1
u/-think Mar 24 '25
No one knows the future. There’s no information about what you want or don’t want, or why. what kind of answer are you looking for?
Have you looked at the stack overflow survey? They list the top 100 programming languages or so.
That’s where I would start looking.
0
u/isumix_ Mar 24 '25
JavaScript is one of the most widely used programming language in the world. It supports functional programming and can be used for server-side, client-side, desktop, and embedded applications.
0
u/angrynoah Mar 24 '25
0
u/technosophist Mar 28 '25
Excel. Not even really joking