• GissaMittJobb@lemmy.ml
    link
    fedilink
    arrow-up
    24
    ·
    5 months ago

    There are a few reasons for this, some of the most important being:

    • The languages were not designed with speed primarily in mind and as such made some design decisions that fundamentally cannot be optimized around
    • Authors of programs in these languages prioritize things other than performance when writing the programs.

    Speed is not just about processors becoming faster - this is a large part of why DSA is important to learn as a programmer.

    • Possibly linux@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      1
      ·
      edit-2
      5 months ago

      They do have optimizations however they are interpreted at runtime so they can only be so fast

      Frankly you won’t notice much unless the program is doing something computation heavy which shouldn’t be done in languages such as JavaScript and Python