Re: [DISCUSSION] C++ Enhancements in Zend API

From: Date: Wed, 14 Aug 2024 09:35:21 +0000
Subject: Re: [DISCUSSION] C++ Enhancements in Zend API
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 2024-08-14 16:03, Lanre wrote:
On Tue, Aug 13, 2024 at 4:28 PM Mike Schinkel <[email protected]
    Well, there is this:
    https://media.defense.gov/2023/Dec/06/2003352724/-1/-1/0/THE-CASE-FOR-MEMORY-SAFE-ROADMAPS-TLP-CLEAR.PDF <https://media.defense.gov/2023/Dec/06/2003352724/-1/-1/0/THE-CASE-FOR-MEMORY-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? Cheers, Lanre.
The same way Legolas can be called an elf even when the character is being played by a human actor: by not making category errors. Even if the compiler of a Swift program has a memory management failure, that is not the fault of the Swift program, but of the compiler (and the language it is written in that allowed it).

Thread (40 messages)

« previous php.internals (#124926) next »