Re:Sony publishes an official Linux driver for Playstation 5...
by asddubs on Thursday December 24, 2020 @09:06PM
(#25533554)
that's definitely not categorically true
[ Parent
| on HN ]
Re:Sony publishes an official Linux driver for Playstation 5...
by mhh__ on Thursday December 24, 2020 @11:06PM
(#25534107)
Can you think of a counterexample? I wouldn't be surprised if you could trick a compiler with a goto but optimizing control flow is very much the type of optimization that Knuth was referring to. Now that almost all compilers use SSA I'd be surprised if it was the case outside of fairly deep control flow
Re:Sony publishes an official Linux driver for Playstation 5...
by Out_of_Characte on Friday December 25, 2020 @05:43AM
(#25535669)
Error handling was already mentioned ITT. Goto use seems like a litmus test for bad programming. The presence of it doesn't prove bad programmings but lots of goto statements could be reasonably be expected to be replaced with safer switch statements. Extremely nested functions are another area that is best served with a goto. Breaking out of many functions has performance implications I believe.