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

Reply via email to