Reduced your what? The article seems to be cut off.
the reason why I thought this PR was interesting is that, it only needed ~ 4 lines of real change, everything else was cascades due to that change. and the performance did improve with that "pointless formatting and whitespace changes"
Rust is a programming language. Performance is a mix of programmer's ability, clever design and compiler optimizations.
Many supporting crates reinforced this. Rayon, Tokio (though not "performant", it was an improvement over naive impl), etc made jumping from hello world to parallel/concurrent execution pretty simple.
But I'm glad to see the downturn on that hype cycle.
Rust has features that make it easier to make correct and performant software, I think most programmers would agree?
Please stop this rust clickbait nonsense.
But then new content on HN would decline to nearly nothing.
Judging from the most vocal segment of their community it's very much not obvious to them.
> make it easier
Define "easier." It's harder to make mistakes. I'm not sure this equates to developer "ease" in any way. In fact, if it's meant to be effective, it should be quite the opposite.
> rust clickbait nonsense.
It cuts both ways. There is a huge volume of "I switched to Rust and got 1% additional performance over C" posts here.
(I like Rust btw)
So what you say is definitely true if you do an allocation heavy, heap fragmenting, RAII style of programming. Which is the context Rust was born in, right? A kind of C++ app dev context where that was (is?) the prevailing meta.
You're also completely glossing over the incredible complexity you get in all thee weird intersection of rust features. And there are a LOT of features. Reasoning about those are not free from a mental overhead stand point.
Does it? In Rust you allocate by calling a function. That's exactly the same as C. Are there any langauges that don't allow you to hide allocation behind a function call?
> So what you say is definitely true if you do an allocation heavy, heap fragmenting, RAII style of programming.
I don't think Rust encourages lots of small allocations. Most of the Rust code I work with does a lot of arena allocation (using crates like https://github.com/orlp/slotmap) and reusing of allocations. And for that matter a lot of stack allocation avoiding the heap entirely. And it's borrowing system is fantastic for working with shared pointers to data without having to worry that something might accidentally overwrite it.
> You're also completely glossing over the incredible complexity you get in all thee weird intersection of rust features.
I don't really buy that Rust is complex. More complex than C I suppose (but C just pushes all the complexity into making you write 5x more application code), but closer to something like Java than something like C++.