Re: my take on PHP 6, part 2

From: Date: Mon, 17 Feb 2014 09:19:31 +0000
Subject: Re: my take on PHP 6, part 2
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Mon, Feb 17, 2014 at 7:28 AM, Pierre Joye <[email protected]> wrote:
> hi,
>
> I put my thoughts and summary of the recent discussions about what
> could be PHP 6 here:
>
> https://wiki.php.net/ideas/php6
>
> Things like "we should name it php7" has not been covered, for one
> obvious reasons.
>
> It is not a TODO list but a list of proposals I would like to see us
> discuss, work on, push harder. They are features, changes, etc. I have
> been hearing for years and things we should really give more
> attention.
>
> Please do not mass reply to this thread but prefer to create one new
> thread per topic. Who knows, we may get enough input to create one
> wiki page per topic. And if you are lucky enough, we may even have
> some working groups for each of them?
>
> Happy reading, comments, feedback and the likes welcome!
>

I'd add :

- Change compiler design : build a new hookable AST-based compiler
that would allow modules (extensions) to hook into the AST for custom
compilation rules.

- Start a reflection about threaded VM : We could start designing a
threaded model and use it for I/Os at first. Our VM should be able to
do several things at the same time and we should prevent it from
waiting for operation results (I/Os).

- If we could redesign objects and arrays so that they could be
interchanged in many functions accepting arrays would be nice. Both
arrays and objects could share a common structure holding the data
that would be used when using such functions.

- Add new structures such as Generics, we need that

- Extend type hinting to scalars

- Improve PHP syntax so that compiler can make optimizations, such as
having allowing the declaration of read only variables : "public
static const $a".

More ideas to come...

Julien


Thread (25 messages)

« previous php.internals (#72652) next »