Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Open Channel D..." -- Napoleon Solo, The Man From U.N.C.L.E.


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"

<us6s9f$3nb7r$3@dont-email.me>

  copy mid

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

  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: Tue, 5 Mar 2024 11:31:11 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <us6s9f$3nb7r$3@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> <us5ddc$3besu$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 5 Mar 2024 10:31:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2a2d57b9ac29297031a44b749640cc3c";
logging-data="3910907"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/9teayLbvoONhJ2XbfX0/N3BPXk17ZJyQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:5BqHfewqlZ48cDe+YZhxSgITQ5E=
In-Reply-To: <us5ddc$3besu$4@dont-email.me>
Content-Language: en-GB
 by: David Brown - Tue, 5 Mar 2024 10:31 UTC

On 04/03/2024 22:11, Lawrence D'Oliveiro wrote:
> 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.

Yes. That includes realising that computers could do more than number
crunching. She was also involved in checking, correcting and commenting
some of Babbage's programs, and also was the first to publish an
algorithm (for Bernouli numbers) designed specifically for executing on
a computer. And she did all this without a working computer.

So while calling her "the first computer programmer" is inaccurate, she
was definitely a key computer science pioneer.

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

<us780t$3pku4$1@toylet.eternal-september.org>

  copy mid

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

  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!toylet.eternal-september.org!.POSTED!not-for-mail
From: toylet.t...@gmail.com (Mr. Man-wai Chang)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Tue, 5 Mar 2024 21:51:26 +0800
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <us780t$3pku4$1@toylet.eternal-september.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: Tue, 5 Mar 2024 13:51:25 -0000 (UTC)
Injection-Info: toylet.eternal-september.org; posting-host="08f1933fc373ef9f5e51e0ba83dfcb2c";
logging-data="3986372"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eBVfv7ypmWh8lN3GvatZn"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6nVcuRMr3e8ofD9AA+XU7VcxbnQ=
Content-Language: en-US
In-Reply-To: <us0brl$246bf$1@dont-email.me>
 by: Mr. Man-wai Chang - Tue, 5 Mar 2024 13:51 UTC

On 3/3/2024 7:13 am, Lynn McGuire wrote:
>
> "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.

A responsible, good progreammer or a better C/C++ pre-processor can
avoid a lot of problems!!

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

<_oGFN.115185$m4d.106428@fx43.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx43.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> <7J0FN.35692$zF_1.20904@fx18.iad> <us6cv0$3khma$3@dont-email.me>
Lines: 24
Message-ID: <_oGFN.115185$m4d.106428@fx43.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Tue, 05 Mar 2024 14:56:58 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 05 Mar 2024 14:56:58 GMT
X-Received-Bytes: 1739
 by: Scott Lurndal - Tue, 5 Mar 2024 14:56 UTC

Lynn McGuire <lynnmcguire5@gmail.com> writes:
>On 3/3/2024 9:31 AM, Scott Lurndal wrote:
>> Lynn McGuire <lynnmcguire5@gmail.com> writes:
>>> "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.
>>
>> You've been reading far to much apocalyptic fiction and seeing the
>> world through trump-colored glasses. Neither reflect reality.
>
>Nope, I actually have had a Professional Engineer's License in Texas for
>34 years now and can tell you all about what it takes to get one and
>what it takes to keep one.
>
>This bunch of crazies in the White House wants to do the same thing to
>software development.
>

Nothing in the quoted article supports your ridiculous assertion.

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

<us80kd$3v39d$1@dont-email.me>

  copy mid

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

  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: Tue, 5 Mar 2024 12:51:21 -0800
Organization: A noiseless patient Spider
Lines: 108
Message-ID: <us80kd$3v39d$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> <us6n21$3mbe2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 20:51:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50808870dee140c5f4f8019dbaff12e1";
logging-data="4164909"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NLiVV/Yd3vwuEVNcNnAI5jrrbcOuw5HY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mcpJ/e7CTjzhKNmQOXu5HSH9op0=
Content-Language: en-US
In-Reply-To: <us6n21$3mbe2$1@dont-email.me>
 by: Chris M. Thomasson - Tue, 5 Mar 2024 20:51 UTC

On 3/5/2024 1:01 AM, David Brown wrote:
> On 04/03/2024 21:36, 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, 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...
>>
>
> I believe I mentioned that.  You do not, in general, "push and pop" -
> you malloc and never free.  Excluding debugging code and other parts
> useful in testing and developing, you have something like :
>
> enum { heap_size = 16384; }
> alignas(max_align_t) static uint8_t heap[heap_size];
> uint8_t * next_free = heap;
>
> void free(void * ptr) {
>     (void) ptr;
> }
>
> void * malloc(size_t size) {
>     const size_t align = alignof(max_align_t);
>     const real_size = size ? (size + (align - 1)) & ~(align - 1)
>                 : align;
>     void * p = next_free;
>     next_free += real_size;
>     return p;
> }
>
>
> Allowing for pops requires storing the size of the allocations (unless
> you change the API from that of malloc/free), and is only rarely useful.
>  Generally if you want memory that temporary, you use a VLA or alloca
> to put it on the stack.
>

wrt systems with no malloc/free I am thinking more along the lines of a
region allocator mixed with a LIFO for a cache, so a node based thing.
The region allocator gets fed with a large buffer. Depending on specific
needs, it can work out nicely for systems that do not have malloc/free.
The pattern I used iirc, was something like:

// pseudo code...
_______________________
node*
node_pop()
{ // try the lifo first...

node* n = lifo_pop();

if (! n)
{
// resort to the region allocator...

n = region_allocate_node();

// note, n can be null here.
// if it is, we are out of memory.

// note, out of memory on a system
// with no malloc/free...
}

return n;
}

void
node_push(
node* n
) {
lifo_push(n);
} _______________________

make any sense to you?

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

<us8180$3v3cu$1@dont-email.me>

  copy mid

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

  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: Tue, 5 Mar 2024 13:01:52 -0800
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <us8180$3v3cu$1@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>
<us6ckb$3khma$2@dont-email.me> <us6ge5$3l59s$4@dont-email.me>
<us6s1l$3nb7r$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 21:01:52 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50808870dee140c5f4f8019dbaff12e1";
logging-data="4165022"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0N0zcvc/kRQpcaNzT1h/nVl3I7H7OjBo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:WKLFsjjMLpmlW3sNRX0RZW/bWmc=
Content-Language: en-US
In-Reply-To: <us6s1l$3nb7r$2@dont-email.me>
 by: Chris M. Thomasson - Tue, 5 Mar 2024 21:01 UTC

On 3/5/2024 2:27 AM, David Brown wrote:
> On 05/03/2024 08:08, Lawrence D'Oliveiro wrote:
>> On Tue, 5 Mar 2024 00:03:54 -0600, Lynn McGuire wrote:
>>
>>> On 3/3/2024 11:43 PM, Lawrence D'Oliveiro wrote:
>>>
>>>> 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.
>>>
>>> Most of the Ada code was written in C or C++ and converted to Ada for
>>> delivery.
>>
>> Was it debugged again? Or was it assumed that the translation was bug-
>> free?
>
> With Ada, if you can get it to compile, it's ready to ship :-)
>
>

Really? Any logic errors in the program itself?

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

<20240305132240.241@kylheku.com>

  copy mid

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

  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: 433-929-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites
Cybersecurity Risks"
Date: Tue, 5 Mar 2024 21:24:26 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <20240305132240.241@kylheku.com>
References: <us0brl$246bf$1@dont-email.me>
<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
<us33a0$2ot8t$1@dont-email.me> <us3n2c$306pr$1@dont-email.me>
<us6ckb$3khma$2@dont-email.me> <us6ge5$3l59s$4@dont-email.me>
<us6s1l$3nb7r$2@dont-email.me> <us8180$3v3cu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 21:24:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1d42fd5c0f101e603afff72490e9e6f6";
logging-data="4174869"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+q8PXgMFEVxWhsTAS/hgBodmbwzXdX6fo="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:bVMOvXkLl40Zl6JMG0qbHqAHgIE=
 by: Kaz Kylheku - Tue, 5 Mar 2024 21:24 UTC

On 2024-03-05, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
> On 3/5/2024 2:27 AM, David Brown wrote:
>> On 05/03/2024 08:08, Lawrence D'Oliveiro wrote:
>>> On Tue, 5 Mar 2024 00:03:54 -0600, Lynn McGuire wrote:
>>>
>>>> On 3/3/2024 11:43 PM, Lawrence D'Oliveiro wrote:
>>>>
>>>>> 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.
>>>>
>>>> Most of the Ada code was written in C or C++ and converted to Ada for
>>>> delivery.
>>>
>>> Was it debugged again? Or was it assumed that the translation was bug-
>>> free?
>>
>> With Ada, if you can get it to compile, it's ready to ship :-)
>>
> Really? Any logic errors in the program itself?

Ariane 5 rocket incident of 1996: The Ada code didn't catch the hardware
overflow exception from forcing a 64 bit floating-point value into a 16
bit integer. The situation was not expected by the code which was
developed for the Ariane 4, or something like that.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

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

<us83nu$3vinv$1@dont-email.me>

  copy mid

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

  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: Tue, 5 Mar 2024 13:44:30 -0800
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <us83nu$3vinv$1@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>
<us6ckb$3khma$2@dont-email.me> <us6ge5$3l59s$4@dont-email.me>
<us6s1l$3nb7r$2@dont-email.me> <us8180$3v3cu$1@dont-email.me>
<20240305132240.241@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 21:44:30 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50808870dee140c5f4f8019dbaff12e1";
logging-data="4180735"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6L460Di0m07cH3P+0BK+SvWxO+Gahz/s="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:OscUGDsIiaaL3YjBZhKihRbSXIQ=
Content-Language: en-US
In-Reply-To: <20240305132240.241@kylheku.com>
 by: Chris M. Thomasson - Tue, 5 Mar 2024 21:44 UTC

On 3/5/2024 1:24 PM, Kaz Kylheku wrote:
> On 2024-03-05, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
>> On 3/5/2024 2:27 AM, David Brown wrote:
>>> On 05/03/2024 08:08, Lawrence D'Oliveiro wrote:
>>>> On Tue, 5 Mar 2024 00:03:54 -0600, Lynn McGuire wrote:
>>>>
>>>>> On 3/3/2024 11:43 PM, Lawrence D'Oliveiro wrote:
>>>>>
>>>>>> 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.
>>>>>
>>>>> Most of the Ada code was written in C or C++ and converted to Ada for
>>>>> delivery.
>>>>
>>>> Was it debugged again? Or was it assumed that the translation was bug-
>>>> free?
>>>
>>> With Ada, if you can get it to compile, it's ready to ship :-)
>>>
>> Really? Any logic errors in the program itself?
>
> Ariane 5 rocket incident of 1996: The Ada code didn't catch the hardware
> overflow exception from forcing a 64 bit floating-point value into a 16
> bit integer. The situation was not expected by the code which was
> developed for the Ariane 4, or something like that.
>

I need to study up on that one; Thanks. Fwiw, the joint strike fighter
C++ rules are interesting to me as well. Can a little bugger make one of
its air-to-air missiles fire? Now I can hear one of my friends saying,
see, I told you that human programmers cannot be trusted... ;^) lol.

ADA is bullet proof... Until its not... ;^)

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

<us83v8$3vinv$2@dont-email.me>

  copy mid

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

  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: Tue, 5 Mar 2024 13:48:25 -0800
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <us83v8$3vinv$2@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>
<us5dl8$3b8mq$6@dont-email.me> <us5ear$3besu$6@dont-email.me>
<us5eee$3b8mq$9@dont-email.me> <us6129$3imua$1@dont-email.me>
<us67t9$3jpc3$1@dont-email.me> <us6a95$3k45j$1@dont-email.me>
<us6gc4$3l59s$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 5 Mar 2024 21:48:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50808870dee140c5f4f8019dbaff12e1";
logging-data="4180735"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181jN87c0OAgxtZY9bH8Hys1YknIVhYhEw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:KUGTOpcZEchTXX0H/xk58R7puXQ=
Content-Language: en-US
In-Reply-To: <us6gc4$3l59s$3@dont-email.me>
 by: Chris M. Thomasson - Tue, 5 Mar 2024 21:48 UTC

On 3/4/2024 11:07 PM, Lawrence D'Oliveiro wrote:
> On Mon, 4 Mar 2024 21:23:49 -0800, Chris M. Thomasson wrote:
>
>> On 3/4/2024 8:43 PM, Lawrence D'Oliveiro wrote:
>>
>>> On Tue, 5 Mar 2024 02:46:33 +0000, Malcolm McLean wrote:
>>>
>>>> The less code you have, the less that can go wrong.
>>>
>>> This can also mean using the build system to automatically generate
>>> some repetitive things, to avoid having to write them manually.
>>
>> Does the build system depend on anything coded in C?
>
> These days, it might be Rust.

The keyword is might... Right?

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

<87plw8pci5.fsf@nosuchdomain.example.com>

  copy mid

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

  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: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"
Date: Tue, 05 Mar 2024 13:58:10 -0800
Organization: None to speak of
Lines: 52
Message-ID: <87plw8pci5.fsf@nosuchdomain.example.com>
References: <us0brl$246bf$1@dont-email.me>
<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
<us33a0$2ot8t$1@dont-email.me> <us3n2c$306pr$1@dont-email.me>
<us6ckb$3khma$2@dont-email.me> <us6ge5$3l59s$4@dont-email.me>
<us6s1l$3nb7r$2@dont-email.me> <us8180$3v3cu$1@dont-email.me>
<20240305132240.241@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="1a8f7ad2f6e687631fe43fc4c823263c";
logging-data="4188780"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/x5QiaDC/e2+3Q6mRi9Rtk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:fNgzYRWYeHyjDPJWMlWvF9FN1yo=
sha1:bwGZ89eGb+SiayBK5+Ajf/C5SkM=
 by: Keith Thompson - Tue, 5 Mar 2024 21:58 UTC

Kaz Kylheku <433-929-6894@kylheku.com> writes:
> On 2024-03-05, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
>> On 3/5/2024 2:27 AM, David Brown wrote:
>>> On 05/03/2024 08:08, Lawrence D'Oliveiro wrote:
>>>> On Tue, 5 Mar 2024 00:03:54 -0600, Lynn McGuire wrote:
>>>>
>>>>> On 3/3/2024 11:43 PM, Lawrence D'Oliveiro wrote:
>>>>>
>>>>>> 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.
>>>>>
>>>>> Most of the Ada code was written in C or C++ and converted to Ada for
>>>>> delivery.
>>>>
>>>> Was it debugged again? Or was it assumed that the translation was bug-
>>>> free?
>>>
>>> With Ada, if you can get it to compile, it's ready to ship :-)
>>>
>> Really? Any logic errors in the program itself?
>
> Ariane 5 rocket incident of 1996: The Ada code didn't catch the hardware
> overflow exception from forcing a 64 bit floating-point value into a 16
> bit integer. The situation was not expected by the code which was
> developed for the Ariane 4, or something like that.

A numeric overflow occurred during the Ariane 5's initial flight -- and
the software *did* catch the overflow. The same overflow didn't occur
on Ariane 4 because of its different flight profile. There was a
management decision to reuse the Ariane 4 flight software for Ariane 5
without sufficient review.

The code (which had been thoroughly tested on Ariane 4 and was known not
to overflow) emitted an error message describing the overflow exception.
That error message was then processed as data. Another problem was that
systems were designed to shut down on any error; as a result, healthy
and necessary equipment was shut down prematurely.

This is from my vague memory, and may not be entirely accurate.

*Of course* logic errors are possible in Ada programs, but in my
experience and that of many other programmers, if you get an Ada program
to compile (and run without raising unhandled exceptions), you're likely
to be much closer to a working program than if you get a C program to
compile. A typo in a C program is more likely to result in a valid
program with different semantics.

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

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

<us84q3$3vqtf$1@dont-email.me>

  copy mid

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

  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: Tue, 5 Mar 2024 14:02:43 -0800
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <us84q3$3vqtf$1@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>
<us6ckb$3khma$2@dont-email.me> <us6ge5$3l59s$4@dont-email.me>
<us6s1l$3nb7r$2@dont-email.me> <us8180$3v3cu$1@dont-email.me>
<20240305132240.241@kylheku.com> <87plw8pci5.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 22:02:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50808870dee140c5f4f8019dbaff12e1";
logging-data="4189103"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LQzuI6JZz8dRXpw+zIg2wWa5IjEjGUqY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:zehUtoWiuFTRdAoQR1MhTSXY1YI=
In-Reply-To: <87plw8pci5.fsf@nosuchdomain.example.com>
Content-Language: en-US
 by: Chris M. Thomasson - Tue, 5 Mar 2024 22:02 UTC

On 3/5/2024 1:58 PM, Keith Thompson wrote:
> Kaz Kylheku <433-929-6894@kylheku.com> writes:
>> On 2024-03-05, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
>>> On 3/5/2024 2:27 AM, David Brown wrote:
>>>> On 05/03/2024 08:08, Lawrence D'Oliveiro wrote:
>>>>> On Tue, 5 Mar 2024 00:03:54 -0600, Lynn McGuire wrote:
>>>>>
>>>>>> On 3/3/2024 11:43 PM, Lawrence D'Oliveiro wrote:
>>>>>>
>>>>>>> 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.
>>>>>>
>>>>>> Most of the Ada code was written in C or C++ and converted to Ada for
>>>>>> delivery.
>>>>>
>>>>> Was it debugged again? Or was it assumed that the translation was bug-
>>>>> free?
>>>>
>>>> With Ada, if you can get it to compile, it's ready to ship :-)
>>>>
>>> Really? Any logic errors in the program itself?
>>
>> Ariane 5 rocket incident of 1996: The Ada code didn't catch the hardware
>> overflow exception from forcing a 64 bit floating-point value into a 16
>> bit integer. The situation was not expected by the code which was
>> developed for the Ariane 4, or something like that.
>
> A numeric overflow occurred during the Ariane 5's initial flight -- and
> the software *did* catch the overflow. The same overflow didn't occur
> on Ariane 4 because of its different flight profile. There was a
> management decision to reuse the Ariane 4 flight software for Ariane 5
> without sufficient review.
>
> The code (which had been thoroughly tested on Ariane 4 and was known not
> to overflow) emitted an error message describing the overflow exception.
> That error message was then processed as data. Another problem was that
> systems were designed to shut down on any error; as a result, healthy
> and necessary equipment was shut down prematurely.
>
> This is from my vague memory, and may not be entirely accurate.
>
> *Of course* logic errors are possible in Ada programs, but in my
> experience and that of many other programmers, if you get an Ada program
> to compile (and run without raising unhandled exceptions), you're likely
> to be much closer to a working program than if you get a C program to
> compile. A typo in a C program is more likely to result in a valid
> program with different semantics.
>

So close you can just feel its a 100% correct and working program?

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

<87le6wpbvc.fsf@nosuchdomain.example.com>

  copy mid

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

  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: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity Risks"
Date: Tue, 05 Mar 2024 14:11:51 -0800
Organization: None to speak of
Lines: 14
Message-ID: <87le6wpbvc.fsf@nosuchdomain.example.com>
References: <us0brl$246bf$1@dont-email.me>
<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
<us33a0$2ot8t$1@dont-email.me> <us3n2c$306pr$1@dont-email.me>
<us6ckb$3khma$2@dont-email.me> <us6ge5$3l59s$4@dont-email.me>
<us6s1l$3nb7r$2@dont-email.me> <us8180$3v3cu$1@dont-email.me>
<20240305132240.241@kylheku.com> <us83nu$3vinv$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="1a8f7ad2f6e687631fe43fc4c823263c";
logging-data="426"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GTYaVs4iFbm2a4JpPHZqT"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:3QKkkl0Kk7MDdkuApcCiVr9CaG0=
sha1:WJW7VngYNwkQwjkW6WutUhltYM0=
 by: Keith Thompson - Tue, 5 Mar 2024 22:11 UTC

"Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
[...]
> ADA is bullet proof... Until its not... ;^)

The language is called Ada, not ADA.

Of course no language that can be used for real work can be completely
bulletproof. Ada is designed to be relatively safe (and neither of
these newsgroups is the place to discuss the details.)

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
Working, but not speaking, for Medtronic
void Void(void) { Void(); } /* The recursive call of the void */

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

<us86kr$7j8$1@dont-email.me>

  copy mid

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

  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: Tue, 5 Mar 2024 14:34:03 -0800
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <us86kr$7j8$1@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>
<us6ckb$3khma$2@dont-email.me> <us6ge5$3l59s$4@dont-email.me>
<us6s1l$3nb7r$2@dont-email.me> <us8180$3v3cu$1@dont-email.me>
<20240305132240.241@kylheku.com> <us83nu$3vinv$1@dont-email.me>
<87le6wpbvc.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 5 Mar 2024 22:34:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="50808870dee140c5f4f8019dbaff12e1";
logging-data="7784"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+js/cWSFbhyZNOeCAE8KTpY+hjg/tmSdE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9QISnnAO+146F9zfltIHJATfXEc=
In-Reply-To: <87le6wpbvc.fsf@nosuchdomain.example.com>
Content-Language: en-US
 by: Chris M. Thomasson - Tue, 5 Mar 2024 22:34 UTC

On 3/5/2024 2:11 PM, Keith Thompson wrote:
> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
> [...]
>> ADA is bullet proof... Until its not... ;^)
>
> The language is called Ada, not ADA.

I wonder how many people got confused?

> Of course no language that can be used for real work can be completely
> bulletproof. Ada is designed to be relatively safe (and neither of
> these newsgroups is the place to discuss the details.)
>

That's fine.

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

<us8821$90p$4@dont-email.me>

  copy mid

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

  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: Tue, 5 Mar 2024 22:58:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <us8821$90p$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>
<us3155$2of1i$3@dont-email.me> <us4c66$346tp$3@dont-email.me>
<us5d6f$3besu$3@dont-email.me> <20240305005948.00002697@yahoo.com>
<us5u16$3eidj$2@dont-email.me> <20240305111103.00003081@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 22:58:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a1a7f9c36865f1bff757c845ff7d3ffd";
logging-data="9241"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+3SL28mTmV5OVtu5dNQN7g"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:4PJygFBK7fPfF7ysCijTtgjZWnU=
 by: Lawrence D'Oliv - Tue, 5 Mar 2024 22:58 UTC

On Tue, 5 Mar 2024 11:11:03 +0200, Michael S wrote:

> On Tue, 5 Mar 2024 01:54:46 -0000 (UTC)
> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>
>> Discord did some benchmarking of its back-end servers, which had been
>> using Go, and decided that switching to Rust offered better
>> performance.
>
> - for big and complex real-world back-end processing, writing working
> solution in go will take 5 time less man hours than writing it in Rust

Nevertheless, they found the switch to Rust worthwhile.

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

<us8d53$1a24$1@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 00:25:08 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <us8d53$1a24$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> <us5ddc$3besu$4@dont-email.me>
<us6s9f$3nb7r$3@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 00:25:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="289fca74fac389e911c3152c39303989";
logging-data="43076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182D1NVmENwyjnlZDHmI6z7"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:ZNMD18hLx9m9qaOh/v0b2kDkZvg=
 by: Lawrence D'Oliv - Wed, 6 Mar 2024 00:25 UTC

On Tue, 5 Mar 2024 11:31:11 +0100, David Brown wrote:

> That includes realising that computers could do more than number
> crunching.

Or, conversely, realizing that all forms of computation (including symbol
manipulation) can be expressed as arithmetic? Maybe that came later, cf
“Gödel numbering”.

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

<us8d6d$1a24$2@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 00:25:49 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <us8d6d$1a24$2@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>
<us5dl8$3b8mq$6@dont-email.me> <us5ear$3besu$6@dont-email.me>
<us5eee$3b8mq$9@dont-email.me> <us6129$3imua$1@dont-email.me>
<us67t9$3jpc3$1@dont-email.me> <us6a95$3k45j$1@dont-email.me>
<us6gc4$3l59s$3@dont-email.me> <us83v8$3vinv$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 00:25:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="289fca74fac389e911c3152c39303989";
logging-data="43076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Npo+npQcaNKfo0Rxw0UDQ"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:eP3Cv8PL4tq+1FQ6dAM/VH8WaD4=
 by: Lawrence D'Oliv - Wed, 6 Mar 2024 00:25 UTC

On Tue, 5 Mar 2024 13:48:25 -0800, Chris M. Thomasson wrote:

> On 3/4/2024 11:07 PM, Lawrence D'Oliveiro wrote:
>
>> On Mon, 4 Mar 2024 21:23:49 -0800, Chris M. Thomasson wrote:
>>
>>> Does the build system depend on anything coded in C?
>>
>> These days, it might be Rust.
>
> The keyword is might... Right?

Might does not make right.

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

<us90qt$86c5$1@dont-email.me>

  copy mid

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

  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: Tue, 5 Mar 2024 22:01:01 -0800
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <us90qt$86c5$1@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>
<us5dl8$3b8mq$6@dont-email.me> <us5ear$3besu$6@dont-email.me>
<us5eee$3b8mq$9@dont-email.me> <us6129$3imua$1@dont-email.me>
<us67t9$3jpc3$1@dont-email.me> <us6a95$3k45j$1@dont-email.me>
<us6gc4$3l59s$3@dont-email.me> <us83v8$3vinv$2@dont-email.me>
<us8d6d$1a24$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Mar 2024 06:01:01 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fcff1299cd5d92da2f89c86b84d41327";
logging-data="268677"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/m2H16SlSvF/RAgugmAwhzoKg/yau5z8Y="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:TJWiWPtPOR+S9jA0Jc3UQG2M/pM=
Content-Language: en-US
In-Reply-To: <us8d6d$1a24$2@dont-email.me>
 by: Chris M. Thomasson - Wed, 6 Mar 2024 06:01 UTC

On 3/5/2024 4:25 PM, Lawrence D'Oliveiro wrote:
> On Tue, 5 Mar 2024 13:48:25 -0800, Chris M. Thomasson wrote:
>
>> On 3/4/2024 11:07 PM, Lawrence D'Oliveiro wrote:
>>
>>> On Mon, 4 Mar 2024 21:23:49 -0800, Chris M. Thomasson wrote:
>>>
>>>> Does the build system depend on anything coded in C?
>>>
>>> These days, it might be Rust.
>>
>> The keyword is might... Right?
>
> Might does not make right.

So, what is the right language to use?

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

<us96rh$962c$1@toylet.eternal-september.org>

  copy mid

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

  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!toylet.eternal-september.org!.POSTED!not-for-mail
From: toylet.t...@gmail.com (Mr. Man-wai Chang)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Wed, 6 Mar 2024 15:43:46 +0800
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <us96rh$962c$1@toylet.eternal-september.org>
References: <us0brl$246bf$1@dont-email.me>
<us780t$3pku4$1@toylet.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Mar 2024 07:43:46 -0000 (UTC)
Injection-Info: toylet.eternal-september.org; posting-host="e0a2b12d0f68a52efbbc42d958dc3f17";
logging-data="301132"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18O2EpqOqQZts/s/bVGQi8c"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:UcCzdZhvmMJXhdGEVjKSQ+vDTHo=
Content-Language: en-US
In-Reply-To: <us780t$3pku4$1@toylet.eternal-september.org>
 by: Mr. Man-wai Chang - Wed, 6 Mar 2024 07:43 UTC

On 5/3/2024 9:51 pm, Mr. Man-wai Chang wrote:
> On 3/3/2024 7:13 am, Lynn McGuire wrote:
>>
>> "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.
>
> A responsible, good progreammer or a better C/C++ pre-processor can
> avoid a lot of problems!!

Or maybe A.I.-assisted code analyzer?? But there are still blind spots...

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

<us9hc9$b720$1@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 11:43:21 +0100
Organization: A noiseless patient Spider
Lines: 153
Message-ID: <us9hc9$b720$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> <us6n21$3mbe2$1@dont-email.me>
<us80kd$3v39d$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 10:43:21 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d3175f98bdcdb7195351d85d6835badc";
logging-data="367680"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Ym5Y9zyfNvPfZFEv+ZCj4q0GhuhbQJLk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:3iD4pWLteAJRmsAEoBoQZJ4FRIc=
Content-Language: en-GB
In-Reply-To: <us80kd$3v39d$1@dont-email.me>
 by: David Brown - Wed, 6 Mar 2024 10:43 UTC

On 05/03/2024 21:51, Chris M. Thomasson wrote:
> On 3/5/2024 1:01 AM, David Brown wrote:
>> On 04/03/2024 21:36, 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, 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...
>>>
>>
>> I believe I mentioned that.  You do not, in general, "push and pop" -
>> you malloc and never free.  Excluding debugging code and other parts
>> useful in testing and developing, you have something like :
>>
>> enum { heap_size = 16384; }
>> alignas(max_align_t) static uint8_t heap[heap_size];
>> uint8_t * next_free = heap;
>>
>> void free(void * ptr) {
>>      (void) ptr;
>> }
>>
>> void * malloc(size_t size) {
>>      const size_t align = alignof(max_align_t);
>>      const real_size = size ? (size + (align - 1)) & ~(align - 1)
>>                  : align;
>>      void * p = next_free;
>>      next_free += real_size;
>>      return p;
>> }
>>
>>
>> Allowing for pops requires storing the size of the allocations (unless
>> you change the API from that of malloc/free), and is only rarely
>> useful.   Generally if you want memory that temporary, you use a VLA
>> or alloca to put it on the stack.
>>
>
> wrt systems with no malloc/free I am thinking more along the lines of a
> region allocator mixed with a LIFO for a cache, so a node based thing.
> The region allocator gets fed with a large buffer. Depending on specific
> needs, it can work out nicely for systems that do not have malloc/free.
> The pattern I used iirc, was something like:
>
> // pseudo code...
> _______________________
> node*
> node_pop()
> {
>     // try the lifo first...
>
>     node* n = lifo_pop();
>
>     if (! n)
>     {
>         // resort to the region allocator...
>
>         n = region_allocate_node();
>
>         // note, n can be null here.
>         // if it is, we are out of memory.
>
>         // note, out of memory on a system
>         // with no malloc/free...
>     }
>
>     return n;
> }
>
> void
> node_push(
>     node* n
> ) {
>      lifo_push(n);
> }
> _______________________
>
>
> make any sense to you?
>

I know what you are trying to suggest, and I understand how it can sound
reasonable. In some cases, this can be a useful kind of allocator, and
when it is suitable, it is very fast. But it is has two big issues for
small embedded systems.

One problem is the "region_allocate_node()" - getting a lump of space
from the underlying OS. That is fine on "big systems", and it is normal
that malloc/free systems only ask for memory from the OS in big lumps,
then handle local allocation within the process space for efficiency.
(This can work particularly well if each thread gets dedicated lumps, so
that no locking is needed for most malloc/free calls.)

But in a small embedded system, there is no OS (an RTOS is generally
part of the same binary as the application), and providing such "lumps"
would be dynamic memory management. So if you are using a system like
you describe, then you would have a single statically allocated block of
memory for your lifo stack.

Then there is the question of how often such a stack-like allocator is
useful, independent of the normal stack. I can imagine it is
/sometimes/ helpful, but rarely. I can't think off-hand of any cases
where I would have found it useful in anything I have written.

As I (and others) have said elsewhere, in small embedded systems and
safety or reliability critical systems, you want to avoid dynamic memory
and memory management whenever possible, for a variety of reasons. If
you do need something, then specialise allocators are more common -
possibly including lifos like this.

But it's more likely to have fixed-size pools with fixed-size elements,
dedicated to particular memory tasks. For example, if you need to track
multiple in-flight messages on a wireless mesh network, where messages
might take different amounts of time to be delivered and acknowledged,
or retried, you define a structure that holds all the data you need for
a message. Then you decide how many in-flight messages you will support
as a maximum. This gives you a statically allocated array of N structs.
Block usage is then done by a bitmap, typically within a single 32-bit
word. Finding a free slot is a just finding the first free zero, and
freeing it is clearing the correct bit.

There are, of course, many other kinds of dedicated allocators that can
be used in other circumstances.

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

<20240306140214.0000449c@yahoo.com>

  copy mid

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

  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: already5...@yahoo.com (Michael S)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites
Cybersecurity Risks"
Date: Wed, 6 Mar 2024 14:02:14 +0200
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <20240306140214.0000449c@yahoo.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>
<us3155$2of1i$3@dont-email.me>
<us4c66$346tp$3@dont-email.me>
<us5d6f$3besu$3@dont-email.me>
<20240305005948.00002697@yahoo.com>
<us5u16$3eidj$2@dont-email.me>
<20240305111103.00003081@yahoo.com>
<us8821$90p$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="896a67d92e71db445feba92004885e01";
logging-data="321191"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181ZnemoI/a7DgqpjTlMRNOPPyjKn9x16Q="
Cancel-Lock: sha1:V9uemKC71oyW87qyGYes1thg5BA=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
 by: Michael S - Wed, 6 Mar 2024 12:02 UTC

On Tue, 5 Mar 2024 22:58:10 -0000 (UTC)
Lawrence D'Oliveiro <ldo@nz.invalid> wrote:

> On Tue, 5 Mar 2024 11:11:03 +0200, Michael S wrote:
>
> > On Tue, 5 Mar 2024 01:54:46 -0000 (UTC)
> > Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> >
> >> Discord did some benchmarking of its back-end servers, which had
> >> been using Go, and decided that switching to Rust offered better
> >> performance.
> >
> > - for big and complex real-world back-end processing, writing
> > working solution in go will take 5 time less man hours than writing
> > it in Rust
>
> Nevertheless, they found the switch to Rust worthwhile.

I read a little more about it.
https://discord.com/blog/why-discord-is-switching-from-go-to-rust

Summary: performance of one of Discord's most heavy-duty servers
suffered from weakness in implementation of Go garbage collector. On
average the performance was satisfactory, but every two minutes there
was spike in latency. The latency during the spike was not that big
(300 msec), but they stilled were feeling that they want better.
They tried to tune GC, but the problem appeared to be fundamental.
So they just rewrote this particular server in Rust. Naturally, Rust
does not collect garbage, so this particular problem disappeared.

The key phrase of the story is "This service was a great candidate to
port to Rust since it was small and self-contained".
I'd add to this that even more important for eventual success of
migration was the fact that at time of rewrite server was already
running for several years, so requirements were stable and
well-understood.
Another factor is that their service does not create/free that many
objects. The delay was caused by mere fact of GC scanning rather than
by frequent compacting of memory pools. So, from the beginning it was
obvious that potential fragmentation of the heap, which is the main
weakness of "plain" C/C++/Rust based solutions for Web back-ends, does
not apply in their case.

There is also non-technical angle involved: Discord is fueled by
investor's money. It's not that they have no revenues at all, but their
revenues at this stage are not supposed to cover their expenses.
Companies that operate in such mode have different
perspective to just about everything. I mean, different from
perspective of people like myself, working in a company that fights hard
to stay profitable and succeeds more often than not.

I have few questions about the story, most important one is whether the
weakness of this sort is specific to GC of Go, due to its relative
immaturity or more general and applies equally to most mature GCs on
the market, i.e. J2EE and .NET.
Another question is whether the problem is specific to GC-style of
automatic memory management (AMM) or applies, at least to some degree,
to other forms of AMM, most importantly, to AMMs based on Reference
Counting used by Swift and also popular in C++.
Of course, I don't expected that my questions will be answered fully on
comp.lang.c, but if some knowledgeable posters will try to answer I
would appreciate.

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

<us9nib$dski$1@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 12:28:59 +0000
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <us9nib$dski$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> <us4c66$346tp$3@dont-email.me>
<us5d6f$3besu$3@dont-email.me> <20240305005948.00002697@yahoo.com>
<us5u16$3eidj$2@dont-email.me> <20240305111103.00003081@yahoo.com>
<us8821$90p$4@dont-email.me> <20240306140214.0000449c@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 12:28:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8bb27e54f06b04cb16d2870bb60db8d6";
logging-data="455314"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WggLb6QFtS2PNHZzTcmRz"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:puo8A3j3RZ2Ri+3UOMbH2+LmOMg=
Content-Language: en-GB
In-Reply-To: <20240306140214.0000449c@yahoo.com>
 by: bart - Wed, 6 Mar 2024 12:28 UTC

On 06/03/2024 12:02, Michael S wrote:
> On Tue, 5 Mar 2024 22:58:10 -0000 (UTC)
> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>
>> On Tue, 5 Mar 2024 11:11:03 +0200, Michael S wrote:
>>
>>> On Tue, 5 Mar 2024 01:54:46 -0000 (UTC)
>>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>
>>>> Discord did some benchmarking of its back-end servers, which had
>>>> been using Go, and decided that switching to Rust offered better
>>>> performance.
>>>
>>> - for big and complex real-world back-end processing, writing
>>> working solution in go will take 5 time less man hours than writing
>>> it in Rust
>>
>> Nevertheless, they found the switch to Rust worthwhile.
>
> I read a little more about it.
> https://discord.com/blog/why-discord-is-switching-from-go-to-rust
>
> Summary: performance of one of Discord's most heavy-duty servers
> suffered from weakness in implementation of Go garbage collector. On
> average the performance was satisfactory, but every two minutes there
> was spike in latency. The latency during the spike was not that big
> (300 msec), but they stilled were feeling that they want better.
> They tried to tune GC, but the problem appeared to be fundamental.
> So they just rewrote this particular server in Rust. Naturally, Rust
> does not collect garbage, so this particular problem disappeared.
>
> The key phrase of the story is "This service was a great candidate to
> port to Rust since it was small and self-contained".
> I'd add to this that even more important for eventual success of
> migration was the fact that at time of rewrite server was already
> running for several years, so requirements were stable and
> well-understood.
> Another factor is that their service does not create/free that many
> objects. The delay was caused by mere fact of GC scanning rather than
> by frequent compacting of memory pools. So, from the beginning it was
> obvious that potential fragmentation of the heap, which is the main
> weakness of "plain" C/C++/Rust based solutions for Web back-ends, does
> not apply in their case.

From the same link:

"Rust uses a relatively unique memory management approach that
incorporates the idea of memory “ownership”. Basically, Rust keeps track
of who can read and write to memory. It knows when the program is using
memory and immediately frees the memory once it is no longer needed. It
enforces memory rules at compile time, making it virtually impossible to
have runtime memory bugs.⁴ You do not need to manually keep track of
memory. The compiler takes care of it."

This suggests the language automatically takes care of this. But you
have to write your programs in a certain way to make it possible. The
programmer has to help the language keep track of what owns what.

So you will probably be able to do the same thing in another language.
But Rust will do more compile-time enforcement by restricting how you
share objects in memory.

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

<us9r86$eiqh$1@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 14:31:50 +0100
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <us9r86$eiqh$1@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>
<us6ckb$3khma$2@dont-email.me> <us6ge5$3l59s$4@dont-email.me>
<us6s1l$3nb7r$2@dont-email.me> <us8180$3v3cu$1@dont-email.me>
<20240305132240.241@kylheku.com> <us83nu$3vinv$1@dont-email.me>
<87le6wpbvc.fsf@nosuchdomain.example.com> <us86kr$7j8$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Mar 2024 13:31:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d3175f98bdcdb7195351d85d6835badc";
logging-data="478033"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/czDnuiF/GOOSZE13pJLvzFP+Vrp8kUHg="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:HWMz1Aifi9hDVhzoFxBDsyHw6E0=
In-Reply-To: <us86kr$7j8$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Wed, 6 Mar 2024 13:31 UTC

On 05/03/2024 23:34, Chris M. Thomasson wrote:
> On 3/5/2024 2:11 PM, Keith Thompson wrote:
>> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
>> [...]
>>> ADA is bullet proof... Until its not... ;^)
>>
>> The language is called Ada, not ADA.
>
> I wonder how many people got confused?
>

Apparently you and Malcolm got confused.

Others who mentioned the language know it is called "Ada". I not only
corrected you, but gave an explanation of it, in the hope that with that
clarity, you'd learn.

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

<us9rdq$eiqh$2@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 14:34:50 +0100
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <us9rdq$eiqh$2@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>
<us6ckb$3khma$2@dont-email.me> <us6ge5$3l59s$4@dont-email.me>
<us6s1l$3nb7r$2@dont-email.me> <us8180$3v3cu$1@dont-email.me>
<20240305132240.241@kylheku.com> <87plw8pci5.fsf@nosuchdomain.example.com>
<us84q3$3vqtf$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 13:34:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d3175f98bdcdb7195351d85d6835badc";
logging-data="478033"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+05RjEIcZ4uN09vzZZHKWqNVb1l86QHk4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:xJR6LO+sru7uTXmxB58CeZHy0W8=
Content-Language: en-GB
In-Reply-To: <us84q3$3vqtf$1@dont-email.me>
 by: David Brown - Wed, 6 Mar 2024 13:34 UTC

On 05/03/2024 23:02, Chris M. Thomasson wrote:
> On 3/5/2024 1:58 PM, Keith Thompson wrote:
>> Kaz Kylheku <433-929-6894@kylheku.com> writes:
>>> On 2024-03-05, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
>>>> On 3/5/2024 2:27 AM, David Brown wrote:
>>>>> On 05/03/2024 08:08, Lawrence D'Oliveiro wrote:
>>>>>> On Tue, 5 Mar 2024 00:03:54 -0600, Lynn McGuire wrote:
>>>>>>
>>>>>>> On 3/3/2024 11:43 PM, Lawrence D'Oliveiro wrote:
>>>>>>>
>>>>>>>> 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.
>>>>>>>
>>>>>>> Most of the Ada code was written in C or C++ and converted to Ada
>>>>>>> for
>>>>>>> delivery.
>>>>>>
>>>>>> Was it debugged again? Or was it assumed that the translation was
>>>>>> bug-
>>>>>> free?
>>>>>
>>>>> With Ada, if you can get it to compile, it's ready to ship :-)
>>>>>
>>>> Really? Any logic errors in the program itself?
>>>
>>> Ariane 5 rocket incident of 1996: The Ada code didn't catch the hardware
>>> overflow exception from forcing a 64 bit floating-point value into a 16
>>> bit integer. The situation was not expected by the code which was
>>> developed for the Ariane 4, or something like that.
>>
>> A numeric overflow occurred during the Ariane 5's initial flight -- and
>> the software *did* catch the overflow.  The same overflow didn't occur
>> on Ariane 4 because of its different flight profile.  There was a
>> management decision to reuse the Ariane 4 flight software for Ariane 5
>> without sufficient review.
>>
>> The code (which had been thoroughly tested on Ariane 4 and was known not
>> to overflow) emitted an error message describing the overflow exception.
>> That error message was then processed as data.  Another problem was that
>> systems were designed to shut down on any error; as a result, healthy
>> and necessary equipment was shut down prematurely.
>>
>> This is from my vague memory, and may not be entirely accurate.

That matches my recollection too.

>>
>> *Of course* logic errors are possible in Ada programs, but in my
>> experience and that of many other programmers, if you get an Ada program
>> to compile (and run without raising unhandled exceptions), you're likely
>> to be much closer to a working program than if you get a C program to
>> compile.  A typo in a C program is more likely to result in a valid
>> program with different semantics.
>>
>
> So close you can just feel its a 100% correct and working program?

Didn't you notice the smiley in my comment? It used to be a running
joke that if you managed to get your Ada code to compile, it was ready
to ship. The emphasis is on the word "joke".

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

<us9rou$eiqh$3@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 14:40:46 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <us9rou$eiqh$3@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> <us5ddc$3besu$4@dont-email.me>
<us6s9f$3nb7r$3@dont-email.me> <us8d53$1a24$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 13:40:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d3175f98bdcdb7195351d85d6835badc";
logging-data="478033"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Nj8BvQwNQnj97rLcQ6PhfedYB2XuSg4c="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:ng3O1HCH8QNcVX4XRveCmhnVKKE=
In-Reply-To: <us8d53$1a24$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Wed, 6 Mar 2024 13:40 UTC

On 06/03/2024 01:25, Lawrence D'Oliveiro wrote:
> On Tue, 5 Mar 2024 11:31:11 +0100, David Brown wrote:
>
>> That includes realising that computers could do more than number
>> crunching.
>
> Or, conversely, realizing that all forms of computation (including symbol
> manipulation) can be expressed as arithmetic?

That's also a reasonable way to put it. I have not read any of her
writings, so I don't know exactly how she described things.

> Maybe that came later, cf
> “Gödel numbering”.

That's getting a few steps further on - it is treating programs as data,
and I don't think there's any reason to suspect that was something Ada
Lovelace thought about. It's also very theoretical, while Ada was more
interested in the practical applications of computers.

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

<us9sao$erpl$1@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 13:50:16 +0000
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <us9sao$erpl$1@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>
<us6ckb$3khma$2@dont-email.me> <us6ge5$3l59s$4@dont-email.me>
<us6s1l$3nb7r$2@dont-email.me> <us8180$3v3cu$1@dont-email.me>
<20240305132240.241@kylheku.com> <us83nu$3vinv$1@dont-email.me>
<87le6wpbvc.fsf@nosuchdomain.example.com> <us86kr$7j8$1@dont-email.me>
<us9r86$eiqh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 13:50:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8bb27e54f06b04cb16d2870bb60db8d6";
logging-data="487221"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vMu6pxr0jEIOULMM0NMUw"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:m2CrDUR/MTrArxqu1CQkuyNX9/k=
In-Reply-To: <us9r86$eiqh$1@dont-email.me>
Content-Language: en-GB
 by: bart - Wed, 6 Mar 2024 13:50 UTC

On 06/03/2024 13:31, David Brown wrote:
> On 05/03/2024 23:34, Chris M. Thomasson wrote:
>> On 3/5/2024 2:11 PM, Keith Thompson wrote:
>>> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
>>> [...]
>>>> ADA is bullet proof... Until its not... ;^)
>>>
>>> The language is called Ada, not ADA.
>>
>> I wonder how many people got confused?
>>
>
> Apparently you and Malcolm got confused.
>
> Others who mentioned the language know it is called "Ada".  I not only
> corrected you, but gave an explanation of it, in the hope that with that
> clarity, you'd learn.
>

Whoever wrote this short Wikipedia article on it got confused too as it
uses both Ada and ADA:

https://simple.wikipedia.org/wiki/Ada_(programming_language)

(The example program also includes 'Ada' as some package name. Since it
is case-insensitive, 'ADA' would also work.)

Here's also a paper that uses 'ADA' (I assume it is the same language):

https://www.sciencedirect.com/science/article/abs/pii/0166361582900136

Personally I'm not bothered whether anyone uses Ada or ADA. Is 'C'
written in all-caps or only capitalised? You can't tell!

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

<20240306161842.00001400@yahoo.com>

  copy mid

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

  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: already5...@yahoo.com (Michael S)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: Re: "White House to Developers: Using C or C++ Invites
Cybersecurity Risks"
Date: Wed, 6 Mar 2024 16:18:42 +0200
Organization: A noiseless patient Spider
Lines: 54
Message-ID: <20240306161842.00001400@yahoo.com>
References: <us0brl$246bf$1@dont-email.me>
<XnsB12AC133C49E3hueydlltampabayrrcom@135.181.20.170>
<us33a0$2ot8t$1@dont-email.me>
<us3n2c$306pr$1@dont-email.me>
<us6ckb$3khma$2@dont-email.me>
<us6ge5$3l59s$4@dont-email.me>
<us6s1l$3nb7r$2@dont-email.me>
<us8180$3v3cu$1@dont-email.me>
<20240305132240.241@kylheku.com>
<us83nu$3vinv$1@dont-email.me>
<87le6wpbvc.fsf@nosuchdomain.example.com>
<us86kr$7j8$1@dont-email.me>
<us9r86$eiqh$1@dont-email.me>
<us9sao$erpl$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Injection-Info: dont-email.me; posting-host="896a67d92e71db445feba92004885e01";
logging-data="321191"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VLI0+0XXd2lnUSaPdI4oCbewD1VmgQL8="
Cancel-Lock: sha1:CJBlvVuleSDQWTNOaRe/JH+T5Fg=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
 by: Michael S - Wed, 6 Mar 2024 14:18 UTC

On Wed, 6 Mar 2024 13:50:16 +0000
bart <bc@freeuk.com> wrote:

> On 06/03/2024 13:31, David Brown wrote:
> > On 05/03/2024 23:34, Chris M. Thomasson wrote:
> >> On 3/5/2024 2:11 PM, Keith Thompson wrote:
> >>> "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> writes:
> >>> [...]
> >>>> ADA is bullet proof... Until its not... ;^)
> >>>
> >>> The language is called Ada, not ADA.
> >>
> >> I wonder how many people got confused?
> >>
> >
> > Apparently you and Malcolm got confused.
> >
> > Others who mentioned the language know it is called "Ada".  I not
> > only corrected you, but gave an explanation of it, in the hope that
> > with that clarity, you'd learn.
> >
>
> Whoever wrote this short Wikipedia article on it got confused too as
> it uses both Ada and ADA:
>
> https://simple.wikipedia.org/wiki/Ada_(programming_language)
>
> (The example program also includes 'Ada' as some package name. Since
> it is case-insensitive, 'ADA' would also work.)
>

Your link is to "simple Wikipedia". I don't know what it is
exactly, but it does not appear as authoritative as real Wikipedia

https://en.wikipedia.org/wiki/Ada_(programming_language)

> Here's also a paper that uses 'ADA' (I assume it is the same
> language):
>
> https://www.sciencedirect.com/science/article/abs/pii/0166361582900136
>

The article published 1982. The language became official in 1983.
Possibly, in 1982 there still was a confusion w.r.t. its name.

> Personally I'm not bothered whether anyone uses Ada or ADA. Is 'C'
> written in all-caps or only capitalised? You can't tell!
>

If only ADA, written in upper case, was not widely used for something
else...


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