News for hackers. Stuff that matters.
Re:No More Blue Fridays by atrus on Monday July 22, 2024 @09:28AM (#41034131)
The halting problem is exhaustive, there isn't an algorithm that is valid for all programs. You can still check for some kinds of infinite loops though!
Re:No More Blue Fridays by roywiggins on Monday July 22, 2024 @09:52AM (#41034375)
More specifically, you can accept a set of programs that you are certain do halt, and reject all others, at the expense of rejecting some that will halt. As long as that set is large enough to be practical, the result can be useful. If you eg forbid code paths that jump "backwards", you can't really loop at all. Or require loops to be bounded by constants.