11 comments

  • gabesullice 3 hours ago ago

    For an actual view of the syntax not behind a sign-in wall: https://thephp.foundation/blog/2025/08/05/compile-generics/

  • dado3212 3 hours ago ago

    I'm glad that PHP has adopted more and more from Hack, Facebook's once fork and now completely separate language - https://hacklang.org/. It was never going to replace it (Go's success separate from Google has astounded me to be honest) but it heavily influencing PHP's direction feels like the best of both worlds.

    • andrewjf 2 hours ago ago

      What do you mean “separate from google”? Golang’s success is directly and exclusively based on google envy back in 2009-2012.

      • lmm 2 hours ago ago

        Their point is that Golang has seen adoption and use outside the Google ecosystem, which is perhaps surprising, and something few other "company languages" have managed (e.g. Swift is actually quite a nice language design, but almost no-one uses it unless they're deeply involved with the Apple ecosystem).

        • 0x073 an hour ago ago

          Swift started as closed source language exclusive for apple devices. Apple never was developer friendly outside of their ecosystem.

          If I think about swift I think about ios apps (I know it can be more today, but their marketing for this language wasn't good).

          So apple never wanted big adoption outside of their devices.

        • hnlmorg an hour ago ago

          Sure, if you forget about C, Java, TypeScript, SQL, and many others.

          Swift isn’t gaining much adoption because Apple aren’t putting much effort into promoting its use outside of the Apple ecosystem. And why would they when they don’t care about non-Apple stuff

      • zerocrates 2 hours ago ago

        I think they mean success in terms of Go being used outside Google? Versus hack/hhvm which had a pretty narrow window where it saw some limited outside adoption.

    • that_guy_iain 3 hours ago ago

      I think Facebook just forking the language instead of helping with development gave them the kick up the ass to sort out the development process. Then it just came down to having no one actually working on the language, so they needed to create the PHP Foundation to pay people to work on it because all the major companies left it behind (Yahoo, Facebook, Zend, etc). So it's good to see it managed to survive that chaos and become a pretty good language.

      • dochne 2 hours ago ago

        The foundation is a very recent affair.

        The real improvements all came from the hard work of the developers who were around during the 7.* releases who did excellent work.

        Most importantly at that time we had Nikita Popov who was incredibly helpful.

        Hack/HHVM definitely gave it a nice kick of motivation though.

  • patates 2 hours ago ago

    Is this just a book promotion? Some text also gives me AI vibes.