Y
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
tmmm
4114 days ago
you'll never get the answer. when earth blows up, you lose electricity
link
wz1000
4114 days ago
Just before the electricity goes, an electromagnetic disturbance or a shockwave causes the CPU to skip a few instructions, printing out the answer.
link