1607
Of course (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] drathvedro@lemm.ee 2 points 6 months ago

The key here I think is the NAND. I know you can do practically anything with only NAND gates. But without it, and with just control structures, I don't think there's a way to perform computation unless there is some theoretical voodoo withcraft possible, something like nop-padded cellular automata given the infinite memory. But I don't have any qualification to talk about this, I'm just some random dude who flunked out of the university but finished all Zachtronics games.

You're remembering correctly, every other logic gate can be built from NAND gates, which is the foundation of this sort of minimal-instruction-set exercise. Beyond that, you need to be able to move data and change your program counter (jump, often conditionally). Then, if you want parity with modern instruction sets beyond just being turning complete, you need return and interrupt for control flow.

this post was submitted on 21 May 2024
1607 points (98.8% liked)

Programmer Humor

32591 readers
1707 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS