An Introduction to Coding In Rust for Pythonistas

preview_player
Показать описание

In this video, I'll explore coding with Rust for the first time, diving into its cool features and drawing comparisons with Python.

🔖 Chapters:
0:00 Intro
1:12 Hello world
3:32 Macros
4:27 Overview of key differences
8:25 Python classes vs Rust struct
15:59 Differences between an ABC and a trait
18:29 Macros in Rust
19:26 Final thoughts

#arjancodes #softwaredesign #python
Рекомендации по теме
Комментарии
Автор

Not sure if you're going to get to it but I wanted to comment as I saw this. Cargo (built into rust) is more useful for building and running. Instead of `rustc user.rs` and `./user` you can just `cargo run` and it runs the main binary of your package.

mrrobotman
Автор

It would be cool to see how we can create rust bindings to python and use rust functions in our python programs. Really get that "best of both worlds" started!

_DRMR_
Автор

Yes more Rust please. But also continue with Python. The two together are a dream team.

drz
Автор

More rust content please! I'm rewriting nearly all my python code in Rust. There is a extensive amount of CS concepts that I have to learn along the way. But in the process of being a better rust developer, I'm becoming a better developer overall!

NoelTanner
Автор

With PyO3 and Maturin, you can seamlessly expose your rust code as python modules. Very useful when you have an existing python codebase, so you can rewrite the slow modules without modifying how they are used.

williamdroz
Автор

More of this! I loved your python Videos. They helped me so much to build a strong foundation. Since then I have taken a more „rusty“ path and would really love for you to make more videos in that area

TVDaJa
Автор

I really wished you would have mentioned rust up for installing and managing your rust versions and also cargo. The tooling around rust is a major reason why I and so many others are drawn to the ecosystem! Great to see this though! Keep it up

austinraney
Автор

Very timely for me. Just switched my learning effort from Python to Rust. Borrowing and lifetimes are doing my head in so any content focused on those gnarly aspects would be much appreciated.

robbybobbyhobbies
Автор

Arjan, this content is extremely valuable and rare. There are millions of programmers who mainly or only know python (say they came from data/sciences etc.) You’ve taught them python and now you can introduce languages from a “pythonista’s” PoV.

Which unlocks a whole new ecosystem for your viewers. Usually these language guides aren’t written for python users so it is double valuable.

astronemir
Автор

please make a series on how to do things in Rust for Python programmers, covering things like logging, error handling, async await, context managers etc...

there are a lot of youtubers that are specialized in Rust, but very a few specifically target Python programmers who are interested in rust, and there are many, and since your channel kinda does, it will be a perfect opportunity to capture new audience and\or bring back people who already "mastered" Python

alijoumma
Автор

Very nice timing! I started reading up on Rust during the Christmas break and I kind of like it. Used to do some coding in C, so quite familiar with some of the differences to Python. Would be awesome if you would cover more rust, especially bridging Python and Rust.

Golgafrincham
Автор

Would LOVE to see more Rust content on this channel in the future... it's my favorite language!

isaacchen
Автор

Right time!!! Wow, I am a python developer, use Python every single day but now learning Rust!! Thank you!!!

alejandroenriquez
Автор

Wow Ia want more videos about rust and I like the comparisons made with python (I haven't seen a channel doing this kind of comparisons).

Before the version 1.0 Rust implemented classes but switched to another model: Algebraic data types. Rust can still do some mainstream OOP but can't implement inheritance (since composition is prefered in more cases).

Python FP is more of an afterthought so it's not as elegant as Rust but his OOP is more convenient for inheritance

fabricehategekimana
Автор

@ArjanCodes Please do more RUST videos! Thanks!

SagiTaurus
Автор

This was a great intro to rust. Appreciated the comparison against Python.
Really like how compiling shows 'dead code' as this is a feature missing in (native) Python.
Looking forward to many more rust videos!
Any chance you can demonstrate executing rust from python?

thisoldproperty
Автор

Now this is what I expect from Arjan ❤❤❤ quality as always, unique and thoughtful. Thanks as always

twentytwentyeight
Автор

Greeat video.

Would be great if you could make a video of implementing a Rust binding for Python. This would show a practical example of creating highly performant python module.


Also would be great to see a video on rules of thumb when you would chose rust over python (and in which instances rust would not bring many benefits e.g. i/o being bottlenecks)

janiscakstins
Автор

Great timing with this video! I am currently looking into learning Rust as my second language!

Murder-Junkie_
Автор

I would love to see examples how to use Rust along with Python on some computation expensive operations...

samarbid
join shbcf.ru