3 ms·
The point is: people are quick to say that taking advantage of undefined behaviour in the modern style is necessary to get best performance, and that this is wo
by to3m 10y ago
The point is: people are quick to say that taking advantage of undefined behaviour in the modern style is necessary to get best performance, and that this is worth the bother. But others (and I expect this person to be one of them) feel that perhaps good performance could be attained by some other route, one that doesn't involve the compiler stripping bits of your code out on an unanticipated technicality that requires ten paragraphs of legalese to explain. Especially not when the justification is something like "this would be hard to support on 1s complement" ;)
- the_why_of_y 10y agoYes, and this is why some of those others have designed the Rust language so that they can write programs that run fast without worrying about those tens of paragraphs of legalese. Same motivations for D, Swift and Go, except you get a bit less performance due to need for GC.