Programming language popularity: Rust

I have been learning Rust for more than a month. I already managed to upload a crate called rustatic a small tool I use to show the static web pages created by some of my projects. I also made nice progress on the Rust Digger and my Rust slides.

On one hand I enjoy learning a new language, but I have to keep in mind that my goal is to be able to provide training courses in a field where I can become the obvious choice for many companies.

This process has its ups and downs and today I started to wonder again if investing so much energy in Rust is justifiable? Is it trending upwards? How does it compare to other languages?

I looked at a number of resources.

TIOBE

I know TIOBE is a very problematic tool to measure programming language popularity and trends, but many people look at it so I should too.

A few selected numbers as of 26 July 2023:

Jul 2023Jul 2022NameRatings %Change %
11Python13.42-0.01
67JavaScript3.11+1.34
911PHP1.41+0.21
1312Go1.07-0.07
1615Ruby0.91+0.08
1729Rust0.89+0.47
27naPerl0.65na
41naTypeScript0.31na

PYPL PopularitY of Programming Language

As far as I know PYPL PopularitY of Programming Language is a much better measurement:

RankChangeNameShare %1-year trend %
1Python27.43-0.2
3JavaScript9.40-0.1
6PHP5.03-0.4
8TypeScript3.02+0.3
10+++Rust2.15+0.6
12-Go2.01+0.0
15Ruby1.10-0.0
27-Perl0.29-0.0

Google Trends

Finally I looked at Google Tends. I know that at PYPL is partially (?) based on Google Trends so these two are definitely not independent sources of information, but it is nice to look at the graphs.

However, those graphs don't seem to make any sense.

  • When I looked at "Perl tutorial" since 2004 it went down from 100 to under 1. It is very dramatic, but maybe that's true.
  • However "Python tutorial" was around 30 in 2004 and it is around 20 now in 2023 when looking at it together with "Perl tutorial".
  • When looking at "Python tutorial" alone the shape of the graph is the same, but of course the numbers are different. (around 75 in 2004, peak 100 between 2018-2020 and 42 now.)
  • I was expecting "Python tutorial" to have increased a lot since 2004.
  • If I use the search term "python" (which can also refer to the snake, to the comedy troupe, and probably other things) then I can see the upward graph from 28 in 2004 to 75 now with a peak of 100 in the last year. Compared to that "python tutorial" does not even register on the graph.
  • The "perl" vs. "python" graph looks a lot more the way I was expecting it.
  • When I added "rust" to the graph of "perl" and "python" it started at around 6 in 2004 and 18 now. Given that the Rust language first appeared in 2015, means that a large chunk of those searches refer to other meanings of "rust".

Just Rust

Let's try to focus just on Rust.

  • "rust" alone clearly means other things as well, not just the programming language.
  • If I compare "rust" to "rust language" or "rust lang" or "rust tutorial", none of these pass the 1% compared to "rust".
  • "rust itself is mostly flat between 2004-2013 with seasonal fluctuation.
  • In January 2014 there is a jump to 76 then it levels at around 40 with maybe a slight upward slope.
  • In January 2021 there is another jump to 100 and since then it is between 60-70.

When looking at the related queries I can see that there is a game called rust console for the PlayStation and the Xbox. There is also a French movie called Rust and Bone that came out in 2012.

Two notes: I set the location to "Worldwide", the timeframe to "Since 2004"

GitHub

Another way to measure popularity of programming languages is to look at GitHub.

Top languages used in 2022

  1. JavaScript
  2. Python
  3. Java
  4. TypeScript
  5. C#
  6. C++
  7. PHP
  8. Shell
  9. C
  10. Ruby

The fastest growing languages

RankNameGrowth %
1HCL (Hashicorp Configuration Language)56.1
2Rust50.1
3TypeScript37.8
4Lua34.2
5Go28.3
6Shell27.7
7Makefile23.7
8C23.5
9Kotlin22.9
10Python22.5

Languish

  • Languish is another nice graph based on data from GitHub and Stack Overflow

This one tells us:

  1. Python is going up
  2. JavaScript is going down
  3. TypeScript is going up
  4. Java is down
  5. C# slightly down
  6. C++ stagnates
  7. Markdown is booming (really? who is programming in Markdown?)
  8. Leveled with slight downward slope recently
  9. HTML slight downward slope (where are all the HTML programmer?)
  10. C leveled
  11. Rust upward except in the last quarter. Is there trouble ahead? ...
  12. Perl sadly fading away.

OSS Insight

Rankings of back-end programming languages

This puts Rust in the 9th place

  1. Python
  2. Java
  3. Go
  4. C++
  5. C#
  6. PHP
  7. Ruby
  8. Shell
  9. Rust
  10. C

GH Archive

  • GitHub Archive is a project to record the public GitHub timeline, archive it, and make it easily accessible for further analysis.

There were no reports here, but this could be really useful at one point.

Redmonk

GitHut

Ranking of languages based on pull-reuqets, stars, pushes, issues. Rust is 10-13 in all 4 categories.

Comment

As you might have noticed, at one point I got tired detailing my understanding and copying over some numbers. It does not mean the reports and sites at the bottom of this page are less good. I just got to them later.

Conclusion

  • Go is more popular than Rust, but Rust is trending upward very fast.
  • They are both far away from Python which is number 1 in most places.
  • Perl has almost disappeared from most of the charts and rankings.

Conlusion round 2

  • As someone rather new to Rust, but nevertheless someone who would like to make a living of it, I was interested in the popularity of Rust and the trends. I looked at a number of resources.

  • My conclusion is that Rust is slightly behind Go in terms of popularity. Around 10-12th place among all the languages. They are both far behind Python which is ranked as the most popular language in most places. They are both far ahead of Perl.

(I am comparing to Python and Perl as these are the two other languages I am most familiar with and because I have access to a lot of behind-the scenes data about Perl, being the editor of the Perl weekly newsletter and the largest Perl web site.)

The popularity of Rust grew a lot in the last year.

So if I am looking at the time I spend on learning Rust, beyond the fun, as an investment, it looks good.