DEV Community

Cover image for I Tried Every Hot Programming Language

I Tried Every Hot Programming Language

Kuvam Bhardwaj on December 13, 2024

In this post, I'll make an attempt to compare GoLang, Zig, and Rust. And why Rust wins this comparison (for me). Story Time! I wrote 3 ...
Collapse
 
danielo515 profile image
Daniel Rodríguez Rivero

Not sure bro, I feel your list is missing Gleam

Collapse
 
kuvambhardwaj profile image
Kuvam Bhardwaj

How was your experience with it? I’ve been procrastinating on trying it…

Collapse
 
danielo515 profile image
Daniel Rodríguez Rivero

I just wrote tutorial examples, I can't give you an opinion. That's why I wanted yours 😅

Thread Thread
 
kuvambhardwaj profile image
Kuvam Bhardwaj • Edited

I don’t have one either😅

Collapse
 
ahsandev2019 profile image
ahsandev2019

I stopped learning rust after 1 month fcking learn haha 😂😂😂 i think gokag is enough for me

Collapse
 
kuvambhardwaj profile image
Kuvam Bhardwaj

Golang is enough for most people hahaha

Collapse
 
beto0607 profile image
Albanesi, Roberto Javier

Loved the article!
I started learning a bit of Zig yesterday, and I'm planning to give it s try to Rust in the future.

Do you have any suggestions on learning material?

Collapse
 
kuvambhardwaj profile image
Kuvam Bhardwaj

So glad that you liked the article!

You can start by learning fundamentals like ownership model, basic syntax and module structure from the rust book, and grab a small CLI side-project to apply the newly learnt stuff, I’ve found this way to work the best.

Collapse
 
andreygermanov profile image
Andrey Germanov

This is what I used to learn Rust:

germanovdev.hashnode.dev/rust-lear...

Good luck!

Collapse
 
kasir-barati profile image
Mohammad Jawad (Kasir) Barati

For me only JS + Python. Golang is still in the back of my mind, but never got a chance to give it a serious try though.

Collapse
 
stephenshorton profile image
Stephen Horton

Golang is worth it my guy

Collapse
 
kuvambhardwaj profile image
Kuvam Bhardwaj

Why not give it a try this weekend?

Collapse
 
valeriavg profile image
Valeria

Great article! I think I’m sold on trying Zig out 😆

Collapse
 
kuvambhardwaj profile image
Kuvam Bhardwaj

So glad to hear that! I was thinking nobody would get that haha

Collapse
 
taikedz profile image
TaiKedz

(My use cases are making CLI tooling for automation and testing.)

I've had a stab at all three this year, tried Rust and whilst it looked cool initially, as you try to ramp up the project, it does feel like it gets in your way more often than not... I actually found it easier to track the memory with Zig than with Rust.

But Go feels like it has just that little bit more welcome abstraction that makes it not quite as fast as Rust and Zig, but definitely a serious speed demon contender...

I really want to settle in with Zig but.... Go is easier to get-going with and Zig is still likely to change quite a few things at syntactic level... so I'm pursuing Go at the moment, and will come back to Zig when it hits 1.0

And yeah, I'm giving up on Rust. Smarter people than me seem to be having issues wrapping their cerebelli around it and I'm not up for that pain 😳

Collapse
 
kuvambhardwaj profile image
Kuvam Bhardwaj • Edited

I feel you man… and as I concluded above, a lot of people are happy working with zig even though it’s not “memory safe”

Your point about rust getting in way as you ramp up seems interesting, and maybe I’ll run into the same issue,

But for now, rust feels fine to me, who knows maybe I’ll switch to go or zig later, idk…

But hey! more you mess around more you find out right?!

Collapse
 
crenshinibon profile image
Dirk Porsche

What about Nim and Odin. Look both pretty nice.

Collapse
 
kuvambhardwaj profile image
Kuvam Bhardwaj

I mean I have seen on them on twitch streams and YouTube but haven’t got around to trying them + OCaml yet…

Collapse
 
milnor profile image
Milnor

Enjoyed your article! It was refreshing that you stated your favorite in the second sentence, rather than telling the reader they had to read everything to find out.

Collapse
 
kuvambhardwaj profile image
Kuvam Bhardwaj

Glad that you liked it!

Collapse
 
kaamkiya profile image
Kaamkiya

Do you know of any good learning resources for Zig?

Collapse
 
kuvambhardwaj profile image
Kuvam Bhardwaj

The syntax is fairly simple and there are language reference docs but you have to put significant effort into understanding what parameter does what as a lot of functions are undocumented as of now,

A simple side project + ChatGPT search on docs can take you miles.

Collapse
 
sc7639 profile image
Scott Crossan

I'm a go fan but really want to learn rust too maybe I'll make that my Christmas break goal. Build something in rust, any ideas

Collapse
 
kuvambhardwaj profile image
Kuvam Bhardwaj

let me dare you, build a primitive git 😈

Collapse
 
koire profile image
Koire

I know it's not the new hotness, but kotlin is a pretty good contender with go and rust if you don't mind jvm

Collapse
 
alirezanet profile image
AliReZa Sabouri

I like Rust but I hate the syntax and complexity ... so Zig it is for me :)

Collapse
 
zai profile image
Zai

Rust is love ❤️

Collapse
 
kuvambhardwaj profile image
Kuvam Bhardwaj

♥️

Collapse
 
aaron_smith_676bee7262cfb profile image
Aaron Smith

Go is great until you want to do metaprogramming (templates) - and then you're forced to copy paste. Overall, it's a pretty decent language, it's just clunky in this regard.

Collapse
 
plutonium239 profile image
plutonium239

What do you mean by templates here? Go's templating engine is really strong afaik, it is the base of the hugo static site generator. Hugo is the best right now unless you want to make everything in html/css/js, and it's miles better than jekyll (the previous "standard").

Do you mean something completely different?

Some comments have been hidden by the post's author - find out more