tchncs
  • Communities
  • Create Post
  • Create Community
  • 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
link
fedilink
1.13K

trick OR treat

media.infosec.exchange

Masimatutu@lemm.ee to Programmer Humor@lemmy.ml · 2 年前
message-square
21
link
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
      arrow-down
      1
      ·
      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
      link
      fedilink
      arrow-up
      18
      ·
      edit-2
      5 个月前

      deleted by creator

  • 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
      arrow-down
      1
      ·
      2 年前

      ;with cte as …

      Nah, can’t make myself do it

  • 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
    ·
    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
            arrow-down
            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.eeBanned
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      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.

  • 88 users / day
  • 13 users / week
  • 1.86K users / month
  • 6.01K users / 6 months
  • 849 local subscribers
  • 41.6K subscribers
  • 1.99K Posts
  • 41K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.17
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org