• Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 day ago

    I seem to remember hearing this story: Back in the 2000s, Google did all their back-end stuff in C++ to make sure it was performant, and when they acquired Youtube they found it was made in Python, slow to run, fast to develop.

    • Victor@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      1 day ago

      Did they change it after the acquisition? Or is python why it’s still so freaking slow?

      • sping@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        12 hours ago

        Things is you don’t crunch numbers in Python code, you do that in libraries called from Python.

        It’s a few statements of orchestration and any heavy lifting is encapsulated compiled code.

        You don’t do tight loops on Python, or if you do you’re using it wrong.

        • Victor@lemmy.world
          link
          fedilink
          arrow-up
          1
          ·
          6 hours ago

          This was mostly tongue in cheek, probably not very clear 😅

          But yeah, fully agree with you.

      • boonhet@sopuli.xyz
        link
        fedilink
        arrow-up
        8
        arrow-down
        1
        ·
        1 day ago

        Lol @ YouTube being slow

        Look at the amount of data that goes through their servers every millisecond. It’s ridiculous. All things considered, YouTube is lightning fast.

        Maybe the UI isn’t as snappy as it could be, but the blame there lies solely on throwing more and more javascript at it to add “features” that end users don’t really want.