News for hackers. Stuff that matters.
Re:Why Is C Faster Than Java (2009) by adgjlsfhk1 on Monday December 27, 2021 @02:21PM (#29705815)
the point isn't that it's impossible to write C that's safe, it's that doing so requires 100% success rate of a human implementing something correctly. furthermore, the main cases where C can get a performance benefit over safer languages are where there is a complicated invariant that ensures safety. the problem is that these are incredibly easy to break during refactoring, or when a different dev modifies the code later. compilers are much better then humans at verifying that code is correct.

There are no comments on this comment yet.