zlacker

[return to "PHP 8.2"]
1. tiffan+y7[view] [source] 2022-12-08 13:18:28
>>TimWol+(OP)
What’s a feature that PHP is missing, that if it had it - would garner it more respect?

Note: I think PHP is way under appreciated.

◧◩
2. zmxz+lb[view] [source] 2022-12-08 13:43:18
>>tiffan+y7
1. Support for generic programming.

2. Officially supported runtime that exposes system event loop to userland (yes, we have swoole and roadrunner)

◧◩◪
3. tiffan+ic[view] [source] 2022-12-08 13:48:21
>>zmxz+lb
Related to #2, doesn’t this then make PHP stateful - which some might argue is a negative.

EDIT: have you looked at ngx-php. It’s blazing fast and provides you that event loop.

https://github.com/rryqszq4/ngx-php

https://www.techempower.com/benchmarks/#section=data-r21

◧◩◪◨
4. zmxz+fd[view] [source] 2022-12-08 13:59:53
>>tiffan+ic
Stateful as in it would preserve objects/variables between requests (if served by the server that spins the runtime up)?

That's something up for debate. Personally, I'd like the shared-nothing approach but I'd like to have async capabilities to optimize I/O and a function that flushes the request and frees up resources for next request in queue.

edit: I haven't seen ngx_php, thanks for the link!

[go to top]