News for hackers. Stuff that matters.
Re:PHP in 2023 by Wulfheart on Tuesday January 17, 2023 @05:57AM (#34411134)
He forgot to mention https://ara-lang.io/. However, I am still exited for both PXP (https://pxplang.org/) and Ara.
Re:PHP in 2023 by esskay on Tuesday January 17, 2023 @06:28AM (#34411314)
Not sure he 'forgot'. People dont tend to do that kind of thing in PHP as honestly it's totally unnecessary.
Re:PHP in 2023 by iLoveOncall on Tuesday January 17, 2023 @06:05AM (#34411184)
What's the point? You can use types in the vast majority of places in PHP and it works well, so I don't really see the point of that instead of contributing to the native typing system.
Re:PHP in 2023 by krapp on Tuesday January 17, 2023 @07:15AM (#34411584)
Javascript already set the precedent. If you don't like the way a language works, it's preferable to have a proxy language that does work the way you want that compiles to it, rather than accept the language for what it is and learn to work with it.
Re:PHP in 2023 by 867-5309 on Tuesday January 17, 2023 @07:36AM (#34411722)
what do you suggest to achieve this? electron?
Re:PHP in 2023 by 867-5309 on Wednesday January 18, 2023 @06:03AM (#34425394)
just a downvote then. helpful.
Re:PHP in 2023 by iLoveOncall on Tuesday January 17, 2023 @08:55AM (#34412361)
You missed my point: PHP is adding types to the core language, so instead of developing a superset, contribute to the type system of PHP.

The comparison just isn't relevant.

Re:PHP in 2023 by 0x073 on Tuesday January 17, 2023 @01:39PM (#34416697)
Javascript can't be compared with PHP, javascript is the only scripting language that all browsers understand except wasm. And there are multiple interpreters that may work different or have not all features avail.

PHP is used on servers that can run many different languages. Additional there is only one php interpreter that is widely used (yes there was hhvm and some others ), that means you can rely on all features of this version.

Re:PHP in 2023 by muglug on Tuesday January 17, 2023 @06:58AM (#34411475)
Both of those are currently hobbyist projects. They may develop further and become useful to the average PHP dev, but they're definitely not there yet.
Re:PHP in 2023 by ryangjchandler on Tuesday January 17, 2023 @07:10AM (#34411552)
Yeah, Matt is absolutely right. I'm working on PXP as a passion project, something that I've been trying to do over the last year or so and only started to invest serious time into the last couple of months.

The goal isn't to completely replace PHP but to complement it. You can think of it like a playground for future PHP syntax. Something could be added to PXP and released in a week, PHP on the other hand has 1 big release a year. If something is successful and widely used in PXP, then it could be a contender for PHP core.

Re:PHP in 2023 by candl on Tuesday January 17, 2023 @07:11AM (#34411557)
The only gripe I have with PHP is that the standard library while extensive is a total inconsistent mess. Would rather see that addressed first.
Re:PHP in 2023 by dpcx on Tuesday January 17, 2023 @08:39AM (#34412211)
It's unlikely to happen. 10-20 years of use for many of those community generated functions is a lot to break. It may happen eventually, but I wouldn't count on it.