• Dark Arc@social.packetloss.gg
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    4 months ago

    I don’t know about others … but I’m not using Python for execution speed.

    Typically the biggest problem in a program is not 100 million calls of len(x) == 0. If it was, the interpreter could just translate that expression during parsing.

    • Reptorian@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      4 months ago

      This. I rarely boot up Python for the tasks I need to do, and if they are, they are one of the following:

      • Assistant code for other coding language
      • Throwaway script
      • Prototype before using a faster language
      • logging_strict@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        3 months ago

        Assuming an equivalent package is produced, what’s the maintenance cost (factoring in coder availability) difference between the Python vs faster language implementations?

        ^^ therein lies the rub

        Reminds of the expression, premature optimization is the root of all evil

        if not swimming in funding, might be a darwinic move to choose the faster language and have to code everything yourself from scratch