Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124929 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 079961A00B7 for ; Wed, 14 Aug 2024 11:10:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723633940; bh=qeB2G8oeT+DGsiM2o+tbNBJ7mRBlE2ZsgvEnvDa2LZk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=a7wUZElnvsEOS6MMLzbvBGqG+A8H59fnbdLytJTqDjySF7RKfG7k4BTiFA4ASuoOT ag8O4+TE6NDOFpGXtKZq7EgE91QAKxGfM/l2PsrHZu6/YLpPe8aVQqyZOPc7el333A wFzD/b7W68TdepqRTRcBAzmFktI7cbBWQHCfc0rTqskPaLTBXPFfunFMaEcd93LLod QeWmmbR4iwkSbk4jxV8cqNc7Lvp/lPxSilRDRcGjY2JaXLxgGVX+2BpH383wBz1scB KWdId3/fS+CfHSsB9cUp0KWTNCeGE7XmqsuFP1L4EjsQYkjFKYc39JhzF5jhSd0LJQ /BWWRPiUBwRSA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DF38A18006F for ; Wed, 14 Aug 2024 11:12:19 +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 11:12:19 +0000 (UTC) Received: by mail-ua1-f44.google.com with SMTP id a1e0cc1a2514c-842f1dd60deso115973241.2 for ; Wed, 14 Aug 2024 04:10:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723633833; x=1724238633; 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=qeB2G8oeT+DGsiM2o+tbNBJ7mRBlE2ZsgvEnvDa2LZk=; b=B69bBwJJ/3EhGJLtgLjTQoFUNfoq5qNz1p5kwLDAkwD6iGFE0paRAOLygbDAdLYn75 /IY9cyrR6eQg+DrTnmf6OLcCxabyTGsjsesJ8JRPnHl1NJcwpsEKYER5eQ4vE0CgwMOW rjnGFfuy1Tda6Pji208W2y+Ow0KY8UePv3UoZUKBq+FRUqA4Nswi8CpZ12I29yFywULn 33tCzNr4PcjJxymrfU2JWUU+ge6F5fdl5ndJJzB7TX+JVBgmgrDHFsmcDo9DU77LekgQ HQTMVqc3Z/kQ43t606xdLNCT7n84gohI+5VWHXy32DsbmbGRAolGwCQOlIMyEyeEJ709 hGcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723633833; x=1724238633; 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=qeB2G8oeT+DGsiM2o+tbNBJ7mRBlE2ZsgvEnvDa2LZk=; b=YKuJf2ZXo4/VneqYGymD1WmB6IhkpYqWVu5GD2LE3SzUH4vfDakpRXObHKB8N0WlvY 3ApplRqUR7yxheR2vQbCuDP5RqCGRZ4OSC7pPGeI4gzJopRE7kCxla8nCMz8nYfYz9dT mo9WSszeHOaVciEw4b6LPnvZZsC+RyVbd0TYfVn0JzoBRW24y2jSiteCxG6qmq5RuxCd vdvsGwJxZNfc5gphaMJbn0gp8OIdvWnQ1Tp4KLsUpC10wj6dpwEOMXcxg+q69+cmAOvy AxXApX+VZvqQqmlkbs+np7faYvyLkDMdzfyjacQONyQZ28B4PgmPz+aIwrwDtEfA+/7n 3Fyg== X-Forwarded-Encrypted: i=1; AJvYcCVzAj6/WIdfp/hOnJFJdEsxVtrat/YipvaH9Jf/HZ2AmvUqSzfSU3gOCwUorX4i3pqdVoAH2G6gqP0=@lists.php.net X-Gm-Message-State: AOJu0Yxj9Wf7eBKbo5hYQjC1q72uyifANs6KIB4fwHgK5GLGB95Iqzgv E4cLhJqk3Z6605w7D/1csIE18p9Bl67dKLSKvFJ6WvC5unXJfK/09HJoIkoQWipwq5pol5c76BE aaplT8vKSQdt7nCnPIQtEw6w95mOoOw== X-Google-Smtp-Source: AGHT+IHVQKnEaA0yGSRp0nJwq1WBZPTiMuxLzYhoJKblXHkHZdtjUg8tKVXCrHSEJOPno313UHtOuPB0afmwDffUJLk= X-Received: by 2002:a05:6102:26ce:b0:492:aaae:835d with SMTP id ada2fe7eead31-4975979c91bmr3032475137.0.1723633832806; Wed, 14 Aug 2024 04:10:32 -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: Date: Wed, 14 Aug 2024 05:10:22 -0600 Message-ID: Subject: Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API To: Pierre Joye Cc: Mike Schinkel , John Coggeshall , Levi Morrison , PHP internals Content-Type: multipart/alternative; boundary="00000000000053d09d061fa2c603" From: lnearwaju@gmail.com (Lanre) --00000000000053d09d061fa2c603 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Aug 14, 2024 at 3:54=E2=80=AFAM Pierre Joye = wrote: > > > On Wed, Aug 14, 2024, 11:07=E2=80=AFAM Lanre wrote: > >> >> 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 e= ntire 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-M= EMORY-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? >> > > This is the wrong analyze and approach. How many issues happen the past > years in the core of a language vs the apps using it would be a better da= ta. > > As another example, go is written in go btw. > > My argument about using other languages to write extensions or sapi for > php is about ease the development and allow more people to do it. > FrankenPHP is a very good example. There are others. > > 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 >> overlooks the fact that they are crucial for powering everyday systems s= uch >> as elevators, automotive control units (ECUs, ADAS), medical devices, >> consumer electronics, industrial automation, and more. >> > Some of my code running automates on z80 still run. Yet, newer models use > mips cpu and C. > > Similarly cobol is still used, so are some c cgi applications. > > > > It IS naive to believe that =E2=80=9Cthe entire industry is actively tryi= ng to >> move AWAY from C/C++.=E2=80=9D. >> > > you are extrapolating for the sake of it. Every industry has a certain > latency to move from one tech to another (or non tech). > > It does not prevent new solutions to grow and be used. > > also the main topic being how to handle the few cases using c++ > dependencies have been elegantly solved already. > This conversation is a waste of both of our times, have a wonderful day, cheers. --00000000000053d09d061fa2c603 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, Aug 14, 2024 at 3:54=E2=80=AF= AM Pierre Joye <pierre.php@gmail= .com> wrote:


On Wed, Aug 14, 2024, 11:07=E2=80=AFAM Lan= re <lnearwaju@g= mail.com> wrote:

On Tue, Aug 13, 2024 at 4:28=E2= =80=AFPM Mike Schinkel <mike@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 industry is activel= y trying to move AWAY from C/C++.=E2=80=9D
<= /div>

Well, there is this:


-Mike
<= /div>

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

=

This is the wrong analyze and approach. How many issues happen th= e past years in the core of a language vs the apps using it would be a bett= er data.

As another exam= ple, go is written in go btw.

My argument about using other languages to write extensions or sapi f= or php is about ease the development and allow more people to do it. Franke= nPHP is a very good example. There are others.

<= /div>

Moz= illa introduced Rust years ago, yet Firefox remains primarily C++, with onl= y 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 elevat= ors, automotive control units (ECUs, ADAS), medical devices, consumer elect= ronics, industrial automation, and more.

=
Some of my code running automates on z80 still run.= Yet, newer models use mips cpu and C.

Similarly cobol is still used, so are some c cgi application= s.=C2=A0



It IS naive to believe that =E2=80=9Cthe entire industry is act= ively trying to move AWAY from C/C++.=E2=80=9D.

you are extrapolatin= g for the sake of it. Every industry has a certain latency to move from one= tech to another (or non tech).

It does not prevent new solutions to grow and be used.

also the main topic being how to h= andle the few cases using c++ dependencies have been elegantly solved alrea= dy.=C2=A0

This conversation is = a waste of both of our times, have a wonderful day, cheers.=C2=A0
--00000000000053d09d061fa2c603--