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 ...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
Not sure bro, I feel your list is missing Gleam
How was your experience with it? I’ve been procrastinating on trying it…
I just wrote tutorial examples, I can't give you an opinion. That's why I wanted yours 😅
I don’t have one either😅
I stopped learning rust after 1 month fcking learn haha 😂😂😂 i think gokag is enough for me
Golang is enough for most people hahaha
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?
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.
This is what I used to learn Rust:
germanovdev.hashnode.dev/rust-lear...
Good luck!
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.
Why not give it a try this weekend?
Golang is worth it my guy
Great article! I think I’m sold on trying Zig out 😆
So glad to hear that! I was thinking nobody would get that haha
(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 😳
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?!
What about Nim and Odin. Look both pretty nice.
I mean I have seen on them on twitch streams and YouTube but haven’t got around to trying them + OCaml yet…
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.
Glad that you liked it!
Do you know of any good learning resources for Zig?
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.
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
let me dare you, build a primitive git 😈
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
I like Rust but I hate the syntax and complexity ... so Zig it is for me :)
Rust is love ❤️
♥️
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.
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?