Re: State of Generics and Collections

From: Date: Fri, 23 Aug 2024 19:44:51 +0000
Subject: Re: State of Generics and Collections
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Mon, Aug 19, 2024, at 19:08, Derick Rethans wrote:
> Hi!
> 
> Arnaud, Larry, and I have been working on an article describing the 
> state of generics and collections, and related "experiments".
> 
> You can find this article on the PHP Foundation's Blog:
> https://thephp.foundation/blog/2024/08/19/state-of-generics-and-collections/
> 
> cheers,
> Derick
> 

Hello,
I had an idea I wanted to share:

Since PHP Opcache now has an Intermediate Representation (IR), could we potentially store this IR in
a file and recompile it on demand? This approach could make PHP ahead-of-time compiled (though I
believe this already happens in-memory, to some extent, via opcache).

I'm curious to hear your thoughts on the potential benefits and drawbacks of this idea. Could
this solve some existing issues (especially in regards to generics/etc), or might it introduce new
ones? Additionally, would it make sense to consider breaking PHP into separate components: the
runtime, the libraries/extensions, and the compiler?

Regards,

— Rob


Thread (36 messages)

« previous php.internals (#125166) next »