3 ms·
The story of development is interesting, but I doubt that the concept itself needed invention. Even in machine language using nothing but conditional branching
by karmakaze 6y ago
The story of development is interesting, but I doubt that the concept itself needed invention. Even in machine language using nothing but conditional branching the pattern would have appeared enough to be an idiom perhaps without a name:
...
b? addr1
...else stuff
jmp addr2
addr1:
...then stuff
addr2:
...always stuff
What's more interesting is the generalization to any boolean expression, not the naming/placement of the else/always parts.
- Existenceblinks 6y agoI miss that. Chaining jump to continue range of memory of jump is fun. It's all down to comparing hex in 2 registers and jump. JNE, JE, JMP etc.
- proverbialbunny 6y agoYep. I remember naturally writing assembly like that when I was a kid. When I picked up a high level language if statements were not mind blowing, it was already what I had been doing the entire time. What did blow me away was seeing a function for the first time.
- karmakaze 6y agoI learned on 6502 and used jsr/rts (jump-to/return-from subroutine). Recursive functions later in my learning was a mind-blowing moment, then seeing stack frames and call conventions made it less magical.