1135
trick OR treat (media.infosec.exchange)
all 23 comments
sorted by: hot top controversial new old
[-] CanadaPlus@lemmy.sdf.org 49 points 1 year ago

Ah, so that's why your house gets egged even if you give candy.

[-] _cnt0@feddit.de 45 points 1 year ago

What about trick implies treat?

[-] JackGreenEarth@lemm.ee 5 points 1 year ago

Implies sign is an arrow, what do you mean?

[-] BeigeAgenda@lemmy.ca 26 points 1 year ago

I think they refer to the truth table of Implies.

A | B | A => B
T   T      T
T   F      F
F   T      T
F   F      T
[-] _cnt0@feddit.de 5 points 1 year ago

Yes, they do.

[-] stebo02@sopuli.xyz 42 points 1 year ago

So since you're expecting to get either tricked or treated, the correct way to say it is "trick XOR treat"

[-] nothacking@discuss.tchncs.de 18 points 1 year ago

You mean we are not supposed to trick after getting candy? That ruins the fun!

[-] moosetwin@lemmy.dbzer0.com 28 points 1 year ago
[-] curiosityLynx@beehaw.org 1 points 1 year ago

I'm partial to Trick NOR Treat

[-] independantiste@sh.itjust.works 16 points 1 year ago
[-] frippa@lemmy.ml 13 points 1 year ago

Trick or treat is Turing complete

[-] driving_crooner@lemmy.eco.br 12 points 1 year ago

Tiis give me flashbacks of my probability classes of me doing little diagrams to help me visualize what set in probability space im looking for.

[-] AntiOutsideAktion@hexbear.net 11 points 1 year ago* (last edited 1 year ago)

Me, fresh out of COMP301, bragging about how I can make any halloween costume out of only xor gates

[-] walthervonstolzing@lemmy.ml 4 points 1 year ago

You mean NAND gates?

(Trick NAND Trick) NAND (Treat NAND Treat) <-> Trick or Treat

[-] AntiOutsideAktion@hexbear.net 2 points 1 year ago
[-] walthervonstolzing@lemmy.ml 1 points 1 year ago

NAND and XOR aren't equivalent, though

| X | Y | X NAND Y |
| 0 | 0 | 1        |
| 1 | 0 | 1        |
| 0 | 1 | 1        |
| 1 | 1 | 0        |
| X | Y | X XOR Y |
| 0 | 0 | 0       |
| 1 | 0 | 1       |
| 0 | 1 | 1       |
| 1 | 1 | 0       |

& XOR can be reduced to NAND; not sure if NAND can be reduced to XOR

[-] myslsl@mastodon.social 2 points 1 year ago

@walthervonstolzing @AntiOutsideAktion

If ya'll get bored and wanna read more about this, this is a property called functional completeness. I'm pretty sure nand and nor are the only functionally complete binary operators, so xor shouldn't be functionally complete.

https://en.m.wikipedia.org/wiki/Functional_completeness

[-] AntiOutsideAktion@hexbear.net 0 points 1 year ago* (last edited 1 year ago)

pretty sure I meant to say nor

[-] DmMacniel@feddit.de 5 points 1 year ago

I believe in XNOR (neither or) supremacy

[-] iAvicenna@lemmy.world 1 points 1 year ago

What about 1/2 Trick + 1/2 Treat until you observe

this post was submitted on 27 Oct 2023
1135 points (99.2% liked)

Programmer Humor

32707 readers
89 users here now

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

Rules:

founded 5 years ago
MODERATORS