Cookie Consent by Free Privacy Policy Generator 📌 Is Go Used in Production more than Rust ?

✅ Is Go Used in Production more than Rust ?

💡 Newskategorie: Programmierung
🔗 Quelle:

I was wondering if programs used in the real world are mostly written/built in Rust or Go? How to create a real world statistic to compare ?

Homebrew package manager

I found that Homebrew lists the dependencies of the package like this.

$ brew info eza
==> eza: stable 0.18.13 (bottled)
Modern, maintained replacement for ls
Not installed
License: MIT
==> Dependencies
Build: pandoc ✘, pkg-config ✔, rust ✘
Required: libgit2 ✘
==> Analytics
install: 12,792 (30 days), 38,295 (90 days), 68,375 (365 days)
install-on-request: 12,790 (30 days), 38,293 (90 days), 68,375 (365 days)
build-error: 0 (30 days)

The dependencies of eza to build are pandoc, pkg-config and Rust. So, I can get all software packages in Homebrew and query every package to get its dependencies, then calculate the number of packages which depends on Go and others on Rust.

I was wondering if I should execute system commands of brew list and brew info <pkg-name>, but fortunately, Homebrew has a json file containing all Homebrew Core Formulae.


So, I created a simple Go program named it "gobrew" to get the JSON API, then parse it, and count all Go-based software packages.

I made gobrew more general, so, you can use it to get the number of packages written in Ruby by this command gobrew -l ruby. You can specify any programming language or library or build system or runtime.

Statistics on April 26, 2024

The number of packages written in Go is 957. The number of packages written in Rust is 524. That means Go is the most used in software distributed by Homebrew package manager for production by far.

$ ./gobrew -l go

$ ./gobrew -l rust

You can try it yourself via gobrew on GitHub.

Here is a chart to help distinguish the difference in the count of packages.

# of Homebrew Core formulae written in Go vs Rust

other programming languages

I used this command to count packages written in these programming languages for me.

$ ./gobrew -l zig

Here is a table of programming languages (I thought of) and their packages count.

Language pkg count
python\@3.12 718
python\@3.11 67
lua 47
ruby 27
ocaml 26
perl 25
php 20
cython 12
Zig 6

build systems & libraries & runtimes

I used the following command to count packages which use the build system or runtime to get build or run.

$ ./gobrew -l cmake

Here is a table of build systems, libraries and runtimes (I thought of) and their packages count.

build system or runtime pkg count
pkg-config 1447
cmake 1011
autoconf 455
automake 435
libtool 366
ninja 253
meson 213
node 189
gcc 75
python-setuptools 75
llvm 30
luajit 22

my opinion

I think of Rust as a great language for low level programming such as operating system modules and device drivers. And I think of Go as the perfect backend programming language and CLI apps. I think that's why Go is almost 2x more used to create apps distributed via Homebrew compared to Rust.

I think Go is more useful for most cases, but there are other specific cases suitable more for Rust and Zig (which I think will succeed and get popular).

I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube, Twitter (x), LinkedIn, Facebook, Telegram and GitHub.


✅ Is Go Used in Production more than Rust ?

📈 37.02 Punkte

✅ Go or Python ? Which language is used more in production software?

📈 21.84 Punkte

✅ Open Source is More Secure than Closed Source because Closed Source is More Secure than Open Source

📈 21.64 Punkte

✅ GM To Invest More Than $2 Billion In US Manufacturing To Increase Electric Vehicle Production

📈 21.14 Punkte

✅ Samsung Reduces Phone Production by More than a Half for One Full Month

📈 21.14 Punkte

✅ Fossil-Fuel Production May Be Responsible For Much More Atmospheric Methane Than Scientists Thought

📈 21.14 Punkte

✅ Boeing's Last 747 Rolls Out of the Factory After More Than 50-Year Production Run

📈 21.14 Punkte

✅ Valve boosts production to ship more than double Steam Deck units

📈 21.14 Punkte

✅ Used Tesla Model S Sedans Sell Faster Than Any Other High-End Used Vehicle

📈 20.76 Punkte

✅ Biden Invokes Defense Production Act For Printed Circuit Board Production

📈 20.65 Punkte

✅ Verizon 2020 DBIR: More Extensive, More Detailed and More Thorough Than Ever

📈 19.55 Punkte

✅ Why Rust is More Than Just a Hype: A Developer’s Perspective

📈 19.54 Punkte

✅ Rust in Production

📈 19.04 Punkte

✅ Arti 1.0.0 is released: Our Rust Tor implementation is ready for production use.

📈 19.04 Punkte

✅ Two PoS Malware used to steal data from more than 167,000 credit cards

📈 17.97 Punkte

✅ Facebook Apps Now Used Monthly By More Than 3 Billion People

📈 17.97 Punkte

✅ Microsoft developer Sasha Levin reveals Linux is now more used on Azure than Windows Server

📈 17.97 Punkte

✅ A Used iPhone Is Much More Expensive than a Second-Hand Android Phone

📈 17.97 Punkte

✅ I Used Windows 7 for One Week and Now I Like It More than Windows 10

📈 17.97 Punkte

✅ Dofoil Trojan used to deploy cryptocurrency miner on more than 500,000 PCs in a few hours

📈 17.97 Punkte

✅ US Bans Export of Tech Used In 3nm Chip Production On Security Grounds

📈 17.48 Punkte

✅ Is Next.js 14 ready to be used in production for full ecommerce app??

📈 17.48 Punkte

✅ What is the most widely used website that utilizes Node.js in production?

📈 17.48 Punkte

✅ Report: Java 17 is now the most used version of Java in production

📈 17.48 Punkte

✅ Rust Basics Series #3: Data Types in Rust

📈 17.44 Punkte

✅ Medium CVE-2020-25791: Rust-lang RUST

📈 17.44 Punkte


Datei nicht gefunden!