>OK, but doesn't it imply that I do not need Rust at all because I could write 90% of my code in Go and the rest 10% in C? Only silver bullet seekers and airy-fairy (t)he(o)retics will use Rust just for the sake of feeling contented about having 100% of a program written in seemingly one language. Have you actually tried to do that or understand what Rust unsafe code means ? Interfacing between different run-times an…
Criticizing the Rust Language, and Why C/C++ Will Never Die
51–60 of 89 posts
Re: Criticizing the Rust Language, and Why C/C++ Will Never Die
#52Earlier quoted context omitted.
Right, which is why a subset of C or C++ (like MISRA) is used for critical applications.
My day job is currently writing embedded high availability code to a slightly modified version of the JSF coding standard (which is itself a modified version of MISRA for C++). There's a lot of safety that Rust would give us on top of C++ with the coding standard's rules, and we're waiting for Rust to simply mature a little.
Re: Criticizing the Rust Language, and Why C/C++ Will Never Die
#53I get that this is a translation but it's very poorly written even considering that. lots of repetitive conclusion jumping in what I can only assume is an attempt to baffle the reader into uncritically accepting what appears to be a largely unsupported opinion. the only evidence the post seems to offer is that rust is slow because it showed up 5th in a set of microbenchmarks. everything else is rhetorical garbage, fr…
Comparing different programming languages is notoriously difficult, particularly since the metric is underdefined. The best programmers might write faster code in language A compared to language B, but if average programmers write code that is no faster, does that mean language A is better than language B?
Re: Criticizing the Rust Language, and Why C/C++ Will Never Die
#54Regarding speed, I am not sure it really is the bee's knees. The existence of LLVM and the likes, the fact that Javascript got a HUGE speedup in the past 5 years seems to be an indication that it is by essence a factor that can be tuned eventually. I doubt a "slow" language will ever get to be C in that regard, but I also doubt C will ever provide the kind of ease of mind that a more inherently modern and secure lang…
It's a little silly to quibble about speed when the language is still being designed. There is plenty of time to optimize the language; there's not much technical barrier to matching the speed of c/c++, especially when allowing unsafe code. However, something I've noticed from the land of C++ is some peoples' issue with the idea that thread safety is difficult. In fact, they appear to downright bristle at the idea th…
Re: Criticizing the Rust Language, and Why C/C++ Will Never Die
#55Note the translation is done by a company which makes C++ static analyzer for a living. This might be the case of conflict of interest and/or heavy bias.
It also means they know what they're talking about. Many of the points are valid, but it's important to remember Rust is not even released. Java 1, Ruby 1, Perl 1, Python 1 were all pretty terrible compared to their current manifestations.
Don't get me wrong, I understand difference between constructive criticism and biased grunt of grumpy C++ programmer.
Re: Criticizing the Rust Language, and Why C/C++ Will Never Die
#56Earlier quoted context omitted.
I've made an honest effort with C++ >= C++11. The language has improved -- lots -- but there's just no getting around the fact that: - Most of the improvements hellaciously leverage the hideous template system, and - Actually writing template-leveraging libraries is an exercise in pain, repetition, and insanely slow compile times. C++ won't be a "Rust-killer" (insert any other modern low-level type parameterized syst…
How does Rust's compile times compare with those of C++?
Re: Criticizing the Rust Language, and Why C/C++ Will Never Die
#57Earlier quoted context omitted.
My day job is currently writing embedded high availability code to a slightly modified version of the JSF coding standard (which is itself a modified version of MISRA for C++). There's a lot of safety that Rust would give us on top of C++ with the coding standard's rules, and we're waiting for Rust to simply mature a little.
To me, it seems like in the future Rust could occupy the same niche as Java + RTSJ does presently. I'm just not clear on how or why Rust would be sufficiently better to overcome the track record of Java + RTSJ.
Honestly I see Rust as (potentially, down the road) being a better, less verbose Ada than a better C++ or Java. You tend to write Rust code much like you would an Ada or VHDL program.
Re: Criticizing the Rust Language, and Why C/C++ Will Never Die
#58I get that this is a translation but it's very poorly written even considering that. lots of repetitive conclusion jumping in what I can only assume is an attempt to baffle the reader into uncritically accepting what appears to be a largely unsupported opinion. the only evidence the post seems to offer is that rust is slow because it showed up 5th in a set of microbenchmarks. everything else is rhetorical garbage, fr…
Re: Criticizing the Rust Language, and Why C/C++ Will Never Die
#59>OK, but doesn't it imply that I do not need Rust at all because I could write 90% of my code in Go and the rest 10% in C? Only silver bullet seekers and airy-fairy (t)he(o)retics will use Rust just for the sake of feeling contented about having 100% of a program written in seemingly one language. Have you actually tried to do that or understand what Rust unsafe code means ? Interfacing between different run-times an…
There's a lot of the "write X% in slowlang and (100-X)% in fastlang" thrown around, but I have to say, I've not seen too many such projects around.
Re: Criticizing the Rust Language, and Why C/C++ Will Never Die
#60Earlier quoted context omitted.
It's a little silly to quibble about speed when the language is still being designed. There is plenty of time to optimize the language; there's not much technical barrier to matching the speed of c/c++, especially when allowing unsafe code. However, something I've noticed from the land of C++ is some peoples' issue with the idea that thread safety is difficult. In fact, they appear to downright bristle at the idea th…
This is an interesting question, but I'm not convinced it is the case. Many people have argued that Java, Ruby, (insert favorite language here) will one day match the speed of C, it just requires more advanced tooling, but that promise has never been fulfilled. Many abstractions come with a cost, just look at the jump between C and C++. Perhaps Rust will match the speed of C, but I don't think it is certain.