Fanaticus
  • 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
fedilink
1.14K

trick OR treat

media.infosec.exchange

@Masimatutu@lemm.ee to Programmer Humor@lemmy.ml • 2 years ago
message-square
21
fedilink
  • AntiOutsideAktion [he/him]
    link
    fedilink
    English
    11•
    edit-2
    2 years ago

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

    • wvstolzing
      link
      fedilink
      4•2 years ago

      You mean NAND gates?

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

      • AntiOutsideAktion [he/him]
        link
        fedilink
        English
        2•2 years ago

        pretty sure both work

        • wvstolzing
          link
          fedilink
          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
            link
            fedilink
            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]
            link
            fedilink
            English
            0•
            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.
  • 91 users / day
  • 986 users / week
  • 3.26K users / month
  • 9.84K users / 6 months
  • 37K subscribers
  • 1.81K Posts
  • 38.1K Comments
  • Modlog
  • mods:
  • @AgreeableLandscape@lemmy.ml
  • @cat_programmer@lemmy.ml
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org