Re: [PHP-DEV] PHP True Async RFC

2025-03-01 Thread Rob Landers
On Sat, Mar 1, 2025, at 10:11, Edmond Dantes wrote: > Good day, everyone. I hope you're doing well. > > I’d like to introduce a draft version of the RFC for the True Async component. > > https://wiki.php.net/rfc/true_async > > I believe this version is not perfect and requires analysis. And I st

[PHP-DEV] PHP True Async RFC

2025-03-01 Thread Edmond Dantes
Good day, everyone. I hope you're doing well. I’d like to introduce a draft version of the RFC for the True Async component. https://wiki.php.net/rfc/true_async I believe this version is not perfect and requires analysis. And I strongly believe that things like this shouldn't be developed in iso

Re: [PHP-DEV] Enums should implement Stringable interface by default

2025-03-01 Thread AllenJB
So to summarize the proposed behavior (as I understand it): * If an enum is backed, it auto-casts to ->value * If an enum is not backed, it auto-casts to ->name I believe this has the following problems (at least): * Unbacked enums are not supposed to be representable as scalar values - if I,

Re: [PHP-DEV] PHP True Async RFC

2025-03-01 Thread Edmond Dantes
> > FYI: once you introduce a draft RFC for discussion, the RFC should change > status to "under discussion" per (4): > > It's done. Thank you. Ed.

Re: [PHP-DEV] Vibe check: array shapes

2025-03-01 Thread Alwin Garside
On 1 Mar 2025, at 08:37, Rob Landers wrote: > > Hi Alwin, > > You may be interested in http://wiki.php.net/rfc/records, whose goal from the > beginning was a new type that behaved like arrays (value semantics, copy on > write) as well as the ability to attach behavior to them. > > I’ve since

Re: [PHP-DEV] PHP True Async RFC

2025-03-01 Thread Rowan Tommins [IMSoP]
On 01/03/2025 09:11, Edmond Dantes wrote: Good day, everyone. I hope you're doing well. I’d like to introduce a draft version of the RFC for the True Async component. https://wiki.php.net/rfc/true_async My reaction to this can be summed up as "this is huge!" By that I mean multiple thing

Re: [PHP-DEV] PHP True Async RFC

2025-03-01 Thread Rob Landers
On Sat, Mar 1, 2025, at 18:20, Rowan Tommins [IMSoP] wrote: > On 01/03/2025 09:11, Edmond Dantes wrote: > > > > Good day, everyone. I hope you're doing well. > > > > I’d like to introduce a draft version of the RFC for the True Async > > component. > > > > https://wiki.php.net/rfc/true_async > >

Re: [PHP-DEV] PHP True Async RFC

2025-03-01 Thread Edmond Dantes
> > First: PHP having native async support would be a huge step forward for > the language. It's really exciting to see how this proposal develops. > > Thank you for the kind words, it was awesome to read. I wonder if there are ways it can be split into smaller pieces, so that > we don't overl

Re: [PHP-DEV] PHP True Async RFC

2025-03-01 Thread Edmond Dantes
> but it would be interesting to replace the scheduler with something that > utilized go-routines for true multi-threading. Whether that works or not, > is a whole different can of worms. > > — Rob > If the question is whether it is possible to interact with a PHP thread from another thread by send