Re: When will the extension and embedding APIs ever be cleaned or documented?
| From: | Johannes Schlüter | Date: | Thu, 13 Feb 2014 23:04:01 +0000 |
| Subject: | Re: When will the extension and embedding APIs ever be cleaned or documented? | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-72569@lists.php.net to get a copy of this message | ||
On Thu, 2014-02-13 at 21:45 +0100, Nikita Popov wrote:
>
> I think we have a pretty good coverage of object and class APIs here:
> http://www.phpinternalsbook.com :)
>
Why is that an eternal project not part of the documentation?
Contributors seem to be php.net contributors ... sad :(
>
> > I have been learning to use the v8 API a lot and it has a very clean
> > syntax. A third-party scripting language brought it even so far,
> that it
> > could almost map native types to script types - but that was pure C
> ++ -
> > both of them.
> >
>
> V8 has the benefit of being written in C++ and being a lot newer. HHVM
> has really nice extension APIs, all courtesy to C++. But a number of
> core devs are rather opposed to using a more powerful language as the
> basis for PHP
> ;) *Glares at Pierre*
>
Well, C++ has tools which would help to provide way cleaner APIs in
efficient manner. PHP's API has a >15 years history though with tons of
modules depending on it. Any major break is bad.
Mind: "Compatibility is a feature." (Bjarne Stroustrup) The fact that 10
years old extensions can be used with php git master with quite little
work is not only a help for old users but also promise to new users that
their investment won't be lost easily.
johannes