Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124928 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 40BCE1A00B7 for ; Wed, 14 Aug 2024 09:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723629370; bh=Y+IGXDi4nXsir+uJvJN8w1zLY8LWBqq2+xDTeE/OBiE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IhjIXXPGL5yjUschCog9fmlk0TesacaDqbFkOt3YxExsFPmBoqNJ0dPIoDxZrbQ4T LRjUhyhwO7QrbwxiMV531E0CtCScXjlXKgldaQiQ+Js1919UQQqJiKVtyJ1bUDRccH 4BCEly5JFj06+x7aUBjwXXJUNP18+cPTiHg5NcncEDKTMcCvr754wKYSLMVTLFLmJe UdpF6+gYyeeMl6G+IIqZTs6ZZudu4J66FhnIkt8kqOK3G5wMZ68Owek/j27qrSbOFE uY3hQlPnLVaXs8u3VWpKVkHPnVUjThMfL0ok0gBo0eM8/jkjJ3IraHzBW+uNu2TZ/K aW5HbNo4k7fHA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2F9AC180059 for ; Wed, 14 Aug 2024 09:56:10 +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-oa1-f46.google.com (mail-oa1-f46.google.com [209.85.160.46]) (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 09:56:09 +0000 (UTC) Received: by mail-oa1-f46.google.com with SMTP id 586e51a60fabf-260e6dfc701so4315942fac.3 for ; Wed, 14 Aug 2024 02:54:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723629263; x=1724234063; 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=Y+IGXDi4nXsir+uJvJN8w1zLY8LWBqq2+xDTeE/OBiE=; b=Hn4eTfuZGxrQGKMe0QF5BrddsQs3DSmrtUWDwqn4+tPHlymUFxf3A53aX8bA6RRJqV uw3I+K4t8t9wscucBNHAdzWUc/5AZzUz9ixJUDYV/zjoFBfM3HomN9xrD0KyO1WA1ipY y1sWkVp4oXudCbJs0CJgLceDA9YWk35ELTA18JXpNPd5bZrKiKKU209kasnfXlXHwoh4 1J819S0uCsr+wFRQcOxzOZ1cc2ATniTYQ9fE+e8LUQbG5e4aOgGd4Cjl0VZF1GwvUgtZ oLDT1tFwv10G1E8NtzZVY4EJcIF3WodmRy8HJrQXtdfbZJ9M9OGqiPnyZZvK9IJM6Afh shZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723629263; x=1724234063; 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=Y+IGXDi4nXsir+uJvJN8w1zLY8LWBqq2+xDTeE/OBiE=; b=oULiu8aLEMmYHW77AdnEEoBASTPpf9m9DCPY7r87AhmRzhgT9SUGkCdlQVgtduh6iE 84CGu2bAHKXR8kKppAWH0v9+QHffW0ET3tNFd99ROFbwnsJWAp4fgNRXTfR3VRdHCMQN SivAlWF7RRea2e4q8Wc3eLFnRQXvokp93uHcUljXO+dYu2fNPZny/oo3YvdkxR+oKYkV KhKmpTJVcNASlZkzI1+v2+i5+iD3ZyRE1jyrkSXkRWpp0C41RvyYW96bRHS7OPYTds32 kZomsQHlJlE0+UTGlkUH+rguqwHXhSm6JxqFRgexCgkQkpny8mD3Ife8vV60jH8ZzcYH pCCA== X-Forwarded-Encrypted: i=1; AJvYcCUjlt5j6+KyFNmB9MNjfvCjoyL92bFpan5D2IlqbOA8zH+z3cOdiIkVhbWUA+JQ6YSn9DScKQZqBAM=@lists.php.net X-Gm-Message-State: AOJu0YyQcmqMH1TPRHShLNogTPUlN7BjfOwAQsSW7dh4rLd8jS+FKpPy mY/MbiwBm++nogQQZzXOjJlo/ia8LBBT7AHJq/whf9V8wtPBYk2vPlWlGPTBRiLFN4N0YMGJu4V OGQPtDLcvm/98z2HH2Szo3fyAq8w= X-Google-Smtp-Source: AGHT+IEsuLPJ4a0jONX5R5oLKJfNKH8IwwhyavVjq+olWy093zNjUJquKM4CrFEbptXhCxjVvtU40Qan1wEEwvPrVZg= X-Received: by 2002:a05:6870:8186:b0:267:e2b2:ec52 with SMTP id 586e51a60fabf-26fe5c89160mr2419506fac.49.1723629263115; Wed, 14 Aug 2024 02:54:23 -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 16:54:12 +0700 Message-ID: Subject: Re: [PHP-DEV] [DISCUSSION] C++ Enhancements in Zend API To: Lanre Cc: Mike Schinkel , John Coggeshall , Levi Morrison , PHP internals Content-Type: multipart/alternative; boundary="000000000000f3dd0c061fa1b5a6" From: pierre.php@gmail.com (Pierre Joye) --000000000000f3dd0c061fa1b5a6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 en= tire 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-ME= MORY-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 data= . 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++, 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 su= ch > 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 trying= 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. > --000000000000f3dd0c061fa1b5a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Wed, Aug 14, 2024, 11:07=E2=80=AFAM Lanre = <lnearwaju@gmail.com> wrot= e:

On Tue, Aug 13, 2024 at 4:28=E2=80=AFPM Mike Schinkel <mike@newclarit= y.net> wrote:

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

Well, there is this:


-Mike

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


T= his is the wrong analyze and approach. How many issues happen the past year= s in the core of a language vs the apps using it would be a better data.

As another example, go is = written in go btw.

My ar= gument about using other languages to write extensions or sapi for php is a= bout ease the development and allow more people to do it. FrankenPHP is a v= ery good example. There are others.

Mozilla introduced Rust years a= go, yet Firefox remains primarily C++, with only about 3% of the codebase i= n Rust. By dismissing C and C++, one overlooks the fact that they are cruci= al for powering everyday systems such as elevators, automotive control unit= s (ECUs, ADAS), medical devices, consumer electronics, industrial automatio= n, and more.

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

Similarly cob= ol is still used, so are some c cgi applications.=C2=A0



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

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

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

also t= he main topic being how to handle the few cases using c++ dependencies have= been elegantly solved already.=C2=A0
--000000000000f3dd0c061fa1b5a6--