Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"We came. We saw. We kicked its ass." -- Bill Murray, _Ghostbusters_


devel / comp.lang.c++ / Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

SubjectAuthor
* "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lynn McGuire
+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|`- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"John McCue
|`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
| `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Blue-Maned_Hawk
|  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|   +- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|   `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Blue-Maned_Hawk
|    `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|     `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Blue-Maned_Hawk
+- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Blue-Maned_Hawk
+- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Michael S
+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|+- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Janis Papanagnou
|+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Kaz Kylheku
||`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|| +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|| | +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Malcolm McLean
|| | |`- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| | `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |  +- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|| |   `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |    `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|| |     `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |      `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |       `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|| |        `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |         `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| +- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|| `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Janis Papanagnou
||  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
||   `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Janis Papanagnou
||    `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
||+- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Andreas Kempe
||`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|| |+- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |+- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"bart
|| |`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Malcolm McLean
|| | `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|| |  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Michael S
|| |   `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|| |    +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |    |`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|| |    | `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |    `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Michael S
|| |     `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|| |      `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Michael S
|| |       +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"bart
|| |       |+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Michael S
|| |       ||`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|| |       || +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Michael S
|| |       || |`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|| |       || | +- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Kaz Kylheku
|| |       || | `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Paavo Helde
|| |       || |  +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|| |       || |  |+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"bart
|| |       || |  ||`- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|| |       || |  |`- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Ross Finlayson
|| |       || |  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|| |       || |   +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |       || |   |`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Kaz Kylheku
|| |       || |   | `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |       || |   |  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Kaz Kylheku
|| |       || |   |   `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |       || |   `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"paavo512
|| |       || |    +- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |       || |    `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Scott Lurndal
|| |       || `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Kaz Kylheku
|| |       ||  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|| |       ||   `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Michael S
|| |       ||    `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David Brown
|| |       ||     +- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Michael S
|| |       ||     `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|| |       ||      `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"aph
|| |       |`- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|| |       +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"aph
|| |       |`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|| |       | `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |       |  `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Kaz Kylheku
|| |       |   `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|| |       `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
|| `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Kenny McCormack
||  `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|`- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Scott Lurndal
|`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lynn McGuire
| +- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
| `- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Scott Lurndal
+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Blue-Maned_Hawk
|+- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
|`- Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lynn McGuire
+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"David LaRue
|`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
| +* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
| |+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Chris M. Thomasson
| ||+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lawrence D'Oliveiro
| ||`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Janis Papanagnou
| |`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Lynn McGuire
| `* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Malcolm McLean
+* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Derek
`* Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"Mr. Man-wai Chang

Pages:1234567
Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us318m$2of1i$4@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3203&group=comp.lang.c%2B%2B#3203

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Sun, 3 Mar 2024 23:31:35 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <us318m$2of1i$4@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<20240303092938.43@kylheku.com> <us2m8u$2m9mm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Mar 2024 23:31:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ebd4c9541601cb1e1312dcde6a0cb96a";
logging-data="2898994"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mpgR+Bokmfk6DyH3p6PIM"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:r7DtSsDvd2G7Besk4qN0kMB3lCQ=
 by: Lawrence D'Oliv - Sun, 3 Mar 2024 23:31 UTC

On Sun, 3 Mar 2024 21:23:56 +0100, David Brown wrote:

> But consider this. When programming in modern C++, you can be risk-free
> from buffer overruns and most kinds of memory leak - use container
> classes, string classes, and the like, rather than C-style arrays and
> malloc/free or new/delete.

Or, going further, how about Google‘s “Carbon” project
<https://github.com/carbon-language/carbon-lang>, which tries to keep
the good bits from C++ while chucking out the bad?

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us32hi$2ojmn$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3204&group=comp.lang.c%2B%2B#3204

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Sun, 3 Mar 2024 15:53:22 -0800
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <us32hi$2ojmn$2@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<us2lfh$2ltj3$5@dont-email.me> <us2s96$2n6h3$6@dont-email.me>
<us3155$2of1i$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Mar 2024 23:53:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="334205b201d1f541c8f6313683f0a0e0";
logging-data="2903767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+nklShzkd/jHKsZcp+0GDP7A32WXFfaA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9aLyFN8HENqDsA5vePduZ4moIno=
In-Reply-To: <us3155$2of1i$3@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Sun, 3 Mar 2024 23:53 UTC

On 3/3/2024 3:29 PM, Lawrence D'Oliveiro wrote:
> On Sun, 3 Mar 2024 14:06:31 -0800, Chris M. Thomasson wrote:
>
>> On 3/3/2024 12:10 PM, Lawrence D'Oliveiro wrote:
>>
>>> On Sun, 3 Mar 2024 12:01:57 +0100, David Brown wrote:
>>>
>>>> It is not languages like C and C++ that are "unsafe".
>>>
>>> Some empirical evidence from Google
>>> <https://security.googleblog.com/2022/12/memory-safe-languages-in-android-13.html>
>>> shows a reduction in memory-safety errors in switching from C/C++ to
>>> Rust.
>>
>> Sure. Putting corks on the forks reduces the chance of eye injuries.
>
> Except this is Google, and they’re doing it in real-world production
> code, namely Android. And showing some positive benefits from doing
> so, without impairing the functionality of Android in any way.
>
> Not like “putting corks on the forks”, whatever that might be about
> ...

Putting corks on the forks is necessary to prevent the programmer from
hurting itself or others... ;^)

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3205&group=comp.lang.c%2B%2B#3205

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: huey....@tampabay.rr.com (David LaRue)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"
Date: Sun, 3 Mar 2024 23:59:33 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
References: <us0brl$246bf$1@dont-email.me>
Injection-Date: Sun, 3 Mar 2024 23:59:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f591cfb3710b14d7a2f72857d2c053a5";
logging-data="2906240"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gC7eMdP3iebQwuRh9p0eS"
User-Agent: Xnews/2006.08.24
Cancel-Lock: sha1:cmy3ROX8PpKr6ilCnvj25x7sS9Q=
 by: David LaRue - Sun, 3 Mar 2024 23:59 UTC

Lynn McGuire <lynnmcguire5@gmail.com> wrote in
news:us0brl$246bf$1@dont-email.me:

> "White House to Developers: Using C or C++ Invites Cybersecurity
> Risks"
>
> https://www.pcmag.com/news/white-house-to-developers-using-c-plus-plus-
> invites-cybersecurity-risks
>
> "The Biden administration backs a switch to more memory-safe
> programming languages. The tech industry sees their point, but it
> won't be easy."
>
> No. The feddies want to regulate software development very much.
> They have been talking about it for at least 20 years now. This is a
> very bad thing.
>
> Lynn

I was thinking about this wrt other alledgedly more secure languages. They
can be hacked just as easily as C and C++ and many other languages. The
government should worry about things they really need to control, which is
less not more, IMHO. They obviously know very little about computer
development.

David
Professional developer for nearly 45 years

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us33a0$2ot8t$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3206&group=comp.lang.c%2B%2B#3206

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Sun, 3 Mar 2024 16:06:24 -0800
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <us33a0$2ot8t$1@dont-email.me>
References: <us0brl$246bf$1@dont-email.me>
<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 00:06:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="334205b201d1f541c8f6313683f0a0e0";
logging-data="2913565"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zDiKVRe8gkayd6x9ggXp9m0l+EgTBwoA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:LYnkQN01faVWuDWhiH5w3Yyxkwo=
In-Reply-To: <XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 4 Mar 2024 00:06 UTC

On 3/3/2024 3:59 PM, David LaRue wrote:
> Lynn McGuire <lynnmcguire5@gmail.com> wrote in
> news:us0brl$246bf$1@dont-email.me:
>
>> "White House to Developers: Using C or C++ Invites Cybersecurity
>> Risks"
>>
>> https://www.pcmag.com/news/white-house-to-developers-using-c-plus-plus-
>> invites-cybersecurity-risks
>>
>> "The Biden administration backs a switch to more memory-safe
>> programming languages. The tech industry sees their point, but it
>> won't be easy."
>>
>> No. The feddies want to regulate software development very much.
>> They have been talking about it for at least 20 years now. This is a
>> very bad thing.
>>
>> Lynn
>
> I was thinking about this wrt other alledgedly more secure languages. They
> can be hacked just as easily as C and C++ and many other languages. The
> government should worry about things they really need to control, which is
> less not more, IMHO. They obviously know very little about computer
> development.
[...]

I remember a while back when some people would try to tell me that ADA
solves all issues...

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us35hp$22nd8$1@news.xmission.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3207&group=comp.lang.c%2B%2B#3207

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gaze...@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 00:44:41 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <us35hp$22nd8$1@news.xmission.com>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me> <us2lfh$2ltj3$5@dont-email.me> <us2s96$2n6h3$6@dont-email.me>
Injection-Date: Mon, 4 Mar 2024 00:44:41 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="2186664"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Mon, 4 Mar 2024 00:44 UTC

In article <us2s96$2n6h3$6@dont-email.me>,
Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
....
>Sure. Putting corks on the forks reduces the chance of eye injuries.
>Fwiw, a YouTube link to a scene in the movie Dirty Rotten Scoundrels:
>Funny to me:
>
>
>https://youtu.be/eF8QAeQm3ZM?t=332

Leader Keith gets mad when you post YouTube URLs here.

I'd be more careful, if I were you.

>Putting the cork on the fork is akin to saying nobody should be using C
>and/or C++ in this "modern" age? :^)
--
The randomly chosen signature file that would have appeared here is more than 4
lines long. As such, it violates one or more Usenet RFCs. In order to remain
in compliance with said RFCs, the actual sig can be found at the following URL:
http://user.xmission.com/~gazelle/Sigs/ModernXtian

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us36f8$2pfi3$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3208&group=comp.lang.c%2B%2B#3208

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (bart)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 01:00:24 +0000
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <us36f8$2pfi3$1@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<us2lfh$2ltj3$5@dont-email.me> <us2s96$2n6h3$6@dont-email.me>
<us3155$2of1i$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 01:00:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="e5bf4ffa75804a535655499656d51582";
logging-data="2932291"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NajyBh+PSVUJvcBqROSKA"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:KVBpVlSBZsE/S16q0Q/1T2SwN7o=
Content-Language: en-GB
In-Reply-To: <us3155$2of1i$3@dont-email.me>
 by: bart - Mon, 4 Mar 2024 01:00 UTC

On 03/03/2024 23:29, Lawrence D'Oliveiro wrote:
> On Sun, 3 Mar 2024 14:06:31 -0800, Chris M. Thomasson wrote:
>
>> On 3/3/2024 12:10 PM, Lawrence D'Oliveiro wrote:
>>
>>> On Sun, 3 Mar 2024 12:01:57 +0100, David Brown wrote:
>>>
>>>> It is not languages like C and C++ that are "unsafe".
>>>
>>> Some empirical evidence from Google
>>> <https://security.googleblog.com/2022/12/memory-safe-languages-in-android-13.html>
>>> shows a reduction in memory-safety errors in switching from C/C++ to
>>> Rust.
>>
>> Sure. Putting corks on the forks reduces the chance of eye injuries.
>
> Except this is Google, and they’re doing it in real-world production
> code, namely Android. And showing some positive benefits from doing
> so, without impairing the functionality of Android in any way.

That's great. So long as it is somebody else is programming in one of
those languages where you have one hand tied behind your back. That used
to be Ada. Now apparently it is Rust (so more like both hands tied).

In the piechart in your link however, new code in C/C++ still looks to
be nearly 3 times as much as Rust.

Personally I think there must be an easier language which is considered
to be safer without also making coding a nightmare.

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us3n2c$306pr$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3209&group=comp.lang.c%2B%2B#3209

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 05:43:40 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <us3n2c$306pr$1@dont-email.me>
References: <us0brl$246bf$1@dont-email.me>
<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
<us33a0$2ot8t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 05:43:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ebd4c9541601cb1e1312dcde6a0cb96a";
logging-data="3152699"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18KxTCAcywyRJIHcc8VfdIZ"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:EBoPmdCZF8PT7VSM/WZ91e9xzhk=
 by: Lawrence D'Oliv - Mon, 4 Mar 2024 05:43 UTC

On Sun, 3 Mar 2024 16:06:24 -0800, Chris M. Thomasson wrote:

> I remember a while back when some people would try to tell me that [Ada]
> solves all issues...

It did make a difference. Did you know the life-support system on the
International Space Station was written in Ada? Not something you
would trust C++ code to, let’s face it.

And here
<https://devclass.com/2022/11/08/spark-as-good-as-rust-for-safer-coding-adacore-cites-nvidia-case-study/>
is a project to make it even safer.

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us41kk$327oo$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3210&group=comp.lang.c%2B%2B#3210

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 09:44:04 +0100
Organization: A noiseless patient Spider
Lines: 62
Message-ID: <us41kk$327oo$1@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<20240303092938.43@kylheku.com> <us2m8u$2m9mm$1@dont-email.me>
<us2s0i$2n6h3$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 08:44:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="10397b01f6cccf2c5c374e194bc5ab00";
logging-data="3219224"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19AZbCc6mPLaN4uL2CLdyLbG6ZspLU6SEY="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:6DdpckE3Dy6CtvcsgnnuOi7eD8g=
Content-Language: en-GB
In-Reply-To: <us2s0i$2n6h3$5@dont-email.me>
 by: David Brown - Mon, 4 Mar 2024 08:44 UTC

On 03/03/2024 23:01, Chris M. Thomasson wrote:
> On 3/3/2024 12:23 PM, David Brown wrote:
>> On 03/03/2024 19:18, Kaz Kylheku wrote:

>>> Embedded systems often need custom memory management, not something that
>>> the language imposes. C has malloc, yet even that gets disused in favor
>>> of something else.
>>>
>>
>> For safe embedded systems, you don't want memory management at all.
>> Avoiding dynamic memory is an important aspect of safety-critical
>> embedded development.
>>
>
> You still have to think about memory management even if you avoid any
> dynamic memory? How are you going to mange this memory wrt your various
> data structures needs....

To be clear here - sometimes you can't avoid all use of dynamic memory
and therefore memory management. And as Kaz says, you will often use
custom solutions such as resource pools rather than generic malloc/free.
Flexible network communication (such as Ethernet or other IP
networking) is hard to do without dynamic memory.

But for things that are safety or reliability critical, you aim to have
everything statically allocated. (Sometimes you use dynamic memory at
startup for convenience, but you never free that memory.) This, of
course, means you simply don't use certain kinds of data structures.
std::array<> is fine - it's just a nicer type wrapper around a fixed
size C-style array. But you don't use std::vector<>, or other growable
structures. You figure out in advance the maximum size you need for
your structures, and nail them to that size at compile time.

There are three big run-time dangers and one big build-time limitation
when you have dynamic memory:

1. You can run out. PC's can often be assumed to have "limitless"
memory, and it is also often fine for a PC program to say it can't load
that big file until you close other programs and free up memory. In a
safety-critical embedded system, you have limited ram, and your code
never does things it does not have to do - consequently, it is not
acceptable to say it can't run a task at the moment due to lack of memory.

2. You get fragmentation from malloc/free, leading to allocation
failures even when there is enough total free memory. Small embedded
systems don't have virtual memory, paging, MMUs, and other ways to
re-arrange the appearance of memory. If you free your memory in a
different order from allocation, your heap gets fragmented, and you end
up with your "free" memory consisting of lots of discontinuous bits.

3. Your timing is hard to predict or constrain. Walking heaps to find
free memory for malloc, or coalescing free segments on deallocation,
often has very unpredictable timing. This is a big no-no for real time
systems.

And at design/build time, dynamic memory requires are extremely
difficult to analyse. In comparison, if everything is allocated
statically, it's simple - it's all there in your map files, and you have
a pass/fail result from trying to link it all within the available
memory of the target.

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us4bsb$346tp$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3211&group=comp.lang.c%2B%2B#3211

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 11:38:51 +0000
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <us4bsb$346tp$2@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<20240303092938.43@kylheku.com> <us2m8u$2m9mm$1@dont-email.me>
<us2s0i$2n6h3$5@dont-email.me> <us41kk$327oo$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 11:38:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3d4af15ea8e3a8055c2c9dc818e0bce1";
logging-data="3283897"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZFOoAwu+WYg3RyAmY1w09svQvM7On41o="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:UGlQCM14zDmzyK/QtErPYk6nC4E=
In-Reply-To: <us41kk$327oo$1@dont-email.me>
Content-Language: en-GB
 by: Malcolm McLean - Mon, 4 Mar 2024 11:38 UTC

On 04/03/2024 08:44, David Brown wrote:
> On 03/03/2024 23:01, Chris M. Thomasson wrote:
>> On 3/3/2024 12:23 PM, David Brown wrote:
>>> On 03/03/2024 19:18, Kaz Kylheku wrote:
>
>>>> Embedded systems often need custom memory management, not something
>>>> that
>>>> the language imposes. C has malloc, yet even that gets disused in favor
>>>> of something else.
>>>>
>>>
>>> For safe embedded systems, you don't want memory management at all.
>>> Avoiding dynamic memory is an important aspect of safety-critical
>>> embedded development.
>>>
>>
>> You still have to think about memory management even if you avoid any
>> dynamic memory? How are you going to mange this memory wrt your
>> various data structures needs....
>
> To be clear here - sometimes you can't avoid all use of dynamic memory
> and therefore memory management.  And as Kaz says, you will often use
> custom solutions such as resource pools rather than generic malloc/free.
>  Flexible network communication (such as Ethernet or other IP
> networking) is hard to do without dynamic memory.
>
> But for things that are safety or reliability critical, you aim to have
> everything statically allocated.  (Sometimes you use dynamic memory at
> startup for convenience, but you never free that memory.)  This, of
> course, means you simply don't use certain kinds of data structures.
> std::array<> is fine - it's just a nicer type wrapper around a fixed
> size C-style array.  But you don't use std::vector<>, or other growable
> structures.  You figure out in advance the maximum size you need for
> your structures, and nail them to that size at compile time.
>
And if it's embedded, it's unlikely to have an unbounded dataset thrown
at it, because embedded systems aren't used for those types of problems.

--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us4c66$346tp$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3212&group=comp.lang.c%2B%2B#3212

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 11:44:06 +0000
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <us4c66$346tp$3@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<us2lfh$2ltj3$5@dont-email.me> <us2s96$2n6h3$6@dont-email.me>
<us3155$2of1i$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 11:44:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3d4af15ea8e3a8055c2c9dc818e0bce1";
logging-data="3283897"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180zxFTk3aDA/bmC5xUyI82eXaszTE33iw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:sORCLVCHOTRKR1zq3/vOS5LTxEM=
Content-Language: en-GB
In-Reply-To: <us3155$2of1i$3@dont-email.me>
 by: Malcolm McLean - Mon, 4 Mar 2024 11:44 UTC

On 03/03/2024 23:29, Lawrence D'Oliveiro wrote:
> On Sun, 3 Mar 2024 14:06:31 -0800, Chris M. Thomasson wrote:
>
>> On 3/3/2024 12:10 PM, Lawrence D'Oliveiro wrote:
>>
>>> On Sun, 3 Mar 2024 12:01:57 +0100, David Brown wrote:
>>>
>>>> It is not languages like C and C++ that are "unsafe".
>>>
>>> Some empirical evidence from Google
>>> <https://security.googleblog.com/2022/12/memory-safe-languages-in-android-13.html>
>>> shows a reduction in memory-safety errors in switching from C/C++ to
>>> Rust.
>>
>> Sure. Putting corks on the forks reduces the chance of eye injuries.
>
> Except this is Google, and they’re doing it in real-world production
> code, namely Android. And showing some positive benefits from doing
> so, without impairing the functionality of Android in any way.
>
> Not like “putting corks on the forks”, whatever that might be about
> ...

And it's pump money at it until something which is not going to a goer
for anyone else starts to be a goer, and it is now made to work. And of
course Google can solve a problem by inventing a new language and
putting up all the infrastructure that that would need around it.

--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us4cpl$346tp$4@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3213&group=comp.lang.c%2B%2B#3213

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 11:54:29 +0000
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <us4cpl$346tp$4@dont-email.me>
References: <us0brl$246bf$1@dont-email.me>
<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
<us33a0$2ot8t$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 11:54:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3d4af15ea8e3a8055c2c9dc818e0bce1";
logging-data="3283897"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18h9LE0bK5TzrN/N0oq7gxJ9IuN5Eb9XEA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9sB0gxlTz5vmD5ACT1WBM031hU4=
In-Reply-To: <us33a0$2ot8t$1@dont-email.me>
Content-Language: en-GB
 by: Malcolm McLean - Mon, 4 Mar 2024 11:54 UTC

On 04/03/2024 00:06, Chris M. Thomasson wrote:
> On 3/3/2024 3:59 PM, David LaRue wrote:
>> Lynn McGuire <lynnmcguire5@gmail.com> wrote in
>> news:us0brl$246bf$1@dont-email.me:
>>
>>> "White House to Developers: Using C or C++ Invites Cybersecurity
>>> Risks"
>>> https://www.pcmag.com/news/white-house-to-developers-using-c-plus-plus-
>>> invites-cybersecurity-risks
>>>
>>> "The Biden administration backs a switch to more memory-safe
>>> programming languages. The tech industry sees their point, but it
>>> won't be easy."
>>>
>>> No.  The feddies want to regulate software development very much.
>>> They have been talking about it for at least 20 years now.  This is a
>>> very bad thing.
>>>
>>> Lynn
>>
>> I was thinking about this wrt other alledgedly more secure languages.
>> They
>> can be hacked just as easily as C and C++ and many other languages.  The
>> government should worry about things they really need to control,
>> which is
>> less not more, IMHO.  They obviously know very little about computer
>> development.
> [...]
>
> I remember a while back when some people would try to tell me that ADA
> solves all issues...
>
And there's ADA, and there's Ada, the lady.

And she wrote.

"The Analytical Engine has no pretensions whatever to originate
anything. It can do whatever we know how to order it to perform. It can
follow analysis; but it has no power of anticipating any analytical
relations or truths."

And so she knew what the capabilites of the Analytical Engine were,
exactly what programming was, what and what it could not achieve, and
how set out making it achieve what it could achieved. And so she had it,
and in a sense, ADA solved all issues.

And no formal computer science education. Of course.
--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us4e6h$u0vn$1@solani.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3214&group=comp.lang.c%2B%2B#3214

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: derek-no...@shape-of-code.com (Derek)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 12:18:25 +0000
Message-ID: <us4e6h$u0vn$1@solani.org>
References: <us0brl$246bf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 12:18:25 -0000 (UTC)
Injection-Info: solani.org;
logging-data="984055"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:cSfpT3lU4mEzsoa8ZlPzz5zbNWg=
In-Reply-To: <us0brl$246bf$1@dont-email.me>
Content-Language: en-US
X-User-ID: eJwFwYEBwDAEBMCVCP9iHCr2H6F3MCq/cIKOxQowoZw8V6/0qXm5ZThv2qrDnqgjS2o+D7mxxmz4HnKz7QdHaRU0
 by: Derek - Mon, 4 Mar 2024 12:18 UTC

All,

> "White House to Developers: Using C or C++ Invites Cybersecurity Risks"
>
> https://www.pcmag.com/news/white-house-to-developers-using-c-plus-plus-invites-cybersecurity-risks
>
> "The Biden administration backs a switch to more memory-safe programming languages. The tech industry sees their point,
> but it won't be easy."

They make the mistake of blaming the tools rather than
how the tools are used
https://shape-of-code.com/2024/03/03/the-whitehouse-report-on-adopting-memory-safety/

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us4mj7$36lli$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3215&group=comp.lang.c%2B%2B#3215

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 15:41:43 +0100
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <us4mj7$36lli$1@dont-email.me>
References: <us0brl$246bf$1@dont-email.me>
<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
<us33a0$2ot8t$1@dont-email.me> <us4cpl$346tp$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 14:41:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="10397b01f6cccf2c5c374e194bc5ab00";
logging-data="3364530"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bO20nrQMcJw4roO5THaLZy2INvOyb+I8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:3XYpBL1JIg726mSyn1Zqea4uFTU=
In-Reply-To: <us4cpl$346tp$4@dont-email.me>
Content-Language: en-GB
 by: David Brown - Mon, 4 Mar 2024 14:41 UTC

On 04/03/2024 12:54, Malcolm McLean wrote:
> On 04/03/2024 00:06, Chris M. Thomasson wrote:
>> On 3/3/2024 3:59 PM, David LaRue wrote:
>>> Lynn McGuire <lynnmcguire5@gmail.com> wrote in
>>> news:us0brl$246bf$1@dont-email.me:
>>>
>>>> "White House to Developers: Using C or C++ Invites Cybersecurity
>>>> Risks"
>>>> https://www.pcmag.com/news/white-house-to-developers-using-c-plus-plus-
>>>> invites-cybersecurity-risks
>>>>
>>>> "The Biden administration backs a switch to more memory-safe
>>>> programming languages. The tech industry sees their point, but it
>>>> won't be easy."
>>>>
>>>> No.  The feddies want to regulate software development very much.
>>>> They have been talking about it for at least 20 years now.  This is a
>>>> very bad thing.
>>>>
>>>> Lynn
>>>
>>> I was thinking about this wrt other alledgedly more secure languages.
>>> They
>>> can be hacked just as easily as C and C++ and many other languages.  The
>>> government should worry about things they really need to control,
>>> which is
>>> less not more, IMHO.  They obviously know very little about computer
>>> development.
>> [...]
>>
>> I remember a while back when some people would try to tell me that ADA
>> solves all issues...
>>
> And there's ADA, and there's Ada, the lady.

No, there's Ada the programming language, named after Lady Ada Lovelace.

For those that perhaps don't understand these things, all-caps names are
usually used for acronyms, such as BASIC, or languages from before small
letters were universal in computer systems, such as early FORTRAN.
Programming languages named after people are generally capitalised the
same way people's names are - thus Ada and Pascal.

>
> And she wrote.
>
> "The Analytical Engine has no pretensions whatever to originate
> anything. It can do whatever we know how to order it to perform. It can
> follow analysis; but it has no power of anticipating any analytical
> relations or truths."
>
> And so she knew what the capabilites of the Analytical Engine were,
> exactly what programming was, what and what it could not achieve, and
> how set out making it achieve what it could achieved. And so she had it,
> and in a sense, ADA solved all issues.
>

What I think you are trying to say, but got completely lost in the last
sentence, is that Lady Ada Lovelace is often regarded (perhaps
incorrectly) as the first computer programmer.

> And no formal computer science education. Of course.

She had a great deal of education in mathematics - just like most
computer science pioneers.

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<DMlFN.358179$q3F7.226148@fx45.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3216&group=comp.lang.c%2B%2B#3216

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx45.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"
Newsgroups: comp.lang.c++,comp.lang.c
References: <us0brl$246bf$1@dont-email.me> <XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170> <us33a0$2ot8t$1@dont-email.me> <us4cpl$346tp$4@dont-email.me> <us4mj7$36lli$1@dont-email.me>
Lines: 39
Message-ID: <DMlFN.358179$q3F7.226148@fx45.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Mon, 04 Mar 2024 15:28:35 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Mon, 04 Mar 2024 15:28:35 GMT
X-Received-Bytes: 2294
 by: Scott Lurndal - Mon, 4 Mar 2024 15:28 UTC

David Brown <david.brown@hesbynett.no> writes:
>On 04/03/2024 12:54, Malcolm McLean wrote:
>> On 04/03/2024 00:06, Chris M. Thomasson wrote:
>>> On 3/3/2024 3:59 PM, David LaRue wrote:
>>>> Lynn McGuire <lynnmcguire5@gmail.com> wrote in
>>>> news:us0brl$246bf$1@dont-email.me:
>>>>
>>>>> "White House to Developers: Using C or C++ Invites Cybersecurity
>>>>> Risks"
>>>>> https://www.pcmag.com/news/white-house-to-developers-using-c-plus-plus-
>>>>> invites-cybersecurity-risks
>>>>>
>>>>> "The Biden administration backs a switch to more memory-safe
>>>>> programming languages. The tech industry sees their point, but it
>>>>> won't be easy."
>>>>>
>>>>> No.  The feddies want to regulate software development very much.
>>>>> They have been talking about it for at least 20 years now.  This is a
>>>>> very bad thing.
>>>>>
>>>>> Lynn
>>>>
>>>> I was thinking about this wrt other alledgedly more secure languages.
>>>> They
>>>> can be hacked just as easily as C and C++ and many other languages.  The
>>>> government should worry about things they really need to control,
>>>> which is
>>>> less not more, IMHO.  They obviously know very little about computer
>>>> development.
>>> [...]
>>>
>>> I remember a while back when some people would try to tell me that ADA
>>> solves all issues...
>>>
>> And there's ADA, and there's Ada, the lady.
>
>No, there's Ada the programming language, named after Lady Ada Lovelace.\

Indeed. And ADA has a very different meaning stateside.

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us4rh3$37pqa$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3217&group=comp.lang.c%2B%2B#3217

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 17:05:54 +0100
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <us4rh3$37pqa$1@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<20240303092938.43@kylheku.com> <us2m8u$2m9mm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 16:05:55 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3ffe6ad6115f1338a1324001d759a755";
logging-data="3401546"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/AXUrVIxT7g3PotWkiJDtV"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:bU0XJBxODc4K7AhsmnjWagh6EHE=
In-Reply-To: <us2m8u$2m9mm$1@dont-email.me>
 by: Janis Papanagnou - Mon, 4 Mar 2024 16:05 UTC

On 03.03.2024 21:23, David Brown wrote:
>
> [...] Shortcuts are taken because
> the sales people need the code by tomorrow morning, and there are only
> so many hours in the night to get it working.

An indication of bad project management (or none at all) to control
development according to a realistic plan.

Janis

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us505a$38r3n$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3218&group=comp.lang.c%2B%2B#3218

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 18:24:58 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <us505a$38r3n$1@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<20240303092938.43@kylheku.com> <us2m8u$2m9mm$1@dont-email.me>
<us4rh3$37pqa$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 17:24:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="10397b01f6cccf2c5c374e194bc5ab00";
logging-data="3435639"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4r5OBYNIqHeI1YuVjQkVuM1ZwDObi6RI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:pN2at44a91pi5mUgSFkdrHB87wQ=
In-Reply-To: <us4rh3$37pqa$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Mon, 4 Mar 2024 17:24 UTC

On 04/03/2024 17:05, Janis Papanagnou wrote:
> On 03.03.2024 21:23, David Brown wrote:
>>
>> [...] Shortcuts are taken because
>> the sales people need the code by tomorrow morning, and there are only
>> so many hours in the night to get it working.
>
> An indication of bad project management (or none at all) to control
> development according to a realistic plan.
>

Now you are beginning to understand!

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us556o$39s7q$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3219&group=comp.lang.c%2B%2B#3219

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: malcolm....@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 18:51:03 +0000
Organization: A noiseless patient Spider
Lines: 73
Message-ID: <us556o$39s7q$1@dont-email.me>
References: <us0brl$246bf$1@dont-email.me>
<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
<us33a0$2ot8t$1@dont-email.me> <us4cpl$346tp$4@dont-email.me>
<us4mj7$36lli$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 18:51:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="3d4af15ea8e3a8055c2c9dc818e0bce1";
logging-data="3469562"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+96p0rJnXu1ORNMsmknBZo8d2KkRtk+Tk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8uMjggFK++OuJ/rN+7XliVOR7OU=
Content-Language: en-GB
In-Reply-To: <us4mj7$36lli$1@dont-email.me>
 by: Malcolm McLean - Mon, 4 Mar 2024 18:51 UTC

On 04/03/2024 14:41, David Brown wrote:
> On 04/03/2024 12:54, Malcolm McLean wrote:
>> On 04/03/2024 00:06, Chris M. Thomasson wrote:
>>> On 3/3/2024 3:59 PM, David LaRue wrote:
>>>> Lynn McGuire <lynnmcguire5@gmail.com> wrote in
>>>> news:us0brl$246bf$1@dont-email.me:
>>>>
>>>>> "White House to Developers: Using C or C++ Invites Cybersecurity
>>>>> Risks"
>>>>> https://www.pcmag.com/news/white-house-to-developers-using-c-plus-plus-
>>>>> invites-cybersecurity-risks
>>>>>
>>>>> "The Biden administration backs a switch to more memory-safe
>>>>> programming languages. The tech industry sees their point, but it
>>>>> won't be easy."
>>>>>
>>>>> No.  The feddies want to regulate software development very much.
>>>>> They have been talking about it for at least 20 years now.  This is a
>>>>> very bad thing.
>>>>>
>>>>> Lynn
>>>>
>>>> I was thinking about this wrt other alledgedly more secure
>>>> languages. They
>>>> can be hacked just as easily as C and C++ and many other languages.
>>>> The
>>>> government should worry about things they really need to control,
>>>> which is
>>>> less not more, IMHO.  They obviously know very little about computer
>>>> development.
>>> [...]
>>>
>>> I remember a while back when some people would try to tell me that
>>> ADA solves all issues...
>>>
>> And there's ADA, and there's Ada, the lady.
>
> No, there's Ada the programming language, named after Lady Ada Lovelace.
>
> For those that perhaps don't understand these things, all-caps names are
> usually used for acronyms, such as BASIC, or languages from before small
> letters were universal in computer systems, such as early FORTRAN.
> Programming languages named after people are generally capitalised the
> same way people's names are - thus Ada and Pascal.
>
>>
>> And she wrote.
>>
>> "The Analytical Engine has no pretensions whatever to originate
>> anything. It can do whatever we know how to order it to perform. It
>> can follow analysis; but it has no power of anticipating any
>> analytical relations or truths."
>>
>> And so she knew what the capabilites of the Analytical Engine were,
>> exactly what programming was, what and what it could not achieve, and
>> how set out making it achieve what it could achieved. And so she had
>> it, and in a sense, ADA solved all issues.
>>
>
> What I think you are trying to say, but got completely lost in the last
> sentence, is that Lady Ada Lovelace is often regarded (perhaps
> incorrectly) as the first computer programmer.
>
So what I'm trying to say is that she did it, and everyone else just
knocked out the code. Once you understand what you are doing in this
way, it's wrapped up. She solved it. So early on.

Look at sentence two. She knew what that machine was.

--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us5bd9$3b404$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3223&group=comp.lang.c%2B%2B#3223

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 12:36:57 -0800
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <us5bd9$3b404$1@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<20240303092938.43@kylheku.com> <us2m8u$2m9mm$1@dont-email.me>
<us2s0i$2n6h3$5@dont-email.me> <us41kk$327oo$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 20:36:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="334205b201d1f541c8f6313683f0a0e0";
logging-data="3510276"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Cab+pfHyHErQYi5GRblXNNJcfLcDIrko="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Af2jM2alq4ThF+adm7APz8I/AtI=
Content-Language: en-US
In-Reply-To: <us41kk$327oo$1@dont-email.me>
 by: Chris M. Thomasson - Mon, 4 Mar 2024 20:36 UTC

On 3/4/2024 12:44 AM, David Brown wrote:
> On 03/03/2024 23:01, Chris M. Thomasson wrote:
>> On 3/3/2024 12:23 PM, David Brown wrote:
>>> On 03/03/2024 19:18, Kaz Kylheku wrote:
>
>>>> Embedded systems often need custom memory management, not something
>>>> that
>>>> the language imposes. C has malloc, yet even that gets disused in favor
>>>> of something else.
>>>>
>>>
>>> For safe embedded systems, you don't want memory management at all.
>>> Avoiding dynamic memory is an important aspect of safety-critical
>>> embedded development.
>>>
>>
>> You still have to think about memory management even if you avoid any
>> dynamic memory? How are you going to mange this memory wrt your
>> various data structures needs....
>
> To be clear here - sometimes you can't avoid all use of dynamic memory
> and therefore memory management.  And as Kaz says, you will often use
> custom solutions such as resource pools rather than generic malloc/free.
>  Flexible network communication (such as Ethernet or other IP
> networking) is hard to do without dynamic memory.
[...]

Think of using a big chunk of memory, never needed to be freed and is
just there per process. Now, you carve it up and store it in a cache
that has functions push and pop. So, you still have to manage memory
even when you are using no dynamic memory at all... Fair enough, in a
sense? The push and the pop are your malloc and free in a strange sense...

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us5bll$3b8mq$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3224&group=comp.lang.c%2B%2B#3224

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 12:41:26 -0800
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <us5bll$3b8mq$1@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<20240303092938.43@kylheku.com> <us2m8u$2m9mm$1@dont-email.me>
<us2s0i$2n6h3$5@dont-email.me> <us41kk$327oo$1@dont-email.me>
<us5bd9$3b404$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 20:41:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="334205b201d1f541c8f6313683f0a0e0";
logging-data="3515098"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kDcd6tW+hDtSUEOVj24oIchr7knIGzMk="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:BVPvho33C3SDpTxQ/bcFJ4zUHl0=
Content-Language: en-US
In-Reply-To: <us5bd9$3b404$1@dont-email.me>
 by: Chris M. Thomasson - Mon, 4 Mar 2024 20:41 UTC

On 3/4/2024 12:36 PM, Chris M. Thomasson wrote:
> On 3/4/2024 12:44 AM, David Brown wrote:
>> On 03/03/2024 23:01, Chris M. Thomasson wrote:
>>> On 3/3/2024 12:23 PM, David Brown wrote:
>>>> On 03/03/2024 19:18, Kaz Kylheku wrote:
>>
>>>>> Embedded systems often need custom memory management, not something
>>>>> that
>>>>> the language imposes. C has malloc, yet even that gets disused in
>>>>> favor
>>>>> of something else.
>>>>>
>>>>
>>>> For safe embedded systems, you don't want memory management at all.
>>>> Avoiding dynamic memory is an important aspect of safety-critical
>>>> embedded development.
>>>>
>>>
>>> You still have to think about memory management even if you avoid any
>>> dynamic memory? How are you going to mange this memory wrt your
>>> various data structures needs....
>>
>> To be clear here - sometimes you can't avoid all use of dynamic memory
>> and therefore memory management.  And as Kaz says, you will often use
>> custom solutions such as resource pools rather than generic
>> malloc/free.   Flexible network communication (such as Ethernet or
>> other IP networking) is hard to do without dynamic memory.
> [...]
>
> Think of using a big chunk of memory,

Say your program gains a special pointer from the system that contains
all of the memory it can use for its lifetime. Its there, and there is
no way to allocate any more...

> never needed to be freed and is
> just there per process. Now, you carve it up and store it in a cache
> that has functions push and pop. So, you still have to manage memory
> even when you are using no dynamic memory at all... Fair enough, in a
> sense? The push and the pop are your malloc and free in a strange sense...
>

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us5bvu$3b8mq$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3225&group=comp.lang.c%2B%2B#3225

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 12:46:54 -0800
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <us5bvu$3b8mq$2@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<20240303092938.43@kylheku.com> <us2m8u$2m9mm$1@dont-email.me>
<us2s0i$2n6h3$5@dont-email.me> <us41kk$327oo$1@dont-email.me>
<us4bsb$346tp$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 20:46:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="334205b201d1f541c8f6313683f0a0e0";
logging-data="3515098"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gVcD70wNVauTvh4fqQ/L0rkVN4/P6jN4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:7B9G+dbIXN16hBSq+KJ8YEyzQWw=
Content-Language: en-US
In-Reply-To: <us4bsb$346tp$2@dont-email.me>
 by: Chris M. Thomasson - Mon, 4 Mar 2024 20:46 UTC

On 3/4/2024 3:38 AM, Malcolm McLean wrote:
> On 04/03/2024 08:44, David Brown wrote:
>> On 03/03/2024 23:01, Chris M. Thomasson wrote:
>>> On 3/3/2024 12:23 PM, David Brown wrote:
>>>> On 03/03/2024 19:18, Kaz Kylheku wrote:
>>
>>>>> Embedded systems often need custom memory management, not something
>>>>> that
>>>>> the language imposes. C has malloc, yet even that gets disused in
>>>>> favor
>>>>> of something else.
>>>>>
>>>>
>>>> For safe embedded systems, you don't want memory management at all.
>>>> Avoiding dynamic memory is an important aspect of safety-critical
>>>> embedded development.
>>>>
>>>
>>> You still have to think about memory management even if you avoid any
>>> dynamic memory? How are you going to mange this memory wrt your
>>> various data structures needs....
>>
>> To be clear here - sometimes you can't avoid all use of dynamic memory
>> and therefore memory management.  And as Kaz says, you will often use
>> custom solutions such as resource pools rather than generic
>> malloc/free.   Flexible network communication (such as Ethernet or
>> other IP networking) is hard to do without dynamic memory.
>>
>> But for things that are safety or reliability critical, you aim to
>> have everything statically allocated.  (Sometimes you use dynamic
>> memory at startup for convenience, but you never free that memory.)
>> This, of course, means you simply don't use certain kinds of data
>> structures. std::array<> is fine - it's just a nicer type wrapper
>> around a fixed size C-style array.  But you don't use std::vector<>,
>> or other growable structures.  You figure out in advance the maximum
>> size you need for your structures, and nail them to that size at
>> compile time.
> >
> And if it's embedded, it's unlikely to have an unbounded dataset thrown
> at it, because embedded systems aren't used for those types of problems.
>

Fwiw, this older experimental allocator (2009) works on restricted
memory systems. Please forgive the alignment hacks... ;^)

https://pastebin.com/raw/f37a23918
(to raw text, no ads wrt pastebin)

https://groups.google.com/g/comp.lang.c/c/7oaJFWKVCTw/m/sSWYU9BUS_QJ

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us5cab$3b8mq$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3226&group=comp.lang.c%2B%2B#3226

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 12:52:27 -0800
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <us5cab$3b8mq$3@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us4e6h$u0vn$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 20:52:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="334205b201d1f541c8f6313683f0a0e0";
logging-data="3515098"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+coUIKhxopJAUVPQoBgNJkl8UylsUvH0c="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kGqEpJazmro4vc43a5DWEK/YPFs=
In-Reply-To: <us4e6h$u0vn$1@solani.org>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 4 Mar 2024 20:52 UTC

On 3/4/2024 4:18 AM, Derek wrote:
> All,
>
>> "White House to Developers: Using C or C++ Invites Cybersecurity Risks"
>>
>> https://www.pcmag.com/news/white-house-to-developers-using-c-plus-plus-invites-cybersecurity-risks
>>
>> "The Biden administration backs a switch to more memory-safe
>> programming languages. The tech industry sees their point, but it
>> won't be easy."
>
> They make the mistake of blaming the tools rather than
> how the tools are used
> https://shape-of-code.com/2024/03/03/the-whitehouse-report-on-adopting-memory-safety/
>

Akin to giving somebody a hammer and they proceed to smash their own
hand with it. Then they say, well, that hammer is dangerous and the
person that gave it to me should be sued for negligence... Wow, lets
think about writing up a 1000 pages on why hammers should be banned?
Hyper sarcastic, I know, but it the key fits... ;^)

Sorry for the sarcasm.

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us5cjh$3b8mq$4@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3227&group=comp.lang.c%2B%2B#3227

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 12:57:21 -0800
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <us5cjh$3b8mq$4@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<us2lfh$2ltj3$5@dont-email.me> <us2s96$2n6h3$6@dont-email.me>
<us35hp$22nd8$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 20:57:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="334205b201d1f541c8f6313683f0a0e0";
logging-data="3515098"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+oOcDpha/rmQjDjRDthAPhK4YCFhhMtCo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:JyUbm+c4bgc3J4O4lznoowHIls8=
In-Reply-To: <us35hp$22nd8$1@news.xmission.com>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 4 Mar 2024 20:57 UTC

On 3/3/2024 4:44 PM, Kenny McCormack wrote:
> In article <us2s96$2n6h3$6@dont-email.me>,
> Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
> ...
>> Sure. Putting corks on the forks reduces the chance of eye injuries.
>> Fwiw, a YouTube link to a scene in the movie Dirty Rotten Scoundrels:
>> Funny to me:
>>
>>
>> https://youtu.be/eF8QAeQm3ZM?t=332
>
> Leader Keith gets mad when you post YouTube URLs here.
>
> I'd be more careful, if I were you.

Well, at least I added in a description... ;^)

>
>> Putting the cork on the fork is akin to saying nobody should be using C
>> and/or C++ in this "modern" age? :^)

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us5d6f$3besu$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3228&group=comp.lang.c%2B%2B#3228

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 21:07:27 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <us5d6f$3besu$3@dont-email.me>
References: <us0brl$246bf$1@dont-email.me> <us1lb5$2f4n4$1@dont-email.me>
<us2lfh$2ltj3$5@dont-email.me> <us2s96$2n6h3$6@dont-email.me>
<us3155$2of1i$3@dont-email.me> <us4c66$346tp$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 21:07:27 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ebd4c9541601cb1e1312dcde6a0cb96a";
logging-data="3521438"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Srn97qev8p6IWUlJsfoSt"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:rGqxoVY9dMOfhtCFYmRKPSlhtJA=
 by: Lawrence D'Oliv - Mon, 4 Mar 2024 21:07 UTC

On Mon, 4 Mar 2024 11:44:06 +0000, Malcolm McLean wrote:

> And of course Google can solve a problem by inventing a new language and
> putting up all the infrastructure that that would need around it.

Google has invented quite a lot of languages: Dart and Go come to mind,
and also this “Carbon” effort.

I suppose nowadays a language can find a niche outside the mainstream, and
still be viable. Proprietary products need mass-market success to stay
afloat, but with open-source ones, what’s important is the contributor
base, not the user base.

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us5ddc$3besu$4@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3229&group=comp.lang.c%2B%2B#3229

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo...@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 21:11:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <us5ddc$3besu$4@dont-email.me>
References: <us0brl$246bf$1@dont-email.me>
<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
<us33a0$2ot8t$1@dont-email.me> <us4cpl$346tp$4@dont-email.me>
<us4mj7$36lli$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 21:11:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="ebd4c9541601cb1e1312dcde6a0cb96a";
logging-data="3521438"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX188GD7QdQmdxoyjNE5ArV4H"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:F2ba0pLRbvWo8WMBWFDQmSuNkZo=
 by: Lawrence D'Oliv - Mon, 4 Mar 2024 21:11 UTC

On Mon, 4 Mar 2024 15:41:43 +0100, David Brown wrote:

> ... Lady Ada Lovelace is often regarded (perhaps
> incorrectly) as the first computer programmer.

She was the first, in written records, to appreciate some of the not-so-
obvious issues in computer programming.

Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

<us5dl8$3b8mq$6@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=3230&group=comp.lang.c%2B%2B#3230

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Mon, 4 Mar 2024 13:15:20 -0800
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <us5dl8$3b8mq$6@dont-email.me>
References: <us0brl$246bf$1@dont-email.me>
<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
<us33a0$2ot8t$1@dont-email.me> <us3n2c$306pr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 4 Mar 2024 21:15:20 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="334205b201d1f541c8f6313683f0a0e0";
logging-data="3515098"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kZuQe9n8hlLUDZye1q+pjKx2L+rTK8KA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:zV/vVXGcJwdJuwQWDNgHqbGvxTo=
Content-Language: en-US
In-Reply-To: <us3n2c$306pr$1@dont-email.me>
 by: Chris M. Thomasson - Mon, 4 Mar 2024 21:15 UTC

On 3/3/2024 9:43 PM, Lawrence D'Oliveiro wrote:
> On Sun, 3 Mar 2024 16:06:24 -0800, Chris M. Thomasson wrote:
>
>> I remember a while back when some people would try to tell me that [Ada]
>> solves all issues...
>
> It did make a difference. Did you know the life-support system on the
> International Space Station was written in Ada? Not something you
> would trust C++ code to, let’s face it.

Would you trust a "safe" language that had some critical libraries that
were written in say, C?

>
> And here
> <https://devclass.com/2022/11/08/spark-as-good-as-rust-for-safer-coding-adacore-cites-nvidia-case-study/>
> is a project to make it even safer.


devel / comp.lang.c++ / Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"

Pages:1234567
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor