• Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    10
    ·
    2 个月前

    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
      8
      ·
      2 个月前

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

      • boonhet@sopuli.xyz
        link
        fedilink
        arrow-up
        9
        ·
        2 个月前

        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.

      • sping@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        6
        ·
        edit-2
        2 个月前

        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
          ·
          2 个月前

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

          But yeah, fully agree with you.