Error Icon

Something went wrong. Please try again

Most Popular Programming Languages on GitHub Hero Banner

Most Popular Programming Languages on GitHub

December 23, 2022 | 5 min read

HeaderIMG Most Popular Programming Languages on GitHub

The open source community on GitHub is getting bigger and bigger and thanks to the Open Source Contributor Index (OSCI) we can see what commercial companies are the biggest contributors. Another useful insight that can be found there is what the most popular programming languages are used by these companies. This is an interesting indicator that shows not only how software is built but also what types of software are gaining popularity.

In this article, we'll have a look at what the most popular programming languages in 2022 were according to the GitHub report, why exactly these languages and will compare it to similar reports in previous years. Also, we've recently prepared a post about the best artificial intelligence (AI) programming languages. Take a look, to learn more.

Open Source Programming Language Popularity in 2022

Although more than 500 programming languages were used in 2022, Java, JavaScript, and Python remain the leading ones. While TypeScript has seen a considerable rise in the last couple of years and remained in the fourth position, PHP is still on its sharp way down ending up at the seventh position in 2022. After some unstable periods in popularity, C# keeps stable at the fifth position for the second year in a row. Although it's experienced a sharp decline in popularity since 2015, Ruby has stayed at the tenth position for the last four years.

Top programming languages on GitHub in 2022 (Source: GitHub)

Programming Languages on the Rise in 2022

Although it's still not on the list of the ten most popular programming languages in the open source community, Hashicorp Configuration Language (HCL) with a 56,1% increase in popularity is the fastest-growing language according to GitHub. This is mainly due to the need to automate deployment. It's closely followed by Rust which has recorded a 50,5% rise in popularity explained by its reliability and security.

With 34,2% growth Lua is the fourth fastest-growing language in 2022. It's used mainly for application, IoT, and game development projects, and since these domains are on the rise as well Lua as a scripting language is rising along. As a relatively new programming language, Go is becoming increasingly popular mostly because of its interoperability, ease of use, and powerful functionalities applied in cloud development.

Generally, it's obvious that mobile application development is on the rise and consequently programming languages used for these purposes are also gaining in popularity. With 22,9 % of growth, Kotlin is definitely one of them. Although Python is already among the 10 most popular programming languages used for open-source projects, making a rise of 22,5 % in 2022, it's definitely still on its way up.

Language Popularity Across All Companies in the OSCI in 2020

First, let's look at the language popularity across all commercial activity on GitHub.

Java turned out to be the most popular, followed by five to six languages at broad levels of popularity – C++, JavaScript, TypeScript, Python, Go and C.

In total, commits were made to repositories associated with 179 programming languages. Repositories using the top 10 languages accounted for 83% of commits, and the remaining 169 languages made up the other 17% of commits.

Language Popularity for the Top Five Companies in the OSCI in 2020

Next, we focused on the activity of the top five companies in the OSCI—Google, Microsoft, Intel, IBM, and RedHat—and saw a rather different picture.

In total, across the top five, PowerShell and Go appeared to be much more dominant than they are for the 'all companies' view, whereas Java and JavaScript were relatively less popular.

C++, Python, C and Typescript had similar levels of popularity among the top five as for the rest of the companies.

A Deeper Dive into the Most Popular Languages at the Top Five Companies in the OSCI

To better understand what is driving the popularity of the languages used by the top five companies in the OSCI, let's take a deeper look at the breakdown of languages used at each individual company.

This diagram reveals many interesting details, including:

  • PowerShell and C# repositories were popular only at Microsoft and together accounted for over 50% of the company's activity, which is why PowerShell repository commits ranked as the most popular language across the top five companies in the previous diagram.

  • Go had significant use at all five companies.

  • Python was also used significantly at every company – particularly at RedHat.

  • Java was popular at all of these companies, except Intel where its usage was just 3%.

  • At Intel, C and C++ dominated, making up 75% of all activity while the rest of the companies used a more diverse set of languages.

As shown in the graph below, Google made commits to repositories with the largest number of languages, closely followed by Microsoft.

Normalized Rankings

We were curious about what would happen if we took the size of the company out of the equation so that the activity of a small company counted the same as a large company. This neutralizes the influence on the overall statistics of a large number of commits from big companies and better illustrates the breadth of language popularity across all companies in the OSCI.

The graph on the left below displays the normalized ranking where the activity of a smaller company counts just as much as that of a large company. In contrast, on the right, we repeat the same overall language popularity graph shown at the start of this article.

The first observation from this normalization is that JavaScript was the most broadly used language, followed closely by Java and Python. However, Java's dominance was more muted in the normalized view. The other most popular programming languages were Go, C++, C, and Typescript.

If we make a crude grouping of front-end versus back-end programming languages, JavaScript and Typescript together with HTML totaled 25%, whereas Java, Python, Go, C++, C, PHP, and C# totaled 55%.

It must also be noted that Powershell disappeared from the top 10 in this normalized view. In fact, in this analysis, its usage was less than 2%, which is not surprising considering that Microsoft alone accounted for 98% of all the commits made to Powershell repositories.

Conclusions of 2020 Analysis

From this study of the most popular programming languages in open-source projects contributed by commercial organizations, our observations include:

  • The most generally popular open-source languages across the 300+ companies studied in the OSCI analysis were JavaScript, Java, Python, Go, C++, C, and Typescript.

  • There were very different patterns in programming language usage across organizations. For example, languages like C and C++ were more dominant in some companies while other organizations displayed a broader range of language activity.

  • Activity on repositories where the primary language was a traditional back-end language was over double that on repositories where the primary language was a front-end language.

To summarize, our OSCI data provided valuable insight into language usage in open-source projects where employees of commercial organizations are active.

Coding Stories

Resource for building engineering skills

CodingStories_1440-1024

Bottomline

In this article, we've tried to focus on in-demand programming languages and the ones most commonly used in the open-source community. It is not only interesting to follow the trends but can also be very useful when making the decision on which programming language to use for your new projects.

Loading...

Related Content

View All Articles
Subscription banner

Get updates in your inbox

Subscribe to our emails to receive newsletters, product updates, and offers.

By clicking Subscribe you consent to EPAM Systems, Inc. processing your personal information as set out in the EPAM SolutionsHub Privacy Policy

Loading...