News for hackers. Stuff that matters.
Re:Why Is C Faster Than Java (2009) by nine_k on Monday December 27, 2021 @02:35AM (#29700351)
That C allows developers to play fast and loose is actually one of the reasons why C is slower than Fortran in many cases. Aliasing does not exist in Fortran, and array dimensions are well-defined, and this alone allows for much more aggressive optimizations, impossible to do safely in C.

(Is Fortran still relevant? Try compiling Tensorflow, to say nothing of serious numerical modeling stuff. And yes, I know about __restrict; it's more of a band-aid.)

Re:Why Is C Faster Than Java (2009) by EVa5I7bHFq9mnYK on Monday December 27, 2021 @03:44PM (#29706580)
The version of Fortran I worked with had no stack nor heap. Needless to say, it was very fast.
Re:Why Is C Faster Than Java (2009) by therealcamino on Monday December 27, 2021 @01:10PM (#29704986)
> Aliasing does not exist in Fortran

Ha, I have some disgusting use of COMMON blocks from the 80's to show you. But that doesn't affect the optimizer's ability to assume that there's no aliasing, so you're totally correct about that.