| ▲ | IshKebab 16 hours ago | |||||||||||||
I think the only reasonable way to interpret this question is "is Rust written by reasonably competent Rust developer spending a reasonable amount of time faster/slower than an equally competent C developer spending the same amount of time". I don't think a language should count as "fast" if it takes an expert or an inordinate amount of time to get good performance, because most code won't have that. So on those grounds I would say Rust probably is faster than C, because it makes it much much easier to use multithreading and more optimised libraries. For example a lot of C code uses linked lists because they're easy to write in C, even when a vector would be faster and more appropriate. Multithreading can just be a one line change in Rust. | ||||||||||||||
| ▲ | oguz-ismail2 16 hours ago | parent | next [-] | |||||||||||||
So assembly is the slowest language? | ||||||||||||||
| ||||||||||||||
| ▲ | kstrauser 14 hours ago | parent | prev [-] | |||||||||||||
Or honestly, anything involving a hashmap. Of course you can write those in C, but it’s enough friction that most people won’t for minor things. In Rust, it’s trivial, so people are more likely to use them. | ||||||||||||||