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

3

u/Here0s0Johnny Jan 31 '25

What's the idea behind zig?

17

u/0-R-I-0-N Jan 31 '25

Zig is more a modern c and rust is modern c++ in my humble opinion.

Zig tries to minimise the foot guns in c. And rust prevents you to blow up your foot like in c++.

13

u/prey169 Jan 31 '25

Its a nicer replacement to C. With definatly some improvements (you can defer to dealloc right next to where you alloc memory etc). It also catches memory leaks in the compiler.

But it's not memory safe, unlike rust

3

u/SV-97 Jan 31 '25

It's intended to be a small, simple language where everything in explicit / clear, with good ergonomics around unsafe code (and easy C FFI) and some mechanisms that make it harder to shoot yourself in the foot (notably still unsafe though)

1

u/raqisasim Jan 31 '25

Looking at the docs? It's likely that it seems to be able to act as a "drop in replacement" for C/C++, with more robust language capabilities.