• Xerxos@lemmy.ml
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    2 months ago

    All programs can be written with on less line of code. All programs have at least one bug.

    By the logical consequences of these axioms every program can be reduced to one line of code - that doesn’t work.

    One day AI will get there.

    • gmtom@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      All programs can be written with on less line of code. All programs have at least one bug.

      The humble “Hello world” would like a word.

      • Amberskin@europe.pub
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        Just to boast my old timer credentials.

        There is an utility program in IBM’s mainframe operating system, z/OS, that has been there since the 60s.

        It has just one assembly code instruction: a BR 14, which means basically ‘return’.

        The first version was bugged and IBM had to issue a PTF (patch) to fix it.

        • DaPorkchop_@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          2 months ago

          Okay, you can’t just drop that bombshell without elaborating. What sort of bug could exist in a program which contains a single return instruction?!?