Rust vs Go - Which is Better and Why?

preview_player
Показать описание
What are the differences between the two and when should you use them?

Thank you very much for watching! If you liked the video, please consider subscribing to the channel :)

Topics:

00:00 Introduction
00:29 Simplicity
01:03 When Go simplicity can be limiting
02:10 Memory Management
02:50 Concurrency
03:31 Ecosystem
03:54 Compilation time
04:12 Deployment
04:29 When to use Go
04:44 When to use Rust
05:15 Rust for Web Development

Or follow me on:

Many thanks to Elena that helped me with the intro sketch!
Рекомендации по теме
Комментарии
Автор

Rust selling point
1. World's friendliest compiler
2. Challenging and feels good
3. No Garbage Collector
4. Blazingly fast
5. Strongly typed
6. Fantastic documentation

TON-vzpe
Автор

Go is simple and easy to learn, developers can easy adopt and use it in production in a short time, I am now learning Rust and I think the learning curve is very deep even though I have been programming for over 10 years.

kitgary
Автор

Rust has quickly become my favourite language, I found it pretty easy to pick up as well since the docs are decent

louisgjohnson
Автор

As a beginner programmer, I've been enjoying Rust a lot. The strict compiler might seem annoying at first, but when stuff goes wrong (which is all the time), it's genuinely helpful unlike any other language I've tried. Writing code being time consuming isn't really a factor for me—I already aim to write verbose and easily readable code as my highest priority. The idea being spending more time writing code now = less time being confused later.

nerothos
Автор

Rust is adding ~14 language features a year. C++ adds about ~10. C adds about ~0.7, and Go about ~2.

To quote Drew DeVault:

“Go is the result of C programmers designing a new programming language, and Rust is the result of C++ programmers designing a new language”

friend
Автор

Take only one week learning to use the rust, wow. I been learning about half year and still going through.

yemyint
Автор

professional C developer and I've recently tried both rust and go. I can't get over how much I love go. it feels like a modern C to me. rust borrow checking and ownership makes sense as a concept but in practice is really rough for me to get right. one of my favorite things about both is they aren't "truly" OO. I think OO just adds so much abstraction and confusion, while things like C are much more straightforward. you have a piece of memory that contains data and you manipulate that data by accessing the memory. that data is not "performing" any actions itself like objects are thought to do. and for the most part both rust and go don't have that overly abstracted OO feeling!

softpool
Автор

The comparison is unbiased. I can't believe it!

nikhilweee
Автор

I like how he mentioned the learning curve and getting your friends to use it, that’s my number one gripe with rust 😢

zainthemaynnn
Автор

Ideally Go should be compared with C# or Java and Rust should be compared with C/C++ . At end of the day for embedded systems what counts is how fast a executable runs on hardware. So looks like Rust could be a successor to C/C++ for embedded systems.

kmtecltduk
Автор

It doesn't sound like he grasped the real power of rust in his memory management section.

TechnologyBudda
Автор

I've used Go, Rust, C#, JS, Java and VB so far. Rust is by far the coolest language imo. Go and C# are on second place for different reasons. Go is simple and good for small apps, C# is great for large apps and if you want to do many different things, due to having a vast ecosystem.
I'm building a web application with Rust right now. I chose it due to security and performance. All my benchmarks placed Rust FAR ahead of other languages. And Rust forces you to architect your applications in a safer manner, which is critical for my application, since it's dealing with customer data. :)

WorstDeveloper
Автор

Wait a second, an unbiased comparison in 2020?? Impossible xD!


Also, one more advantage I would give Rust, is secure due to it being utilised as a safe language.

zyan
Автор

Fair, balanced comparison. Thank you!

scottlott
Автор

Why people keep comparing go and rust??? They are very different languages with different purposes

AlucardHV
Автор

The biggest reason I prefer Rust to Go was only lightly addressed here: program correctness. I feel like Go falls into a lot of the pitfalls of modern languages such as default null values. Though Unit testing is always important, I feel that if your program compiles correctly in Rust your program has a much better chance of being correct than a lot of other languages out there. I'm also a huge fan of RAII which is something that Rust seems to embrace. I really thought with the advent of GCs that RAII would be considered antiquated, but apparently it's making a resurgence and I'm totally fine with that.

djpeterson
Автор

I wanna ask youtube why this video has come in my recommendation list this late?
It's a total life saving and enlightening video.

theLionKing
Автор

I rewatched this for the first 12 seconds. :D

CyReVolt
Автор

This is a very good unbiased objective comparison, I have not previously worked on either of the two languages but I have learned much about them here. This is high-quality content, keep up the good work. I hope this channel grows.

salmanmohammed
Автор

tbh the compile time checks of rust are such a huge benefit, I am having a hard time justifying any alternative that doesn't have these features. I think this is something we're going to see adopted in many new technologies, but the old ones certainly will never implement it.

thisisnotok