• Dr. Moose@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 months ago

    No, python can be incredibly fast for IO when scaled properly.

    You generally don’t run a single process or even program for serving websites. There are task queues, callbacks, microservices etc so the bottleneck is almost never the programming language itself but the tooling and Python’s tooling for web is still miles ahead. Thats why big project ship more Django than Rust and all AI training is running on Python not Rust etc.

    Don’t get me wrong Rust is a brilliant language but Python can often be better.

    Finally you can outsource high performance tasks to Rust or C from within Python rather easily these days.

    • Nutomic@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      Python is an interpreted language, which is fundamentally always slower than a compiled language like Rust. However the main performance bottleneck are actually sql queries, and I believe we make a lot more effort to optimize them compared to Piefed.