3 ms·
C performance exists thanks to UB, and the value optimising compilers extract out of it, during the 8 and 16 bit home computers days any average Assembly devel
by pjmlp 2y ago
C performance exists thanks to UB, and the value optimising compilers extract out of it, during the 8 and 16 bit home computers days any average Assembly developer could write better code than C compiler were able to spit out.
- codr7 2y agoAnd also because it doesn't get in your way of doing exactly what you want to do.
- OCASMv2 2y agoIf that was true then the optimizers wouldn't need to exist in the first place.
- codr7 2y agoCompared to the alternatives. It gets very frustrating to communicate at this level.
- OCASMv2 2y agoI don't think compilers allowing trash through is a good thing.
- codr7 2y agoThat's an opinion, another one would be that the flexibility allowed by undefined behavior is one of C's strengths at the same time. Strength/weakness are often two sides of the same coin. Which is why these discussions get a bit circular.
- greenavocado 2y agoHave you ever seen the error steamroller? https://github.com/mattdiamond/fuckitjs https://github.com/mattdiamond/fuckitjs
- dwattttt 2y agoON ERROR RESUME NEXT rears its ugly head again
- pjmlp 2y agoThe alternatives outside Bell Labs were just as capable.