4 ms·
Here is my issue > Is Rust faster than C > Example: >... unsafe... Its like Rust proponents can't even see the irony.
by ActorNightly 9mo ago
Here is my issue
> Is Rust faster than C
> Example:
>... unsafe...
Its like Rust proponents can't even see the irony.
- mywittyname 9mo agoI agree, I thought this was a weird example - but I'm not a Rust nor C programmer. I assume this example is used because programmers of either language reach for asm when looking for raw performance. But to me, it's shouldn't even be a discussion point, since even I know both languages can be made to emit the same assembly. Also, I think it side-steps the hard parts of the question - which is, what are the performance impacts of Rust safety?
- ActorNightly 9mo ago>, what are the performance impacts of Rust safety? None from the aspect of borrow model, since that is all compile time. For safety at run time, there is a hit if you use certain structures because you can't figure out at compile time what things like dynamic bounds are. But its no different than C with having to do manual bounds checking.