• @Rin@lemm.ee
    link
    fedilink
    120
    edit-2
    2 years ago

    while (true) { print(money) }

    isn’t that just crypto mining?

  • 1024_Kibibytes
    link
    fedilink
    142 years ago

    Increasing the CPU optimization by 0.02% does seem crazy to me. If you’re going to spend time working on something, make it worthwhile. Also, isn’t while(true) {print(money)} Microsoft, Apple and Amazon:s business model?

      • @Gork@lemm.ee
        link
        fedilink
        42 years ago

        Or if you’re scaling a large cluster of CPUs for parallel computations where a 0.02% increase can make a tangible difference in runtimes.

      • @blackstrat@lemmy.fwgx.uk
        link
        fedilink
        22 years ago

        Only if you’d removed and fixed all other bottlenecks that would gain you more than 0.02%. And I’m not convinced there are many if any projects of any reasonable size where that has been the case.

  • @Isoprenoid@programming.dev
    link
    fedilink
    English
    232 years ago

    Can someone explain this joke to me

    “I’m writing a recursive method with threads to optimize the CPU usage in a 0.02%

    I understand everything apart from the “in a 0.02%”. What does that mean? How can something be in a percentage?

    • peopleproblems
      link
      fedilink
      82 years ago

      It’s a double joke. For programmers, it’s pretty useless unless your in high performance computing.

      If you’re on the nitty gritty OS or CPU itself, 0.02% optimization can mean significant improvememt of different things but because it is otherwise unitless, it is equally useless to the reader.

      • snowe
        link
        fedilink
        22 years ago

        “In a .02%” is nonsensical. They meant “by”. So it’s just a fail, not a joke.

    • obosob
      link
      fedilink
      English
      392 years ago

      It’s a nonsensical statement to us programmers too.

  • @festus@lemmy.ca
    link
    fedilink
    English
    52 years ago

    I see you met my boss.

    Not actually the case, but I am frustrated with them right now for not understanding the value of preventative work and R&D (I’m a Data Scientist).

  • @whileloop@lemmy.world
    link
    fedilink
    1332 years ago

    This could be so much longer.

    Killing children, class systems, so many programming language names, the ridiculous ways equality and order-of-operations are done sometimes. Plenty of recursion jokes to be made. Big O notation. Any other ideas?

      • @Hoimo@ani.social
        link
        fedilink
        422 years ago

        GOTO is the only thing that makes sense. It’s the “high-level” concepts like for-loops, functions and list comprehension that ruined programming.

        series.append(series[k-1]+series[k-2]) for k in range(2,5)]

        RAVINGS DREAMT UP BY THE UTTERLY DERANGED

        • @ChickenLadyLovesLife@lemmy.world
          link
          fedilink
          English
          152 years ago

          I started coding with TurboBasic, which included the helpful innovation of GOTO {label} instead of GOTO {line number}, which allowed you to have marginally-better-looking code like:

          GOTO bob

          bob:
          {do some useless shit}
          return

          which meant you essentially had actual, normal methods and you didn’t have to put line numbers in front of everything. The problem was that labels (like variables) could be as long as you wanted them to be, but the compiler only looked at the first two letters. Great fun debugging that sort of nonsense.

    • Lightor
      link
      fedilink
      11
      edit-2
      2 years ago

      Masters and slaves

      Cloning

      Deploying code (that’s what you do with soldiers!!!1)

      Using Git to rewrite history.

      Atomic values (like the bomb!)

      These people are madmen.

      • @Gustephan@lemmy.world
        link
        fedilink
        72 years ago

        One of the slave node’s child process failed, so the master node sent a signal to terminate the child and restart the slave

        There’s pretty solid reason my research group is pushing to use “head node and executor nodes” nomenclature rather than the old-school “master node and slave nodes” nomenclature, haha

    • Who knew?
      link
      fedilink
      32 years ago

      Floating point operations with decimals not always adding up

  • spez
    link
    fedilink
    English
    6
    edit-2
    2 years ago

    I always wonder what the original post was. Something like “Stop doing science!” or some shit but seriously rather than sarcastically.