Re: RFC proposal: worker mode primitives for SAPIs
| From: | Rowan Tommins | Date: | Fri, 05 Jan 2024 07:47:45 +0000 |
| Subject: | Re: RFC proposal: worker mode primitives for SAPIs | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-122115@lists.php.net to get a copy of this message | ||
On 5 January 2024 06:55:34 GMT, Robert Landers <landers.robert@gmail.com> wrote:
>I already said this, but to reiterate: I, personally, hear what you
>are saying and largely agree with you; however, before we can really
>have any kind of discussion on concurrent servers, we HAVE to address
>the underlying issues that are missing from PHP. In PHP-src
So, let's address them...
> there are no such things as request objects
This is a non-issue. As has been discussed already, it's perfectly fine to have an event-based
system where the event details are an associative array, rather than a rich object.
> There are no such things as event loops. There are fibers,
> but absolutely no std-library i/o functions are using them
This is what the bulk of Daniil's email is suggesting a way to improve.
>We have a long way to go before those will be real things that we can
>have a proper conversation about in the context of php-src.
If we keep waiting to have the conversation, it will never happen.
And if we start building brand new APIs like infrastructure for worker-mode SAPIs, in ways that are
fundamentally incompatible with async, we're just making more work for ourselves when we do get
there.
Regards,
--
Rowan Tommins
[IMSoP]