Lemmy.one
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Masimatutu@lemm.ee to Programmer Humor@lemmy.ml · 2 年前

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 年前
message-square
21
fedilink
alert-triangle
You must log in or # to comment.
  • CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    50
    ·
    2 年前

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

  • _cnt0@feddit.de
    link
    fedilink
    arrow-up
    45
    ·
    2 年前

    What about trick implies treat?

    • Masimatutu@lemm.eeOP
      link
      fedilink
      arrow-up
      55
      ·
      2 年前

    • JackGreenEarth@lemm.ee
      link
      fedilink
      arrow-up
      6
      ·
      2 年前

      Implies sign is an arrow, what do you mean?

      • BeigeAgenda@lemmy.ca
        link
        fedilink
        arrow-up
        26
        ·
        2 年前

        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
          link
          fedilink
          arrow-up
          5
          ·
          2 年前

          Yes, they do.

  • stebo@sopuli.xyz
    link
    fedilink
    arrow-up
    43
    ·
    2 年前

    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
      link
      fedilink
      arrow-up
      18
      ·
      2 年前

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

  • moosetwin@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    28
    ·
    2 年前

    I like trick and treat

    • curiosityLynx@beehaw.org
      link
      fedilink
      arrow-up
      1
      ·
      2 年前

      I’m partial to Trick NOR Treat

  • Pasta Dental@sh.itjust.works
    link
    fedilink
    arrow-up
    16
    ·
    2 年前

    LEFT OUTER treat

    • m_r_butts@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      2 年前

      deleted by creator

  • frippa@lemmy.ml
    link
    fedilink
    arrow-up
    13
    ·
    2 年前

    Trick or treat is Turing complete

  • driving_crooner@lemmy.eco.br
    link
    fedilink
    arrow-up
    12
    ·
    2 年前

    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 [he/him]@hexbear.net
    link
    fedilink
    English
    arrow-up
    11
    ·
    edit-2
    2 年前

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

    • wvstolzing@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      2 年前

      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 年前

        pretty sure both work

        • wvstolzing@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          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 年前

            @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
            ·
            edit-2
            2 年前

            pretty sure I meant to say nor

  • macniel@feddit.de
    link
    fedilink
    arrow-up
    5
    ·
    2 年前

    I believe in XNOR (neither or) supremacy

    • vsh@lemm.ee
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      2 年前

      Removed by mod

  • Avicenna@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 年前

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

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.

  • 30 users / day
  • 1.09K users / week
  • 3.48K users / month
  • 8.65K users / 6 months
  • 440 local subscribers
  • 37.8K subscribers
  • 1.84K Posts
  • 39.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org