Dave Royal <da…@dave123royal.com> wrote:
> n…@telling.you.invalid (Computer Nerd Kev) Wrote in message:
>> Dave Royal <da…@dave123royal.com> wrote:
>> I avoid Rust projects because they seem to make very over-sized
>> binaries. I did some research and established that it is in theory
>> possible (with the right settings) to write small programs in Rust,
>> but nevertheless all the ones I find tend to be huge compared to
>> C/C++ equivalent or predecessors. I haven't dug deep enough into
>> them to understand why, but I therefore treat Rust as a red flag
>> for inefficient software. Firefox is one Rust project I can't
>> avoid installing.
>
> I've written exactly one Rust program, to find out what it is.
> <https://github.com/revad/Mozilla-native-messaging-stdio-functions-in-rust/blob/main/main.rs>
>
> It's very concise. I've no idea why it might make bigger binaries than
> c++ (which I never learned) but I thinks it's of no consequence.
> Might not type and bounds checking, for example, require more
> code? I question your efficiency principle.
But that example is exactly what I mean. If it ends up doing
checks for many cases that are impossible in practice, then that's
inefficient.
--
__ __
#_ < |\| |< _#