![](https://programming.dev/pictrs/image/543eb06d-5177-439b-8209-137795e9f9be.png)
![](https://programming.dev/pictrs/image/170721ad-9010-470f-a4a4-ead95f51f13b.png)
Right. There is no solution to the halting problem, that’s been proven. But you just showed you can very easily create a way of practically solving it. Just waiting for 10 seconds does it. That will catch every infinite loop while also having some false positives. And that will be fine in most applications.
My point is that even if a solution to the halting problem is impossible, there is often a very possible solution that will get you close enough for a real world scenario. And there are definitely more sophisticated methods of catching non-halting programs with fewer false positives.
Haha, yeah, free. I totally haven’t spent hundreds of dollars on the game. It’s over a decade with thousands of hours though. I haven’t really played the last couple years though, but that’s mostly because I have small children and a career