Dendarii
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Masimatutu@lemm.ee to Programmer Humor@lemmy.ml · 2 years ago

trick OR treat

media.infosec.exchange

message-square
27
fedilink
1.13K

trick OR treat

media.infosec.exchange

Masimatutu@lemm.ee to Programmer Humor@lemmy.ml · 2 years ago
message-square
27
fedilink
  • wvstolzing@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    You mean NAND gates?

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

    • AntiOutsideAktion [he/him]@hexbear.net
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      pretty sure both work

      • wvstolzing@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        2 years 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
          link
          fedilink
          arrow-up
          2
          ·
          2 years 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 [he/him]@hexbear.net
          link
          fedilink
          English
          arrow-up
          1
          arrow-down
          1
          ·
          edit-2
          2 years ago

          pretty sure I meant to say nor

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

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.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 16 users / day
  • 25 users / week
  • 181 users / month
  • 1.62K users / 6 months
  • 0 local subscribers
  • 35.6K subscribers
  • 1.78K Posts
  • 36.8K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org