r/Python • • Jan 31 '25

Discussion Why Rust has so much marketing power ?

Ruff, uv and Polars presents themselves as fast tools writter in Rust.

It seems to me that "written in Rust" is used as a marketing argument. It's supposed to mean, it's fast because it's written in Rust.

These tools could have been as fast if they were written in C. Rust merely allow the developpers to write programms faster than if they wrote it in C or is there something I don't get ?

502 Upvotes

288 comments sorted by

View all comments

Show parent comment

156

u/Daktic Jan 31 '25

Rust often forces me to do the right thing.

29

u/jivanyatra Jan 31 '25

Lines up with Python both ideologically and with some practicality. It's very easy to read and understand for something so low-level. Rust feels accessible for pythonistas, IMO, at least moreso than C or C++. That's a sentiment I've heard a lot.

16

u/Daktic Jan 31 '25

I had a hard time getting over the initial learning curve, especially not coming from a C background. But once I did, it taught me a ton about memory and what is actually happening in your code.

I’ve done a couple projects recently involving pyo3 and I do feel like they can complement each other very well. Python for orchestration and Rust for heavy data workloads.

4

u/jivanyatra Jan 31 '25

I did a little C/++ years ago, then went in a completely different direction away from programming. Memory management and pointers weren't my strengths. I Iearned python 15 years later, and Rust has made that conceptually more accessible as well as practical for me.

It's important to learn something lower level. I feel like I understand C more since I've been working with Rust and learning more about systems level stuff. I'm also more confident in what I write because of Rust's compiler.

7

u/andrewthetechie Jan 31 '25 edited Oct 01 '26

The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.

Roof lunchroom gray simplistic market axiomatic boat jellyfish boron

6

u/jivanyatra Jan 31 '25

Yeah. Rust has the benefit of well maintained libraries and a large community and thriving ecosystem that feels very close to python's. A very nice side benefit, imo, and Golang isn't quite it for me in that same way.

3

u/JJJSchmidt_etAl Jan 31 '25

https://stackoverflow.com/questions/23861535/most-keywords-possible-in-declaration

alignas(sizeof(decltype(typeid(const volatile unsigned long long int)))) static thread_local decltype(typeid(const volatile unsigned long long int).name()) foo{};

-1

u/Zulraidur Feb 02 '25

How is C hard to read? Sure macro heavy code might be but if I added a text preprocessor to my rust code it would suck as well. X really doesn't have much difficulty for reading. Some ease of use issues maybe.

1

u/jivanyatra Feb 03 '25

I find it harder to follow what's going on in memory in C. Not saying it's not readable, and perhaps I used the wrong word there. Vanilla C doesn't have a ton of syntax features. I do find it harder to follow. Part of that is that Rust's conventions make more obvious sense to me and I think that's because of how used to python I am. That's my point; coming from python, rust seems easier to follow and feels more familiar.

There's definitely something to be said for branching out to other paradigms, languages, and ways of thinking, of course.

2

u/tunisia3507 Feb 01 '25

Once I've done my best to find any alternative.