Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124895 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 4C3131A00B7 for ; Mon, 12 Aug 2024 16:50:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723481540; bh=7qVI5jwHlKHi+bXGBdH07kJ9FLGkEYaYDugiD1JBjcY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=drQGbxCDKYcdbR5fPhhGwXUbWT0D+CgYqe/p3eilJArxli2VA/HRwi7IljLKa5lC+ TAK6ZEc84Q9vvershZoDdx7ILaLKCYlEAX1tiuyfFWJrdraYDUHeqRT56Mk2fazMyG NpgxzBRoZQTLecMDnflC5kd1iekJgG2T05NzYh4INA1cLs+izVLtZwGwSFhBk3ASaI /Re9Tn7DwbaJ7GWyQyJbiXl7A9bQAurr16lVyD9839kX2zttiUgNSLrCUVrPR1j88P UHdyS8SHhyYOI/b58U5roUqek6Y8PdYR6Ur18xZu2o+GYJOTkXH+djjtx3gr5rrOo9 NA/uCpqc0kaTQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 54A78180068 for ; Mon, 12 Aug 2024 16:52:20 +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_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.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 ; Mon, 12 Aug 2024 16:52:19 +0000 (UTC) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2cf93dc11c6so3570085a91.1 for ; Mon, 12 Aug 2024 09:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723481434; x=1724086234; 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=7qVI5jwHlKHi+bXGBdH07kJ9FLGkEYaYDugiD1JBjcY=; b=QwHeTRxDd0l/7LQMk+O7uc9LBOjr1K4xT1YZZ2eaoqcxAKOK4peKq86zd6rO1sZgNh o/NzpA9XK81sCWDP2FsgBjY78njwMhsuKELFZQdIoKRLdvIYVCQvMNEoRESRMWzIF9ah gPmsJOm/af/Y6ijYgtdrXo/+x5Jgtx1vTkjSpr2wo54ICJWx76r09mf6FJrgXBPzyu3U DUjp3Rjepyre9XnzcpyoDoOj866/ymsHy4Drce2zPyb9XD+17BCH2VvwkImT7enQwe4V lomuQD2Agn7jcIBrv6tiZC/r1xSM5xue9TSdo9eAF/BJBar9VJxtb88K58MfZpM42rF8 ePHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723481434; x=1724086234; 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=7qVI5jwHlKHi+bXGBdH07kJ9FLGkEYaYDugiD1JBjcY=; b=FRe9/KilWlzN3FDDeI2BFAvZldmPU1AhBpqsWoNDU5DZadRQVz1BuGDB5j2OCe+HxX MbuuiQfr+nz08bnCfKvImM9A82fEe5xQnbtdSUPPKlahQT/rI0GOiBdGJkooylhjovmT 4PsRZoUNLdHPSVn0xersH4QMAaw3RuQ42atwQQ6/7E6iC5jMjap/WF0vU3MotRlwoPX6 h0InnHbAIia3pLMwiPYuKD06iqWidItiu01/4rMgd/e2gSZRevIjh8HzvOPT5zLZUGWF jxpSedWqqlhok1pHblXlZ5N2L0C8uJjuAIO7x5UtEYYRVyRTBDD9H04/gn5XOoGKN90X T37Q== X-Forwarded-Encrypted: i=1; AJvYcCWecJDS/btCXJierhH6Axdm7Wxd80WENzhfV1ZXiDVQg1IgtXuGneJgd0MZRSaV7utQlhcdLyFxSN9Utdf/ZIl8h+kwCDSwQQ== X-Gm-Message-State: AOJu0YzFZNiFlfEFEGKj0tp/hsxLJ2IVN/pmktuoZRerl1RneyYxIyPh gd2MxK75aomz6UHuVfeeCguZ6MylnuyjQ4q8xRtzXlNCa2PcTa4sGzVTK8cOIyp/2GiVFDtHMKl jnc0/KbApaSPVSsiuhKbugRLeV4Y= X-Google-Smtp-Source: AGHT+IFNQ+eqVs4EmZ1RQ+kmYxRXFgnztWHFqpUQFPSKXvRNspEv5lE/Py4Xskl6lRdp3fM3ZGAQJUS07+REfRUHeT0= X-Received: by 2002:a17:90a:d30f:b0:2cf:2ab6:a134 with SMTP id 98e67ed59e1d1-2d39263f458mr868463a91.32.1723481433824; Mon, 12 Aug 2024 09:50:33 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <3F5C5B7F-6EE5-437D-9E4A-4C86EC103E7A@getmailspring.com> In-Reply-To: <3F5C5B7F-6EE5-437D-9E4A-4C86EC103E7A@getmailspring.com> Date: Mon, 12 Aug 2024 23:50:22 +0700 Message-ID: Subject: Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API To: John Coggeshall Cc: Levi Morrison , Lanre , PHP internals Content-Type: multipart/alternative; boundary="000000000000a3e897061f7f4a9b" From: pierre.php@gmail.com (Pierre Joye) --000000000000a3e897061f7f4a9b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Aug 12, 2024, 11:03=E2=80=AFPM John Coggeshall wrote: > > > I=E2=80=99m considering adding some C++ enhancements to the Zend API. > > > I would definitely like to see an RFC for this if it was to be considered= . > To me, adding a whole new way of doing things internally without complete= ly > removing the old way is just asking for a more brittle, potentially less > secure, and harder to maintain codebase. The win of making it easier / > "nicer" on a subset of developers who might prefer a C++ interface isn't > anywhere near worth the risk IMO. > if anything, I would rather go with rust (zig would have my preference ;-). The benefits would be to have a significant ease to contribute for many. Neither of c++ or rust would be easy to add. The later would have the huge advantage to bring a little bit more safety to the extensions APIs. A less diplomatic answer would be that c++ makes zero sense in 2024 for php (or any other language), a strong and bold take :) best, Pierre --000000000000a3e897061f7f4a9b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Aug 12, 2024, 11:03=E2=80=AFPM John Coggeshall= <john@coggeshall.org> wro= te:

> = I=E2=80=99m considering adding some C++ enhancements to the Zend API.
=

I would definitely like to see an RFC for this = if it was to be considered. To me, adding a whole new way of doing things i= nternally without completely removing the old way is just asking for a more= brittle, potentially less secure, and harder to maintain codebase. The win= of making it easier / "nicer" on a subset of developers who migh= t prefer a C++ interface isn't anywhere near worth the risk IMO.
<= /blockquote>


<= /div>
if anything, I would rather go with rust (zig would = have my preference ;-). The benefits would be to have a significant ease to= contribute for many.

Ne= ither of c++ or rust would be easy to add. The later would have the huge ad= vantage to bring a little bit more safety to the extensions APIs.

A less diplomatic answer would be= that c++ makes zero sense in 2024 for php (or any other language), a stron= g and bold take :)

best,=
Pierre
--000000000000a3e897061f7f4a9b--