Brasil
  • 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
21
link
fedilink
1.12K

trick OR treat

media.infosec.exchange

Masimatutu@lemm.ee to Programmer Humor@lemmy.ml · 2 years ago
message-square
21
link
fedilink
  • 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: !programmerhumor@lemmy.ml

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.

  • 284 users / day
  • 1.72K users / week
  • 2.43K users / month
  • 10.3K users / 6 months
  • 60 local subscribers
  • 35.7K subscribers
  • 1.71K Posts
  • 36.6K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • AgreeableLandscape@lemmy.ml
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org