On 14/08/2022 13:29, Paul Dragoonis wrote:
> Moreover if you're looking at reasons people have previously or currently
> moving away from PHP to other languages, due to limitations like pure async
> or concurrency stuff .. then perhaps a new FRONTEND which can execute the
> PHP runtime on the backend would be solving some things.
There already are concurrent and asynchronous solutions for PHP: Swoole,
Amp, React, etc
I think part of the reason they aren't more popular is simply that
they're young compared to the language itself - one of PHP's big
advantages is its thriving ecosystem of existing software, frameworks,
and libraries. A lot of those need modifying to take advantage of a
concurrent / asynchronous environment, or even to run safely at all,
because they assume PHP's traditional "shared nothing" model.
By contrast, the ecosystems of node.js, Go, etc have been written with
concurrent / asynchronous already "baked in", so are fully ready to take
advantage of it. If you need to rewrite large chunks of your codebase to
use an async-friendly framework anyway, it's less of a leap to switch
language completely.
Regards,
--
Rowan Tommins
[IMSoP]