2020 study pdf.

After seeing this a couple years ago I started to be more responsible for my PHP code, writing it even with the slightest micro-optimizations possible, since more times people use my code (especially due to nature of PHP being executed in every http request), more energicity they waste because of my lazyness and more they pollute the planet. JIT was NOT included in this experiment, so the number can be much more lower.

I hope you will be responsible for your code so on too (generally I mean people using interpreted languages).

  • wim@lemmy.sdf.org
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Odd to see the gap between C and Pascal this big. Is this a matter of lacking optimization effort for less popular languages?

    • spauldo
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      That, and they might be using Object Pascal. I don’t know (I haven’t touched Pascal in thirty years) but I would not be surprised if there’s some overhead there.