• @whaleross@lemmy.world
    link
    fedilink
    5410 months ago

    Some time ago I had a fever dream confusing reality thing and when I woke up I had reason with myself that “no, I can’t run a program in my brain”. I couldn’t decide if it was a disappointment or a relief.

  • caoimhinr
    link
    fedilink
    English
    4210 months ago

    Should’ve at least added some output to the loop, now the brain can just optimize and jump straight to the end.

    • @pmjvOP
      link
      1710 months ago

      it’s the techno-mage of the open clan and his student

    • @_lilith@lemmy.world
      link
      fedilink
      32
      edit-2
      10 months ago

      The actual joke is that they were trying to play dumb/fun nerd computer games. The cool fish basically just told them to count to 1000 instead

      for that little bit of program there x is set to 1 and x++ is just another way to say “add one to this number”. The loop runs until x is 1000 thus all the x values when they are “running” the program manually

  • TerminalEncounter [she/her]
    link
    fedilink
    English
    210 months ago

    Couldve flipped the sign every operation to make it even longer, just make sure you’re not off by one or change it while x <= 1000