Hacker News new | ask | show | jobs
by anirudh24seven 4114 days ago
How will a code-checking engine get past infinite loops?

while(earth_has_not_blown_up) {}

"Hey, I need the earth to blow up to solve this problem!"

1 comments

you'll never get the answer. when earth blows up, you lose electricity
Just before the electricity goes, an electromagnetic disturbance or a shockwave causes the CPU to skip a few instructions, printing out the answer.