Re:Java is not a safe language
by commandlinefan on Monday June 13, 2022 @01:02PM
(#31728280)
> How is correct defined?
My project managers always define it as "implements this vaguely worded set of contradictory requirements as well as this other set of undocumented contradictory requirements and is finished by tomorrow".
An interesting thought experiment here is to consider that in this instance correct code relies upon two or more other instruction handlers behaving correctly: the JVM and (at least) the host CPU. Thus, even correct code can be vulnerable to problems (see: Speculative execution vulnerabilities). If the goal of programming is to write correct code, what % of errors on that correct code execution is permissible?
The whole argument strikes me as an appeal to a platonic ideal rather than reality.