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

LEFT OUTER treat

m_r_butts
link
fedilink
1
edit-2
1Y

;with cte as …

Nah, can’t make myself do it

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

_cnt0
link
fedilink
451Y

What about trick implies treat?

@Masimatutu@lemm.ee
creator
link
fedilink
551Y

Implies sign is an arrow, what do you mean?

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
link
fedilink
51Y

Yes, they do.

AntiOutsideAktion [he/him]
link
fedilink
English
11
edit-2
1Y

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

wvstolzing
link
fedilink
41Y

You mean NAND gates?

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

pretty sure both work

wvstolzing
link
fedilink
11Y

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

AntiOutsideAktion [he/him]
link
fedilink
English
0
edit-2
1Y

pretty sure I meant to say nor

myslsl
link
fedilink
21Y

@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

macniel
link
fedilink
51Y

I believe in XNOR (neither or) supremacy

@vsh@lemm.ee
link
fedilink
English
0
edit-2
1Y

XAND - a AND b, but not at the same time.

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

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

moosetwin
link
fedilink
English
281Y

I like trick and treat

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.

Trick or treat is Turing complete

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 77 users / day
  • 211 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog