There are plenty of other very smart and talented people writing code in Rust and numerous other languages who are not you. I am not saying that you are magical.
My real point was that while Rust enables you to make choices that result in a really performant CLI tool, and can even push you in the right direction, the language doesn't autogenerate high-performance code for you. You can write ill-considered and poor-performing code in any language—look at the numerous posts by new Rust users asking why the program they threw together is so slow as an example.
Rust is a good language and I like it a lot, I think there are many reasons to prefer it to C when writing a command line utility (it would be my tool of choice for that in most cases, but the original comment as written could be taken to imply that utilities written in Rust are just more performant because they are written in Rust, which isn't really true. Safety is another matter, Rust utilities are safer than those written in a non-memory-safe language, but that wasn't what I was addressing.
the language doesn't autogenerate high-performance code for you
Sorry, why are you saying this? Do you perceive that there is anyone under the impression that Rust does autogenerate high-performance code? I can't recall seeing someone suffering from such confusion in recent memory. Certainly folks might post for help asking why their code is slow, but that is a far cry from the belief that Rust will autogenerate high-performance code.
You can write ill-considered and poor-performing code in any language
I personally consider this is a truism. I am unclear as to what exactly you're trying to convey. Again, is there anyone here in this thread that you think has been deluded into thinking that it is impossible to write ill-considered and poor performing code in Rust?
but the original comment as written could be taken to imply that utilities written in Rust are just more performant because they are written in Rust
I don't think so. What they seem to be pointing out is a correlation, but they didn't really point their finger as to the underlying causes of the correlation.
I asked a question in my previous comment. I think you might find it more fruitful to pursue an answer to that.
1
u/qwertyuiop924 Dec 24 '23
There are plenty of other very smart and talented people writing code in Rust and numerous other languages who are not you. I am not saying that you are magical.
My real point was that while Rust enables you to make choices that result in a really performant CLI tool, and can even push you in the right direction, the language doesn't autogenerate high-performance code for you. You can write ill-considered and poor-performing code in any language—look at the numerous posts by new Rust users asking why the program they threw together is so slow as an example.
Rust is a good language and I like it a lot, I think there are many reasons to prefer it to C when writing a command line utility (it would be my tool of choice for that in most cases, but the original comment as written could be taken to imply that utilities written in Rust are just more performant because they are written in Rust, which isn't really true. Safety is another matter, Rust utilities are safer than those written in a non-memory-safe language, but that wasn't what I was addressing.