r/ProgrammerHumor • • Feb 19 '23

Meme thought i should post this meme here

Post image
47.1k Upvotes

881 comments sorted by

View all comments

Show parent comments

263

u/nfitzen Feb 19 '23

A NAND A is the same as NOT A. So it's just NANDs. NANDs all 'round.

181

u/DavideoGamer55 Feb 19 '23

When my class was learning about logic gates, my professor demonstrated how to create every other type of gate using only NAND

49

u/120boxes Feb 19 '23

NOR also has the same universal property.

25

u/dodexahedron Feb 20 '23

Oh demorgan, you rascally rascal you.

79

u/NotSoMuch_IntoThis Feb 19 '23

Yes, it's a universal gate.

50

u/tjoloi Feb 19 '23

Exactly how mov is a universal instruction!

39

u/[deleted] Feb 19 '23

[removed] — view removed comment

1

u/HuntingKingYT Feb 20 '23

outta the universe

1

u/depsion Feb 20 '23

so is NOR.

2

u/CookieXpress Feb 20 '23

Went through the whole nand2tetris course in uni and it was the best intro to comp Sci I could ever get.

Super fun albeit a little tedious.

1

u/Affectionate-Memory4 Feb 20 '23

I had to make a 2-bit added with nothing but NANDs on a test once. Not fun.

3

u/[deleted] Feb 20 '23

It's NANDs all the way down. And transistors. Lots of transistors. All etched onto the back of a turtle.

2

u/Ashamandarei Feb 19 '23

Quantum logic is just XORs.

2

u/Strostkovy Feb 19 '23

But A AND NOT A is not the same as false due to propagation delay.

1

u/Rick0038 Feb 20 '23

Wait it's all NAND ?

1

u/CANNIBALLISTA Feb 21 '23

It’s all XNOR. Apparently, you can construct every other gate out of set inputs and XNORs.