Rust vs Python: The Ultimate Showdown!

preview_player
Показать описание
Are you trying to decide between #rustlang and #python for your next project? Look no further! In this video, Dario Lencina, staff engineer compares the two programming languages in terms of, syntax, readability, and ergonomics. Whether you're a seasoned developer or new to the scene, this video has something for everyone. So sit back, relax, and let us help you make an informed decision on Rust vs Python.

If you're wondering if Rust is a good language for you, or if Python is still the king of the hill, then this video is for you! I'll share my thoughts on the different languages, and let you know which one I think is the best for certain scenarios. So what are you waiting for? Watch the video and make your decision!

Chapters

02:04 Fibonacci numbers in Python and Rust
06:03 Rust composition vs python inheritance
18:26 Rust vs Python comparison matrix
Рекомендации по теме
Комментарии
Автор

Rust is not an OOP language. While you can write in OOP style yet it's not recommended. In Rust, you should prefer composition (via Traits) over inheritance (like in Python).

awnion
Автор

2:45 I feel like thats just not a valid argument, you can use a language server for python in vscode. If you enable it you'll get the following errors

> Function with declared return type "int" must return value on all code paths Pylance(reportReturnType) [Ln 1, Col 20]
"None" is incompatible with "int"
A Expression value is unused [Ln 7, Col 9]

furyzenblade
Автор

Python is the Yin to Rust's Yang. They compliment each other's weaknesses almost perfectly.

kameikojirou
Автор

5:58 the python implementation is actually shorter. 12 lines vs 13, you just counted 2 empty lines at the end of the python program
i know this is nitpicky, but counting lines like this is nitpicky in the first place, and you overcounted by like 20% - and you're also counting the assert, which isnt required

danielschmider
Автор

I am just getting into coding and am trying to pick a language to learn. I have only a hobbyist level of attention but it feels like I want to try making things that do things. Possibly get into a bit of AI, but I'm not sure yet. It seems like Rust, Python, and JavaScript are the best options for what I'm looking for. (But I'm not sure so feel free to suggest something else)

From my current understanding, Rust is an "operating system" level code that gives me an efficient way to set things up. Not sure it will be good for application stuff.

Python is a very widespread language that's pretty general purpose. Kinda a happy medium between what feels like hard core code and stuff that regular folks in interact with.

JavaScript is the English of the coding world. It's the most widespread language and its pretty good for making things that interact with actual people rather than computer to computer or within the same machine.

Is it possible or practical to learn multiple languages? I see him doing both here but I'm just a hobbyist.

TheMarshmellowLife
Автор

This is my endless cycle as a SWE, going from scripting languages to compiled languages and back again lol. I love lua, fennel, python but as soon as the project grows just slightly... well.

I've found Go to have the best of both worlds, it feels like a scripting language to me, but it's compiled.

fekodo
Автор

Python is a toy, Rust is a Rocket. No doubts, stop it...get some help.

ncpeaksean
Автор

I love that rust don't have inheritance, because I hate it 😂

hamdysaadpersonal
Автор

Pythons is VS Code, Rust is Neovim. And youre using VsCode, facts.

ncpeaksean
visit shbcf.ru