Most popular functional programming languages

Top Functional Programming Languages Ranking Based On Sentiment Analysis 2021

06

Most popular functional programming languages

Scala, which is short for Scalable Language and first appeared in 2004, is a programming language invented by Martin Odersky. Scala is compiled to Java bytecode and executed using a Java virtual machine (JVM).

Scala has become one of the most popular multi-purpose programming languages in use today. Many companies use it to build their software infrastructure, whether with consumer products or their in-house tech stacks. Its mix of flexibility, concision, and Java compatibility has made Scala particularly popular among businesses that rely on distributed architecture and require easily-scalable apps.

Most popular functional programming languages

Kotlin is an open-source, statically typed “pragmatic” programming language initially designed for JVM (Java Virtual Machine) and Android, which combines object-oriented and functional programming features. It is focused on interoperability, safety, clarity, and tooling support.

Most popular functional programming languages

Clojure is a dynamic programming language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming. Clojure is a compiled language yet remains completely dynamic – every feature supported by Clojure is supported at runtime. Clojure provides easy access to the Java frameworks, with optional type hints and type inference, ensuring that calls to Java can avoid reflection.

Most popular functional programming languages

Erlang is an open-source language and runtime environment. Erlang has built-in support for concurrency, distribution, and fault tolerance. Erlang is used in several large telecommunication systems from Ericsson.

Most popular functional programming languages

Swift is a modern, general-purpose, and multi-paradigm programming language designed by Apple to build its iOS-powered devices and following ecosystems. Apps can be designed to run also on macOS (for Apple computers), watchOS (Apple Watch), tvOS (Apple TV digital media player), and – what may be a bit surprising – z/OS, which powers IBM Mainframe computers.

The language is currently distributed on Apache License, which makes it available for the community to use. It’s a relatively new project, launched in June 2014, seven years after the first iPhone launch.  

Most popular functional programming languages

Elixir is a functional, concurrent, general-purpose programming language that runs on the BEAM virtual machine used to implement the Erlang programming language. Elixir builds on top of Erlang and shares the same abstractions for building distributed, fault-tolerant applications.

Most popular functional programming languages

Haskell is a statically typed, purely functional programming language with type inference and lazy evaluation. Developed to be suitable for teaching, research, and industrial applications, Haskell has pioneered many advanced programming language features such as type classes, which enable type-safe operator overloading. Haskell’s primary implementation is the Glasgow Haskell Compiler (GHC). 

Most popular functional programming languages

Rust is a relatively new programming language that was designed by Graydon Hoare and is sponsored by Mozilla. The first stable version (Rust 1.0) was released in 2015. It was voted “the most loved language” in a survey of developers on Stack Overflow in 2019. Though it has a similar syntax to C++, many experts have argued that it is unlikely to replace it in the near future. That said, use among developers is growing.

Most popular functional programming languages

OCaml, formerly Objective Caml, is a multi-paradigm programming language that extends the Caml dialect of ML with object-oriented features. OCaml was created in 1996.

The OCaml language was initially used to develop applications that involve symbolic computation: automatic theorem provers, compilers, and interpreters, program analyzers, etc. It is now used to build software in many other application areas. OCaml is also pretty simple, which is one reason it’s often used as a teaching language.

Most popular functional programming languages

Elm is a domain-specific programming language for declaratively creating web browser-based graphical user interfaces. Elm is purely functional and has been developed with an emphasis on usability, performance, and robustness. Elm is a functional language that compiles to JavaScript — think of it as a competitor to React or Vue, and is used to create websites and web apps. Elm promises no run time exceptions — no null and no-undefined is not a function. It uses type inference to detect corner cases and help the user with what the issue might be. One of the most significant features is that Elm also comes built with a robust type system and a compiler to help you during development. No need for TypeScript — these are actual types that the code must adhere to.

Most popular functional programming languages

PureScript is a strongly-typed, purely-functional programming language that compiles to JavaScript. It can be used to develop web applications, server-side apps, and also desktop applications with the use of Electron. Its syntax is mostly comparable to that of Haskell.  In addition, it introduces row polymorphism and extensible records. Contrary to Haskell, PureScript also adheres to a strict evaluation strategy.

Most popular functional programming languages

Idris is a purely-functional programming language with dependent types, optional lazy evaluation, and features such as a totality checker. Idris may be used as a proof assistant, but it is designed to be a general-purpose programming language similar to Haskell.

The Functional Programming Languages Ranking analysis is not based on popularity but on sentiment, which means that we can discover what people think and feel about a specific language. Thanks to 160,556 analyzed mentions we have spotted six key results and even found the best functional programming language (if by the best we mean chosen by people, with the highest amount of positive sentiment))

Several years ago we could have said that functional programming was kind of exotic and mostly associated with fun and hobbies. But now, you can find this technology in all kinds of different industries and products that many of us use daily.

Not only that, but more and more developers are falling in love with functional programming. 

Why?  The opinions of experienced developers in this field are varied.- A lot of the reasons depend on the kind of projects they are working on. But one thing is certain – functional programming brings many benefits to business and is a constant topic of discussion within the programming community. For this reason, we decided to analyze the prevailing sentiments towards functional programming languages, and find the answers to the topics that involve us the most. For example; which is the best functional programming language, the one that wins the hearts of most developers? And what do people really think about each of them?

Now you can find out which the best functional programming languages are, so you can avoid learning a language that everybody hates and choose the right one for your team.


LUKASZ KUCZERA, CEO AT SCALAC


Functional Programming helps companies build software that is scalable, and less prone to bugs, which means that software is more reliable and future-proof. It gives developers the opportunity to write code that is clean, elegant, and powerful. Functional Programming is used in demanding industries like eCommerce or streaming services in companies such as Zalando, Netflix, or Airbnb. Developers that work with Functional Programming languages are among the highest paid in the business.

I personally fell in love with Functional Programming in Scala, and that’s why Scalac was born. I wanted to encourage both companies, and developers to expect more from their applications, and Scala was the perfect answer, especially for Big Data, Blockchain, and FinTech solutions. 

I’m glad that my marketing and tech team picked this topic, to prepare the report that is focused on sentiment – because that is what really drives people. All of us want to build effective applications that will help businesses succeed – but still… We want to have some fun along the way, and I believe that the Functional Programming paradigm gives developers exactly that – fun, and a chance to clearly express themselves solving complex challenges in an elegant code.

How we analyze the ranking data

Now, let’s dive into this functional world from the web-side ;). To create this Update to the Functional Languages Sentiment Ranking, we used the Brand24 tool which is irreplaceable when it comes to collecting data from the internet. We gathered data for 3 months and analyzed 160,556 mentions, which has given us insights into 14 functional programming languages (2 more languages than in the previous edition of the ranking).

Most importantly, we highlighted key takeaways and found out which of them has the most positive sentiment percent (the best functional programming language). In other words, which one was most loved by the most people, as well as which has the most negative sentiment – we can call it the black sheep of the family – along with a few other things.

If you are curious about our methods and the Brand24 sentiment analysis, jump to the methodology.

Positive and negative sentiment comparison 

Most Positive % of positive sentimentMost Negative % of negative sentiment
Swift 43,27 %PureScript14,88 %
F#39,92 %Haskell13,90 %
Rust39,86 %Rust 12,16 %
Idris 39,70 %OCaml11,55 %
Clojure35,95 %Erlang11,12 %
Scala32,98 %F#10,37 %
Kotlin 32,90 %Clojure 10,35 %
Haskell 31,97 %Scala10,18 %
Rescript31,75 %Rescript9,75 %
Elixir29,05 %Swift9,68 %
Erlang27,54 %Idris8.33 %
PureScript 26,30 %Kotlin6,08 %
OCaml24,50 %Elm5,72 %
Elm 18,92 %Elixir4,94 %

You may like our humorous animation containing some of the results from the ranking – most loved language and the “black sheep”.

This report confirms what I’ve also found in my own experience as an instructor at Rock the JVM: Scala is an expressive and powerful language, and once people get a taste of it, they rarely go back to anything else. Of course, like anything else in tech, there’s room for improvement. Because of its power and almost limitless capability, Scala can seem quite daunting to beginners – on this front, it’s up to educators like myself to contribute to the community and make the learning process easier and smoother for newcomers.

DANIEL CIOCÎRLAN, FOUNDER & INSTRUCTOR AT ROCK THE JVM

Functional programming makes code modular and composable, and this can result in an exponential increase in software development productivity. It’s interesting to see how functional programming concepts are propagating across more and more programming languages. This research is a key indicator of how to measure the heartbeat, and it tells us that the sentiment is mostly positive. This data can allow language developers to learn from each other’s successes, as well as mistakes.

ZUKA KAKABADZE, FOUNDER & CTO AT FUGO.AI

The second edition of our index didn’t bring any revolutionary changes. Also hardly any evolutionary. It’s too early to identify trends yet, but we’re getting there. The new entry of F# at second place is not a surprise. It’s well known that both the language and the community are liked and respected. On the other hand Rescript, while far away from the top, is the top FP language on the frontend. I’m quite happy to see it as I would very like to see more adoption of it. Clojure noted the biggest change. Is this a glitch or a trend? We’ll keep an eye on that. Scala vs Kotlin is still a close call. So what’s next? As I mentioned before, once we have more data, we’ll be able to identify trends. I think it would also be interesting to see these changes overlayed with a timeline of events (conferences etc.) for every ecosystem. Also maybe we could start an annual Most Positive Influencer Award? Let me know on Twitter @jczuchnowski

JAKUB CZUCHNOWSKI, CTO & CO-FOUNDER AT SCALAC

It’s interesting to see that positive sentiment towards Scala is pretty much stable, although I’d love to see it increasing in the future thanks to some awesome improvements in Scala 3. I also think it’s great to see ReScript appearing in this first update of the ranking, as the most loved FP language in the frontend, and I hope to see its adoption growing in the future, together with other frontend languages such as Elm or PureScript.

Jorge Vasquez, Scala Developer 

As a former Android Developer who started writing in Java, switching successively to Kotlin, and finally becoming a Backend Developer writing in Scala, I must admit that programming in Scala is something very convenient. Immutability, pure functions, and a structural approach to side effects is something that captivated me in Scala. It is also worth noting the development of the functional Arrow.kt library in Kotlin, which brings many of the solutions known in Scala to the Kotlin language, which the programmers of the Kotlin will benefit from. More languages will allow writing in a more functional way because this approach makes the code more readable and gains more resistance to errors. I think that the languages with the most positive sentiment will be gaining more and more new users due to what they can offer them in the programmer’s daily work.

Jacek Modrakowski, Scala Developer

Functional programming languages as singles. The analysis of languages that stood out from the others

Swift 

With 55% of positive mentions, Swift wins first place in people’s hearts being the most positive of the bunch. 

Swift nowSwift then
positive mentions: 43.27 %
negative mentions: 9.68 %
positive mentions: 35.17 %
negative mentions: 18. 87%

Examples of mentions

Most popular functional programming languages

Elm

Compared to the previous ranking, Elm is the one that has most lost its good reputation. Its number of positive mentions has decreased by 7%.

Elm nowElm then
positive mentions: 18.92 %
negative mentions: 5.72 %
positive mentions: 25.92 %
negative mentions: 7.09 %

Example of mention

Most popular functional programming languages

Clojure and Idris 

Everyone has their five minutes of fame, so while Elm is not on track anymore, Clojure and Idris have gained more positive feedback than previously – 3% more positive mentions.

Clojure then: Clojure now:
positive mentions 31.12 %
negative mentions: 10.08 %
positive mentions: 35.95 %
negative mentions: 10.35 %
Idris then: Idris now:
positive mentions: 35.56 %
negative mentions: 23.24 %
positive mentions: 39.70 %
negative mentions: 8.33 %

Examples of mentions

Most popular functional programming languages
Most popular functional programming languages

PureScript

The black sheep of this functional programming languages family. A language with the most negative sentiment on the web.

PureScrpit nowPureScript then
positive mentions: 26.30 %
negative mentions: 14.88 %
positive mentions: 25.22 %
negative mentions: 15.09 %

Examples of mentions

Most popular functional programming languages

F# and Rescript 

F# and Rescript both debuted in our ranking. And they’re not bad debuts. F# (which is general-purpose, strongly typed) has the second place in the most loved language category, so it’s now the second-best functional programming language, and Rescript sits comfortably in the middle.

F#Rescript
positive mentions: 39.92 %
negative mentions: 10.37 %
positive mentions: 31.75 %
negative mentions: 9.75 %

Examples of mentions

Most popular functional programming languages
Most popular functional programming languages

More about functional programming (in business)

In the video below, you’ll learn that it’s not about throwing away your object-oriented program to enter functional programming. In the talk, you’ll compare object-oriented vs functional programming, find out why some companies still choose object-oriented languages, and many more.    

We’re going to help you find your approach whether you’re a beginner or more experienced in functional programming concepts. 

To sum up:

This update to the Functional Programming Languages Ranking based on sentiment definitely won’t be the last. Monitoring the dynamics of positive and negative mentions has brought us a barrel full of knowledge, not only about the languages themselves but also and most importantly, about the community. Stay tuned for further news and updates. What do you think, which one is going to be the best functional programming language in the next edition?