Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-14 Thread Pierre Joye
On Thu, Aug 15, 2024, 6:35 AM Lanre wrote: > Arvids wrote "I don't think C sees a lot of development any more, so it >> makes sense to move towards C++." > > > >> > Nah, I meant the specific conversation with Pierre Joye, it wasn't going > anywhere. I stand by all my points so why would I just le

[PHP-DEV] Should there be a `get_declared_enums()` function ?

2024-08-14 Thread Juliette Reinders Folmer
L.S., I just noticed the following, which struck me as weird/inconsistent: There are four different OO structures in PHP: 1. Classes 2. Interfaces 3. Traits 4. Enums For all four, an `*_exists()` function is available, i.e. `class_exists()`, `interface_exists()`, `trait_exists()` and `enum_ex

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-14 Thread Lanre
> > Arvids wrote "I don't think C sees a lot of development any more, so it > makes sense to move towards C++." Yeah he wrote that right after "PHP has C as core and has allowed C++ for extensions. Expanding that support is a no-brainer, especially since modern C++ has stepped up in major ways".

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-14 Thread Mike Schinkel
> On Aug 14, 2024, at 5:27 PM, Lanre wrote: > >> On Wed, Aug 14, 2024 at 2:32 PM Mike Schinkel wrote: >> > On Aug 14, 2024, at 3:05 PM, Arvids Godjuks >> > wrote: >> > PHP has C as core and has allowed C++ for extensions. Expanding that >> > support is a no-brainer, especially since modern C+

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-14 Thread Lanre
On Wed, Aug 14, 2024 at 2:32 PM Mike Schinkel wrote: > > On Aug 14, 2024, at 3:05 PM, Arvids Godjuks > wrote: > > > > I want to remind everyone on the thread that code does not only have to > be written, which is the "easy part", but it also has to be supported by > everyone into the future and

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-14 Thread Mike Schinkel
> On Aug 14, 2024, at 3:05 PM, Arvids Godjuks wrote: > > I want to remind everyone on the thread that code does not only have to be > written, which is the "easy part", but it also has to be supported by > everyone into the future and chances that the original author sticks around > are not th

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-14 Thread Arvids Godjuks
I want to remind everyone on the thread that code does not only have to be written, which is the "easy part", but it also has to be supported by everyone into the future and chances that the original author sticks around are not that high to do it. The Rust thing is shitposting for the sake of shi

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-14 Thread Lanre
On Wed, Aug 14, 2024 at 4:30 AM Pascal Chevrel wrote: > Le 14/08/2024 à 05:03, Lanre a écrit : > > > > Mozilla introduced Rust years ago, yet Firefox remains primarily C++, > > with only about 3% of the codebase in Rust. > > Hi, > > 10.3% now https://openhub.net/p/firefox/analyses/latest/language

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-14 Thread Rowan Tommins [IMSoP]
On 11 August 2024 23:52:00 BST, Lanre wrote: >I’m considering adding some C++ enhancements to the Zend API. These changes >would be encapsulated within `#ifdef __cplusplus` guards, so they wouldn’t >interfere with the existing C implementation. The primary goal is to >provide a nicer interface

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-14 Thread Lanre
On Wed, Aug 14, 2024 at 3:54 AM Pierre Joye wrote: > > > On Wed, Aug 14, 2024, 11:07 AM Lanre wrote: > >> >> On Tue, Aug 13, 2024 at 4:28 PM Mike Schinkel >> wrote: >> >>> >>> On Aug 12, 2024 at 4:13 PM, > wrote: >>> You’d have to be seriously naive to believe that “the entire industry is >>> a

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-14 Thread Pierre Joye
On Wed, Aug 14, 2024, 11:07 AM Lanre wrote: > > On Tue, Aug 13, 2024 at 4:28 PM Mike Schinkel wrote: > >> >> On Aug 12, 2024 at 4:13 PM, > wrote: >> You’d have to be seriously naive to believe that “the entire industry is >> actively trying to move AWAY from C/C++.” >> >> >> Well, there is this:

Re: [PHP-DEV] Support for pkg-config .pc files

2024-08-14 Thread Kévin Dunglas
Having pkg-config support would allow us to simplify the build process of FrankenPHP. Cgo (as many other tools) has native support for pkg-config. We'll remove many hardcoded paths that are difficult to override for end users. FrankenPHP doesn't use the embed SAPI, but does rely on libphp to provi

Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API

2024-08-14 Thread Morgan
On 2024-08-14 16:03, Lanre wrote: On Tue, Aug 13, 2024 at 4:28 PM Mike Schinkel Well, there is this: https://media.defense.gov/2023/Dec/06/2003352724/-1/-1/0/THE-CASE-FOR-MEMORY-SAFE-ROADMAPS-TLP-CLEAR.PDF