r/programming • • Jul 15 '19

Alan Turing, World War Two codebreaker and mathematician, will be the face of new Bank of England £50 note

https://www.bbc.com/news/business-48962557
6.7k Upvotes

335 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Dec 19 '19

[removed] — view removed comment

1

u/mindbleach Dec 19 '19

Actually this "dipshit" is quite clever if I understood them correctly.

You didn't. He thought it meant crashing. This was not the only indication he had no idea what he was blathering about.

Halting means the program ends as intended. It reaches a finished state and produces some kind of result. In terms of C it is the point where main() returns a value. As there is no possible way to crash a theoretical Turing Machine, the only way not to halt is to encounter an infinite loop.

You don't have "infinite" energy and speed of light is finite. CS "gods" constantly forget such minor imperfections of our pathetic world.

A theoretical Turing Machine has infinite tape and infinite time, by definition. The entire goddamn point of the exercise is to explore what computers can never do. For example: it is fundamentally impossible to write a program which decides if another program will avoid infinite loops, for all input. Alan Turing proved this, in 1936, with pen and paper.