Source.

Yep, PHP is turning 30 this year! Wondering if “PHP is still relevant?” Ever since we have been hearing that PHP is dead. It was “dead” 10 years ago, 5 years ago, and “is dead” today. But somehow - it isn’t. Anyway… happy birthday!

    • Zos_Kia@lemmynsfw.com
      link
      fedilink
      arrow-up
      7
      ·
      23 hours ago

      It’s very rare that the backend language significantly affects performance. In 99% of apps you could have the most optimized backend written directly in machine language, and you’d just shave off milliseconds.

      That’s because in web development most of the latency comes from i/o (network requests, database access, file access), not from computation being slow.

      • buttnugget@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        13 hours ago

        So why did Facebook build that whole system of converting C++ to PHP or whatever they did? Was it because they didn’t understand the savings? Or when you scale that high, the savings really are significant? Were there savings?

        Edit to subtract: https://en.wikipedia.org/wiki/HHVM is what it eventually turned into, and apparently it showed significant improvements even above the previous system.

    • PolarKraken@programming.dev
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 day ago

      Happens a lot - my (quite small) shop was using NestJS for backends and my boss is way more experienced and wise than me. I unintentionally caused us to switch over to Python, which probably sounds as silly as JS to many, but - we deliver dope shit, on time and on budget 🤷‍♂️

    • percent@infosec.pub
      link
      fedilink
      arrow-up
      6
      ·
      1 day ago

      Thanks to web browser development, there has been quite a lot of focus/investment into JS runtime optimizations. Since the server-side runtime environments use those same JS engines, performance tends to be quite good.