3 ms·
As you state the problem, this is the wrong solution. All programs have bugs, all compilers have bugs. Bits randomly flip in memory, disk, etc. Stop blaming the
by mikewarot 5y ago
As you state the problem, this is the wrong solution. All programs have bugs, all compilers have bugs. Bits randomly flip in memory, disk, etc. Stop blaming the wrong things.
You ran a program, you gave it all your resources, it got confused, and ran amok. It's YOUR fault.
You shouldn't have given it all your resources. You should have only given it access to the minimum set of resources resources required to do the job.
Now, generating provable correct code does have its merits, the article should have started with those.
- mbrodersen 5y agoNope. CompCert (a C compiler) has zero bugs. It is formally proven correct down to assembler level.
- mikewarot 5y agoI just cringe at the thought of making that bold of a claim on anything computer related, let alone something as complex as a compiler. So, as long as the specifications, and CPU documentation are correct, it will work as intended, a high percentage of the time. (Random bit flips, disk errors, etc. are still a thing)
- mbrodersen 5y agoI highly recommend learning more about what formal software verification actually is and what it guarantees and what it doesn’t.