3 ms·
It is interesting that rust goes for a demographic of people coming from scripting languages or functional languages, but it seems like its niche might be much
by Animats 7y ago
It is interesting that rust goes for a demographic of people coming from scripting languages or functional languages, but it seems like its niche might be much more suited to the lowest level of larger programs or embedded work where people are using straight C.
Yes. Originally Rust seemed to be the answer to the three big questions in C:
"How big is it", "Who owns it", and "Who locks it". Those are the cause of most of the vulnerabilities you see in CERT advisories. Rust finally had a working, efficient solution to all those problems. A huge breakthrough.
Then the type-theory people, the "metaprogramming" people, and the functional people got in there and mucked up a perfectly good imperative language.
They turned writing code into either puzzle-solving or copying forms you don't really understand.
That already happened to C++. The "metaprogramming" people complicated templates to the point that "you are not supposed to understand this" is now normal for some standard templates. Now the C++ crowd is trying to emulate Rust features like move semantics without a borrow checker, which doesn't really work.
Go was a reaction to that. Go is a mediocre language, but it's good enough for most web back-end stuff, which is why Google developed it.
- pjmlp 7y ago> Now the C++ crowd is trying to emulate Rust features like move semantics without a borrow checker, which doesn't really work. Clang tidy and Visual C++ lifetime profile are that borrow checker. If they get good enough results, GCC and other commercial compilers will definitely adopt them as well.
- steveklabnik 7y agoYes and no. They explicitly do not go as far as Rust does. More safety tooling is very welcome though!
- pjmlp 7y agoI agree, but they are better than nothing and since millions of C and C++ lines of code aren't going to be converted into something else, any improvement is welcomed. For example, I was quite surprised that with all the security sales story, Azure Sphere SDK is C only, which basically torpedoes their sales pitch. At least MSR seems to keep having a go at Checked C.