top | item 43381813

(no title)

qweqwe14 | 11 months ago

The fact that it's faster than the C implementation that surely had more time and effort put into it doesn't look good for C here.

discuss

order

jandrewrogers|11 months ago

C++ surpassed C performance decades ago. While C still has some lingering cachet from its history of being “fast”, most software engineers have not worked at a time when it was actually true. C has never been that amenable to scalable optimization, due mostly to very limited abstractions and compile-time codegen.

vkou|11 months ago

I think you'll find that if you re-write an application, feature-for-feature, without changing its language, the re-written version will be faster.

renewiltord|11 months ago

This is known as the Second System Effect: where Great Rewrites always succeed in making a more performant thing.

johnisgood|11 months ago

It says absolutely nothing about the programming language though.

acdha|11 months ago

Doesn’t it say something if Rust programmers routinely feel more comfortable making aggressive optimizations and have more time to do so? We maintain code for longer than the time taken to write the first version and not having to pay as much ongoing overhead cost is worth something.

jason-johnson|11 months ago

How can it not? Experts in C taking longer to make a slower and less safe implementation than experts in Rust? It's not conclusive but it most certainly says something about the language.