Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124925 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 0FF631A00B7 for ; Wed, 14 Aug 2024 04:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723608356; bh=YsetG8TeKzzE9C0W2MvzEA/LqUwUPW+szotslAiqquk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Oag0nRDy23ReVQrF4hr4dE8WMs3+bcuBXLnOPbT2wUDlsExV3no+ZDII86NniFrMU DeZ9o/dOuQrujt1wM9BnfbSMspNBPdQ408MHr8Em7e461sbNmehK6m1+teYDYvG8N8 dPl6BQlKcHmVZpEMuWIB968IDrQsLKkQL2uS+Vbt3XalE/D3z7wFyfdF14O+3N4pMi 4uFIN4TwqMcuCzI7x0TZGNprmeKnsCd+dwd5RVPQzD4rPl0cbxQ6tNXPUsqkCtVTO8 RPzJdN2dkeRH1QfCp5k24pHtH1U7m8nWAK1ohubwizdVsxCdq9Ert0tTWo4w3D2Cpr +Z2SgaLVCvEdA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AE00C180072 for ; Wed, 14 Aug 2024 04:05:55 +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-f44.google.com (mail-ua1-f44.google.com [209.85.222.44]) (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 04:05:55 +0000 (UTC) Received: by mail-ua1-f44.google.com with SMTP id a1e0cc1a2514c-84118fa2af4so1946902241.1 for ; Tue, 13 Aug 2024 21:04:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723608248; x=1724213048; 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=YsetG8TeKzzE9C0W2MvzEA/LqUwUPW+szotslAiqquk=; b=G5gOSCnNN4QJOFtnIy/YsDe2baigvMPD7lEsxkzWkRrv+LGcwHLtmY0WJPlXXJ8ZM0 EEgd7gNo6c8Xq33/8YmWAMC+/l7L6/saqNI3xJQkCAItzE++IZmL2ydiQgsTnH1sZI// 9r0Kyr4kjMfpfgZISJP+Tkn5TkQYwA3vDvJZaaHDa7FG7T/mMs5DN9I4yQyrq4skWwut 9HKV5YV5bPWh7tFyXJHGn8IX0xlt0rZwZFYLNWpR/SDKREmlU5dMcvu7l/mu0e9CsMmF dOptvD0LbZHR8etq29TijoLZ611pM2VBxYHggqLe9NFHcsW5NexFdDiJoZ1FYsitiCEK HjOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723608248; x=1724213048; 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=YsetG8TeKzzE9C0W2MvzEA/LqUwUPW+szotslAiqquk=; b=AEpi9Mbj3KggNNI6aWa+NaI1vGfW7LAB5dw8HOHCam7mDodFRAN+ECHjSkuRkBcVSB g3nUkiv0IkzRyq21isKab3LesJ/RkFUT8QZpKoO6M65WlnANbUs29ZIFRkFOgAArUll3 UZ1jFMcCLxOt9aY3FhEA1AfHO7PoeMV1vdDcP+z04oAvw+yl21K3N4Ai8peYd6WnCMh+ xzr484pieSC6ap4CrnaqtoNna7m1lGl29q1OSTyJ3gxqBLFfer4r/CWf7ryRBn4qQjL2 QG8hpijnApPMG9fTxUueq5xA/2FZCVmQ91Ft4HrgKA9/kObSvL8IZxDMrKqHuxUl/7At vyQA== X-Forwarded-Encrypted: i=1; AJvYcCVKyBGK5rfGN5vCzkFDkqOTykfZ7vRGN2cTe7C6Nihdua3xX2aodTEy+1GmjRsH0nP9HshGo+jKAGwtroVqvRxPOaOA3B3mEw== X-Gm-Message-State: AOJu0YwfodbuodVhePwRliS7v/PT3sEKB0XUdFn+Oub88O6Qqgr7D+12 sRyfQBjfQtVmGQdPpceunkKcn27pYHhJ6BWRIEwve/2q9kz33xOeUfr/htw5hd9TUe6qXJC8h6T /AylS9Em0y4ErFNeyBJ9joRMsi3W5onTf X-Google-Smtp-Source: AGHT+IGV9oT7vKAhavc9ih2FmRCO3YetjM3AeHtqA26dDRazNGNwfojDqwB1QXOms7Tju6TiH/uOgLHhh8NRElkUJJY= X-Received: by 2002:a67:f055:0:b0:497:5f78:691d with SMTP id ada2fe7eead31-4975f786a58mr372765137.3.1723608248458; Tue, 13 Aug 2024 21:04:08 -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> In-Reply-To: <0BB4DB2D-62E1-40F9-91F3-7D48367D2CBE@edison.tech> Date: Tue, 13 Aug 2024 22:03:57 -0600 Message-ID: Subject: Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API To: Mike Schinkel Cc: John Coggeshall , Levi Morrison , PHP internals Content-Type: multipart/alternative; boundary="00000000000061a441061f9cd101" From: lnearwaju@gmail.com (Lanre) --00000000000061a441061f9cd101 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Aug 13, 2024 at 4:28=E2=80=AFPM Mike Schinkel = wrote: > > On Aug 12, 2024 at 4:13 PM, > wrote: > You=E2=80=99d have to be seriously naive to believe that =E2=80=9Cthe ent= ire industry is > actively trying to move AWAY from C/C++.=E2=80=9D > > > Well, there is this: > > > https://media.defense.gov/2023/Dec/06/2003352724/-1/-1/0/THE-CASE-FOR-MEM= ORY-SAFE-ROADMAPS-TLP-CLEAR.PDF > > -Mike > The source mentions Python and Swift as "memory-safe languages," both of which are implemented in C and C++. How does that work if C and C++ aren't memory-safe? Mozilla introduced Rust years ago, yet Firefox remains primarily C++, with only about 3% of the codebase in Rust. By dismissing C and C++, one overlooks the fact that they are crucial for powering everyday systems such as elevators, automotive control units (ECUs, ADAS), medical devices, consumer electronics, industrial automation, and more. It IS naive to believe that =E2=80=9Cthe entire industry is actively trying= to move AWAY from C/C++.=E2=80=9D. Cheers, Lanre. --00000000000061a441061f9cd101 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Tue, Aug 13, 2024 at 4:28=E2=80=AFPM M= ike Schinkel <m= ike@newclarity.net> wrote:

On Aug 12, 2024 at 4:13 PM, <Lanre> wrote:
You= =E2=80=99d have to be seriously naive to believe that =E2=80=9Cthe entire i= ndustry is actively trying to move AWAY from C/C++.=E2=80=9D

Well, there is this:
<= br>

-Mike

The source mentions Python an= d Swift as "memory-safe languages," both of which are implemented= in C and C++. How does that work if C and C++ aren't memory-safe?

<= p>Mozilla introduced Rust years ago, yet Firefox remains primarily C++, wit= h only about 3% of the codebase in Rust. By dismissing C and C++, one overl= ooks the fact that they are crucial for powering everyday systems such as e= levators, automotive control units (ECUs, ADAS), medical devices, consumer = electronics, industrial automation, and more.

It IS naive to = believe that =E2=80=9Cthe entire industry is actively trying to move AWAY f= rom C/C++.=E2=80=9D.

Cheers,
Lanre.
--00000000000061a441061f9cd101--