RE: [PHP-DEV] One API to rule them all? (Was: Extension Prepend Files)
| From: | François Laupretre | Date: | Sun, 11 Jan 2015 13:39:24 +0000 |
| Subject: | RE: [PHP-DEV] One API to rule them all? (Was: Extension Prepend Files) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80367@lists.php.net to get a copy of this message | ||
> De : Pierre Joye [mailto:pierre.php@gmail.com]
>
> More than adding a new layer, I would love to see something similar to
> hhvm or Zephir available by default. If C is used, then only the
> relevant parts have to be implement by the developers, skipping all
> the over complicated data mangling, swapping, exchange, etc between
> userland and the engine. It is then relatively easy to end up
> generating codes for either php, hhvm or any other platform. Using
> builtin script (yes, in this case it could be a nice thing), it could
> became a very nice way to develop php&co extensions.
>
> For what I can imagine (I did not remotely try to implement it yet) is
> to find a way to parse, say, a php script which include custom
> sections for C (or C++) codes. We could use comments but I do not like
> the idea, mainly because it will be tricky to have editors support :)
I am not sure we need a real language here (PHP or other). I would first wait to see if a set of C
macros can't do the job.
Cheers
François