3 ms·
> All CPUs have jump instructions. General purpose computation isn't possible without it. Technically not true, a Turing machine in the original sense only mov
by lmm 4y ago
> All CPUs have jump instructions. General purpose computation isn't possible without it.
Technically not true, a Turing machine in the original sense only moves its head one position at a time (and I can imagine some early drum memory CPUs might have operated like that in real life). Of course one can emulate a processor that has jumps on a machine like that.
> Even 'if' / 'while' / etc. are syntactic sugar for 'goto'.
Structured programming is not just syntactic sugar; it gives you important properties that you can't get from using goto directly, hence why so many languages discourage or ban goto.