Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124936 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id B6DE11A00B7 for ; Wed, 14 Aug 2024 23:31:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723678376; bh=URBR8XV/OFaDwkLl68GMhKMNwmW/NmDXKPn62J2mR8k=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kTQZnO3ZH9tj36bwRV6Y9sPLoQeSisIUc7ELuG/TFLkhXEvEaHjlPOqHlpTWRBMU8 3sGOAMpCT5IMVkmKHRgCIkbMCbCorCL+qP54vuCAqB4qYKrtmvuCGKzxfsTeFWSBZC LXPUrHGrSQ4jTCNuF0V0zflJe5ULyIsoGvXzLsAOJobfQLbGoknouoLO2LQcVTJxzG eEhtQwMg9UgoxruFHbqUdazUwLwQUasw5AgqgH5tLEuyEcgABxRxTAdNYhayH2GShx /9/JCXHXPqB82F1wXLKS6OjO0jbRGlqfNkX2kqUe8FRmrSiDC5HczKRx2qJgetsf0c 4aVvbKd6QNSdg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D5CF118005B for ; Wed, 14 Aug 2024 23:32:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f43.google.com (mail-ua1-f43.google.com [209.85.222.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 14 Aug 2024 23:32:51 +0000 (UTC) Received: by mail-ua1-f43.google.com with SMTP id a1e0cc1a2514c-84118fa2af4so140884241.1 for ; Wed, 14 Aug 2024 16:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723678264; x=1724283064; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=URBR8XV/OFaDwkLl68GMhKMNwmW/NmDXKPn62J2mR8k=; b=GwkuScWTag+Gc7NvHxvUE7R1FTU4kHrPtydVJWboPCZMlj2/UunUdBl/pcovcYrhIY XHSpD3eTxwHJJPGkzN0FDz5FgX+/t91hTFGoR9Vr7nJ2AMjf69z6noOBhFwq9saGS5T2 z3/Jv4iRlKcaPatQOySdBFouYpjZt72f7JBIiS12B6V57KXM2GD/nNSa0m9UWBqoo7Nl aU4o17QOUylnY4v1Ds8EEoEl38LC7FiDGb7Uz73f6dEeRxrezjiZou+9/azj1cmtUhMW MXm/HiaZXN0RdTBERUSLRd75VxIEmbMCMbEq9f1PMxNyi9EJjmKPIefgNUA+Ke2D0OCi Gqjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723678264; x=1724283064; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=URBR8XV/OFaDwkLl68GMhKMNwmW/NmDXKPn62J2mR8k=; b=evyQTTefbxaG59GQiNauie/pA8UYFyMFi2mWVJNlc+wADbofSQDBZlakDLPKofKDf/ QZechYBCraieu/cRFgnVjDHTp4Og/CxqZktb7fc7CfshmU6kqOpZXraxyKsCCRXb+4sX FN9Yb4nx2g1jKESTAYseblUUuuqxAn6pZ5zLLATEt1zOdxPvwY8IbUztDiB7X8MEH/mb 6yL/BkasbO2BKl4Mrpw0qVofkn16UE/wdjrp85E/dpuz3/rFCXTCJdZeB7qiYR0orlTm 4feDDeZv1m2GjJYwOVxLyyUWLkPpNbKTLzZg5koUhfuVXFwBsjDEuGJe73P3DRx+Ow3k 7o7A== X-Gm-Message-State: AOJu0Yy9jz2md3APIIsgFE+opsddT31tCG2vbr91SJTf4NqKKVtgIu2p fxVDYo27yYZ078g/1R41KTvLbf5vBycP8LfEpK+ILj9bJaG/hf0hmOv2YLCKNnySo26ONPpIDwJ SMfPbyKWYRkrQFSwl/JSosQWBtxc= X-Google-Smtp-Source: AGHT+IHuIWAOXBEtKGQzAb7lVioCbShD0mJ7VxXNNfL1M9H0Sx90eBoWRlQV8NWugIut3WceNzc6VsSyDCHri2jWEe8= X-Received: by 2002:a05:6102:3a08:b0:493:d4e7:4ea7 with SMTP id ada2fe7eead31-497599c5acbmr5703808137.19.1723678264251; Wed, 14 Aug 2024 16:31:04 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <89C901BF-DCEA-498E-93B0-750C49E6275B@getmailspring.com> <0BB4DB2D-62E1-40F9-91F3-7D48367D2CBE@edison.tech> <9fb2c610-eed9-4773-8158-adef581d6a5b@free.fr> <6CBD6794-6733-43F5-B2A3-B136D8823410@newclarity.net> In-Reply-To: <6CBD6794-6733-43F5-B2A3-B136D8823410@newclarity.net> Date: Wed, 14 Aug 2024 17:30:54 -0600 Message-ID: Subject: Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API To: Mike Schinkel Cc: PHP internals , Pascal Chevrel , John Coggeshall , Levi Morrison , Arvids Godjuks Content-Type: multipart/alternative; boundary="000000000000a5e037061fad1e0f" From: lnearwaju@gmail.com (Lanre) --000000000000a5e037061fad1e0f Content-Type: text/plain; charset="UTF-8" > > 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". That is also known as context. I could be wrong as I am not an expert in either C or Zig, but from what I > understand from others who have adopted Zig for C code bases it would not > be a huge investment at all. Which is why I proposed it. Well the source code is right there, go ahead and explore adopting Zig and feel free to report back with your findings. Until then, I think we should stick to something that has been battle tested over the past 30 years. > Again, I will reiterate that these proposed changes will not affect the > current course of PHP. Development will go on as usual and any bugs > introduced by this proposal will be contained to C++ extensions interacting > with the code. C devs can act like this doesn't even exist because as far > as the C compiler is concerned, it doesn't. On the other hand C++ devs > won't have to keep reinventing the wheel whenever they have to build an > extension with C++. What is a php extension if not a wrapper for a C/C++ > lib? > > > > IF I wanted PHP to be implemented in C++, I would simply fork it. How > many thousand RFCs do you think it will take to get anything reasonable > done? I'm baffled that I actually have to convince y'all to IMPROVE the > current support for C++, but calm down, no one wants you to quit. > > Again, I did not comment on your proposal pro nor con. Fair enough. > P.S. BTW, didn't you already say this conversation was a waste of your > time and imply that you were done with the thread? Then why would I be > replying to you? > 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 leave because of some confused folks? Cheers, Lanre. --000000000000a5e037061fad1e0f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Arvids wrote "I don't think C sees a lot of dev= elopment 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". That is a= lso known as context.

I could be wrong as I am not an expert in either C or Zig, but from what I = understand from others who have adopted Zig for C code bases it would not b= e a huge investment at all. Which is why I proposed it.
Well the source code is right there, go ahead and explore adop= ting Zig and feel free to report back with your findings. Until then, I thi= nk we should stick to something that has been battle tested over the past 3= 0 years.

> Again, I will reiterate that these proposed changes will not affect th= e current course of PHP. Development will go on as usual and any bugs intro= duced by this proposal will be contained to C++ extensions interacting with= the code. C devs can act like this doesn't even exist because as far a= s the C compiler is concerned, it doesn't. On the other hand C++ devs w= on't have to keep reinventing the wheel whenever they have to build an = extension with C++. What is a php extension if not a wrapper for a C/C++ li= b?
>
> IF I wanted PHP to be implemented in C++, I would simply fork it. How = many thousand RFCs do you think it will take to get anything reasonable don= e? I'm baffled that I actually have to convince y'all to IMPROVE th= e current support for C++, but calm down, no one wants you to quit.

Again, I did not comment on your proposal pro nor con.
Fair enough.
=C2=A0
P.S. BTW, didn't you already say this conversation was a waste of your = time and imply that you were done with the thread? Then why would I be repl= ying to you?

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 leave because of some confused folks?
<= div>
Cheers,
Lanre.
=C2=A0
--000000000000a5e037061fad1e0f--