• Captain Aggravated@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    8
    ·
    23 hours 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
      ·
      20 hours 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
        1
        ·
        edit-2
        4 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.

      • boonhet@sopuli.xyz
        link
        fedilink
        arrow-up
        8
        ·
        16 hours 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.