4 ms·
The halting problem doesn't mean that you can't prove that some programs halt. It just means that you can't prove whether every program halts (or doesn't). If I
by sp332 15y ago
The halting problem doesn't mean that you can't prove that some programs halt. It just means that you can't prove whether every program halts (or doesn't). If I write a program:
int main () { return 0; }
I can easily prove that it will halt. There are some classes of programs that provably halt, and some classes that provably don't. Proving that a program halts doesn't mean anything about solving the halting problem, and it doesn't say anything about the Turing-completeness of the language.
- zeteo 15y agoRight, so an alternative approach is to require all client-side scripts that your browser downloads to come with a proof of safety. This requires extra work for each script. Which can be avoided if the script language was non-Turing complete instead, and you had a general-purpose code analyzer on your machine.
- deleted 15y ago[deleted]
- sp332 15y agoOh, I see. Turing-complete language + certificate of good behavior = non-turing-complete language. Cool :)
- nwmcsween 15y agoThe amount of effort that would be needed to shift from a Turing complete language to a non Turing complete would outweigh the benefits by a very large amount.