top | item 46616183

(no title)

mid-kid | 1 month ago

I almost ignored this post because I can't stand this particular war, where examples are cherry picked to prove either answer.

I'm very happy to see the nuanced take in this article, slowly deconstructing the implicit assumptions proposed by the person asking this question, to arrive at the same conclusion that I long have. I hope this post reaches the right people.

A particular language doesn't have a "speed", a particular implementation may have, and the language may have properties that make it difficult to make a fast implementation (of those specific properties/features) given the constraints of our current computer architectures. Even then, there's usually too many variables to make a generalized statement, and the question often presumes that performance is measured as total cpu time.

discuss

order

steveklabnik|1 month ago

I will admit the title was a bit of a gamble, but thank you for taking the time to read it and I'm glad that you enjoyed it in the end.

nixpulvis|1 month ago

I just want to say, I always really appreciate your writing.

jibal|1 month ago

We recently had a post here where the claim being refuted was in quotes in the title, but half the comments were as if the article were making the claim, clearly indicating that people didn't read it (and don't understand how quote marks work).

jesse__|1 month ago

From the other side of the table, I love performance comparisons, so I always read these things. I also enjoyed your commentary, thanks for writing it :)

ActorNightly|1 month ago

Here is my issue

> Is Rust faster than C

> Example:

>... unsafe...

Its like Rust proponents can't even see the irony.

mywittyname|1 month ago

I agree, I thought this was a weird example - but I'm not a Rust nor C programmer.

I assume this example is used because programmers of either language reach for asm when looking for raw performance. But to me, it's shouldn't even be a discussion point, since even I know both languages can be made to emit the same assembly.

Also, I think it side-steps the hard parts of the question - which is, what are the performance impacts of Rust safety?