DEV Community

Cover image for The Hidden Power of Rust

The Hidden Power of Rust

Nathan on May 02, 2022

There are many programming languages out there, each with its own strengths and weaknesses. But what makes the Rust programming language so special...
Collapse
 
redoxeon profile image
Michael Harding

I'd also check out Exercism's rust track, it offers good learning exercises and mentoring for learning lots of languages, and it does a good job of teaching the concepts in each language it has :D

Collapse
 
nathan20 profile image
Nathan

Hey thank for sharing !

Collapse
 
tamusjroyce profile image
tamusjroyce

What is the hidden power of rust? It is in your title. If you had to say it was one thing, what would it be?

Collapse
 
ashkanmohammadi profile image
Amohammadi2

I think the variable ownership model is the hidden power of rust

Collapse
 
nathan20 profile image
Nathan

For me it is Performance !

Collapse
 
ajinkyax profile image
Ajinkya Borade

I have a love and hate relationship with Rust.
I love Rust and want to program with it, but the adoption speed is not that great, sadly I'm in web/software development where JavaScript and Kotlin dominates this side of the world.

Collapse
 
simeg profile image
Simon Egersand 🎈

Nice write up! As an avid Rust user (although far from professional) I believe you missed the most important quality of the language -- it's so much fun! I really enjoy writing Rust! It has nice modern features and the tooling around it (cargo, crates) are easy to use.

Collapse
 
glenn_miller_860ba12ffbf7 profile image
Glenn A Miller

Bagron was my go to guy on YouTube when I initially took up Rust. I learned so much from him. I can't recommend him highly enough.

Collapse
 
stephensmith9 profile image
Stephen Smith

Any link? A quick search on youtube or google does not return any results for 'bagron rust tutorials'.

Collapse
 
glenn_miller_860ba12ffbf7 profile image
Glenn A Miller
Thread Thread
 
stephensmith9 profile image
Stephen Smith

Thank you! These look awesome.

Collapse
 
samueljosephs profile image
SamuelJosephs

This is wrong, the c++ compiler is just as good as optimising as the rust compiler. If your using clang rust and C++ use the same backend (LLVM). Rust and C++ will put out binaries of the same speed and c++ binaries are normally smaller. Where on earth did you get this information? I love rust but this is just wrong.

Collapse
 
nathan20 profile image
Nathan

Actually C++ is generally faster than Rust in some scenario, but if you use certain safety features in Rust, it can start to slow down. However, the faster compilation speeds are worth the extra time, since it can help avoid difficult issues later on. Ultimately, it comes down to personal preference and what you're looking for in a language.
I think we are in agreement.

Collapse
 
suhaibali2002 profile image
suhaibali2002

great information but i think C++ best choice for Beginner's to know the Language basics

Collapse
 
nathan20 profile image
Nathan

Maybe you are right , Rust for beginners is little bit difficult

Collapse
 
5th profile image
Marius

clear and concise, love it!
tho i think you could've mentioned Rust by Exemple :)

Collapse
 
nathan20 profile image
Nathan

Thank you ! I will check it maybe I will mention it

Collapse
 
nathan20 profile image
Nathan • Edited

Hmmmm

Collapse
 
jwp profile image
John Peters

Does it allow for desktop applications? Can they easily host a browser?

Collapse
 
yassineldeeb profile image
Yassin Eldeeb 🦀 • Edited

Definitely! But please keep in mind that Rust takes a lot of effort in the learning process, It's not as ruby, python or JS that you can start using and learn by practice cause I've done that first and it was an awful experience. I was like: "what does that mean for this to have short lifetime? Why you can't borrow something twice mutably? What's this trait thingy? the borrow checker makes no sense" If you came from a higher level language like me then there are a ton of low-level details that you'll be missing, recommend reading the rust lang book before starting a project, It's fantastic 👌

Collapse
 
nathan20 profile image
Nathan

I definitely agree with you ! I also learned some High level programming language like python js or even java, but the learning process for RUST is completely different and takes more time. At the end I am sure that is worth :)

Collapse
 
yassineldeeb profile image
Yassin Eldeeb 🦀 • Edited

For the desktop application part then yeah, but keep in my mind that the ecosystem isn't very mature as if you would develop it with C++ or ElectronJS, that being said everything is possible with some workarounds and creative design patterns.

For a production example, check Deadliner

Collapse
 
nathan20 profile image
Nathan

Hi John rust is powerful backend language! Whatever which platform on the front

Collapse
 
jonathanriche profile image
Jonathan

Check out Tauri tauri.studio/

Collapse
 
rxmoein profile image
Info Comment hidden by post author - thread only accessible via permalink
Moein Hosseini

I see no important information here, you are not talking about power of rust you are just saying rust is better than cpp. And most of the time this kind of comparisons are for fun. In real world you may use any tool based on your needs. I was expecting more details about the rust itself, I don't really care about which one is better or not.

Collapse
 
masonharper profile image
Mason Marper

Thanks for sharing

Collapse
 
edward_naidoo profile image
Edward Naidoo

I've clicked on the Discord link but it is now invalid. Is there another place I can go to find it?

Collapse
 
g33ksuperstar profile image
g33ksuperstar

Rust is the overcomplication of safety. Zig is the simplicity of safety.

Collapse
 
archnim profile image
archnim

If you want a language with the advantages of rust, but a much easier syntax, just switch to Nim 🤓
nim-lang.com

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