• pageflight@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 days ago

    Cute — though the visual gag fits a little better with infinite recursion that infinite loop.

    • embed_me@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      9 days ago

      I don’t get your point. Just because the image gets repeated in the 4th panel doesn’t mean its recursion. It can be an infinite while loop with a state.

      Now that I think about it, a recursion without a base/break condition is just an infinite loop with a state

      • entwine@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        8 days ago

        Ackshually, the meme is encoded using progressively smaller images nested into the fourth panel of the comic. Each fourth panel is effectively a nested function call to the original comic procedure, which more closely represents recursion than an infinite loop.

        For an infinite loop, one might instead lay out the 3 unique panels horizontally, and just memcpy them into rows below, creating a table. That’s a regression in humor, but it’d fix the bug.

        So I agree with @ryannathans@aussie.zone’s review; The joke is about infinite loops, but the visual gag is about recursion.

        • orbitz@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          8 days ago

          Lol that’s exactly how I saw it as well. Recursive gets those nesting dolls look in my head, loops are the same size but repeated, even if infinite. Yes even if the code is almost the same since you can write a loop recursively anyways (okay haven’t tested but seems like it’d work mostly fine but not always as clean).

          I think the beauty of it is that the joke can be amusing in multiple ways. Those are the best jokes to me, cause I can think of different ways the next time I see them.

  • Triumph@fedia.io
    link
    fedilink
    arrow-up
    1
    ·
    9 days ago

    Long ago, I made a four line recursive HTML that did this with frames. Browsers didn’t have protection against that at the time, so if you opened it and let it run, your machine would lock up.

  • FooBarrington@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    8 days ago

    Imagine seriously using break… when I was young we had a break, it’s called SIGKILL. And we liked it this way!

  • rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    8 days ago

    A billion years ago, I worked for a place that was using Cold Fusion.

    There was this one project that had a loop with a break condition, but the devs kept accidentally putting errors in the break logic. The project was pretty processor intensive. I got calls 5-6 times a day to reset the CF server because stopping the HTML page wouldn’t do #$%^

    Can you guys please just add a second break module so you can just load another page and cause the project to abort? hell make it dump a file in /tmp, whatever…

    • ulterno@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 days ago

      The “new” thermal throttling functionality in Intel Pentium processors will break your break functionality.