• pinball_wizard@lemmy.zip
      link
      fedilink
      arrow-up
      29
      ·
      edit-2
      10 days ago

      Genie grants the wish, and then deducts one from the pool of remaining wishes.

      Edit 1: And it is implied that the Genie stored the number of remaining wishes as an eight bit unsigned integer, where subtracting one from zero gives 255.

      It is worth noting that unsigned integer subtract-from-zero exploits were common in video games from around the time that Disney’s Aladdin was released.

      Edit 2: No discussion of amusing subtract-from-zero bugs is complete without a link to Nuclear Gandhi. (Even though it is now believed not to have been a subtract-from-zero bug.)

    • thirteene@lemmy.world
      link
      fedilink
      arrow-up
      13
      arrow-down
      1
      ·
      10 days ago

      Its a quirk in binary math with 8 digits. If you “roll the odometer” past 0, it resets to 255

       0000 0011 (3)
      -0000 0001 (1)
      =0000 0010 (2)
      
       0000 0000 (0)
      -0000 0001 (1)
      =1111 1111 (255)
      
    • 18107@aussie.zone
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      1
      ·
      9 days ago

      I don’t see how the vacuously true statement 0 != 1 has any relevance here.

      • BarrelAgedBoredom@lemmy.zip
        link
        fedilink
        arrow-up
        2
        arrow-down
        3
        ·
        9 days ago

        First, “make it 0!” - * Number *! As a “surprise factorial” (as seen in comments in this very thread making this exact joke) is a common joke in threads like this and that was the only connection I could make for this meme, having no previously knowledge of binary quirks.

        Second, I don’t know if you were trying to be a dick or you’re just some overly wordy ass clown high on your own farts, but how on earth is me explaining what I thought a joke meant, showing why it didn’t work, and then asking for help to understand it vacuous?

        • 18107@aussie.zone
          link
          fedilink
          English
          arrow-up
          5
          ·
          9 days ago

          I assumed that you understood that the original joke was about having 0 wishes.

          I also assumed that you were making a joke about factorials.

          I decided to make my own joke about “!=” in your joke being misinterpreted as the programming symbol for “not equal”.

          My statement should be read as “0 is not equal to 1”. This is a vacuously true statement, as it does not rely rely on any input, and is always true.