Why do we need Rust?
# random
v
Why do we need Rust?
e
To replace abomination of C++ for systems programming and actually make our systems safe.
v
And slow...
If I'm not mistaken, the hardest system code is done in C (even if it is not safe), not even C++
I saw benchmarks for C, C++, and Rust. Rust is slower than C++, which is slower than C
g
I'd like to see those, I've seen where it slower, but only by a few percent, which is fine to trade in for more safety. And for some things not even C is powerful enough, so you'll need assembly, but rust let's you include assembly (but then it's not 100% anymore)
v
You're right. Just percents, but it almost always (always vs C) consume more memory 😁
I don't remember exactly, where I saw it, but this one looks familiar https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/rust.html
g
And you don't have any memory leak in rust. I would rather see some real world examples instead of very small bits of code.
v
Yep, but we still write in old plain C. So why Rust is even less popular than FORTRAN?
I can assume that it's because of its speed and memory consumption + necessity to learn new syntax
d
because all those rankings are shit
k
Why is Java more popular than Kotlin?
Rankings don't correlate with benefits of the language.
v
But they measure it somehow
k
Some weighted sum of questions on stackoverflow and searches on google usually.
v
So those rankings may correlate with a language difficulty + caused problems
Java on top