Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Help! I'm trapped in a PDP 11/70!


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"

<AhadnbI2nKS_43X4nZ2dnZfqnPWdnZ2d@supernews.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.27.MISMATCH!Xl.tags.giganews.com!local-2.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 06 Mar 2024 14:30:57 +0000
Sender: Andrew Haley <aph@zarquon.pink>
From: aph...@littlepinkcloud.invalid
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> <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>
User-Agent: tin/1.9.2-20070201 ("Dalaruan") (UNIX) (Linux/4.18.0-477.27.1.el8_8.x86_64 (x86_64))
Message-ID: <AhadnbI2nKS_43X4nZ2dnZfqnPWdnZ2d@supernews.com>
Date: Wed, 06 Mar 2024 14:30:58 +0000
Lines: 45
X-Trace: sv3-yi7GV8v2JCbh8Oq6dAeAMwJhQFW6Bvh/iq7OjKw2fsNIZn9dGBtkMmyX4oNSEZ0lalq7U4gjcICSqYo!7+wmfVA2jmUIekIlq2/BpO9x/bkUNTXScz4nug5OY11a1mx+xovCdeEIwIPnaJb1Ag9m1HJ9oxQw!mCBB5BiGZKA=
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: aph...@littlepinkcloud.invalid - Wed, 6 Mar 2024 14:30 UTC

In comp.lang.c Michael S <already5chosen@yahoo.com> 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.

....

> 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

I'm sure it is. 300ms is terrible.

> or more general and applies equally to most mature GCs on the
> market, i.e. J2EE and .NET.

Continuously-compacting concurrent collectors like those available for
Java aim for less than 10ms, and often hit 1ms. You have to stop each
thread briefly to scan its stack and do a few other things, but that's
all.

Andrew.

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

<us9v51$fbe7$1@dont-email.me>

  copy mid

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

  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 14:38:25 +0000
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <us9v51$fbe7$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> <us9sao$erpl$1@dont-email.me>
<20240306161842.00001400@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Mar 2024 14:38:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8bb27e54f06b04cb16d2870bb60db8d6";
logging-data="503239"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SnMei3oIdyCMBVyYyUC4d"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:uL8eMh1hOtD1N6wJMM/rwdElSEQ=
Content-Language: en-GB
In-Reply-To: <20240306161842.00001400@yahoo.com>
 by: bart - Wed, 6 Mar 2024 14:38 UTC

On 06/03/2024 14:18, Michael S wrote:
> On Wed, 6 Mar 2024 13:50:16 +0000
> bart <bc@freeuk.com> wrote:

>> 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.

It would have been know it was named after a person. (I think Lovelace
would have been better though.)

>> 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...

I don't know what that is without looking it up. In a programming
newsgroup I expect ADA to be the language.

BTW it's a good thing that C, written in upper case, can never be
confused with anything else...

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

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

  copy mid

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

  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: Wed, 06 Mar 2024 07:42:37 -0800
Organization: None to speak of
Lines: 15
Message-ID: <87h6hjpdsi.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>
<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
Injection-Info: dont-email.me; posting-host="ff4e833dde04a11b519e7467d1f3c9e8";
logging-data="527255"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xkDNTegtRC0Fqk5vmrKXx"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:Ni3TrsFe+Z0mRGJV8Eu5+pH7bUM=
sha1:uQK4HrdiY6k1OGhMxB0bohshxBA=
 by: Keith Thompson - Wed, 6 Mar 2024 15:42 UTC

bart <bc@freeuk.com> writes:
[...]
> 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)

Fixed.

[...]

--
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"

<usafb2$irvm$1@dont-email.me>

  copy mid

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

  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: jameskuy...@alumni.caltech.edu (James Kuyper)
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:14:42 -0500
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <usafb2$irvm$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> <us9sao$erpl$1@dont-email.me>
<20240306161842.00001400@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Mar 2024 19:14:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="57d1bdeb1d5f2b9d3305da77a87c5aad";
logging-data="618486"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Fe5h/p17Hg/Xt2aG7LKFi7yAYNr2VFBg="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8QsJurj0/xD60k6pzihmLlTNb5Q=
In-Reply-To: <20240306161842.00001400@yahoo.com>
Content-Language: en-US
 by: James Kuyper - Wed, 6 Mar 2024 19:14 UTC

On 3/6/24 09:18, Michael S wrote:
> On Wed, 6 Mar 2024 13:50:16 +0000
> bart <bc@freeuk.com> wrote:
....
>> 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

Notice that in your following link, "en" appears at the beginning to
indicate the use of English. "simple" at the beginning of the above link
serves the same purpose. "Simple English" is it's own language, closely
related to standard English. Read the corresponding Wikipedia article
for more details.

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

<usah79$jads$1@dont-email.me>

  copy mid

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

  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 19:46:49 +0000
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <usah79$jads$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> <us9sao$erpl$1@dont-email.me>
<20240306161842.00001400@yahoo.com> <us9v51$fbe7$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 19:46:49 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8bb27e54f06b04cb16d2870bb60db8d6";
logging-data="633276"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1996MN509xEklq+h5tMFUo0"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:1VqihoIwynuSjZhN+rnG8+hAJMU=
Content-Language: en-GB
In-Reply-To: <us9v51$fbe7$1@dont-email.me>
 by: bart - Wed, 6 Mar 2024 19:46 UTC

On 06/03/2024 14:38, bart wrote:
> On 06/03/2024 14:18, Michael S wrote:

>> If only ADA, written in upper case, was not widely used for something
>> else...
>
> I don't know what that is without looking it up. In a programming
> newsgroup I expect ADA to be the language.

Here's an interesting pic:

https://upload.wikimedia.org/wikipedia/commons/5/50/AdaLovelaceplaque.JPG

Notice the upper-case name.

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

<YN3GN.38897$hN14.19245@fx17.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!news.enyo.de!news.uni-stuttgart.de!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.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> <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> <20240306161842.00001400@yahoo.com> <us9v51$fbe7$1@dont-email.me> <usah79$jads$1@dont-email.me>
Lines: 19
Message-ID: <YN3GN.38897$hN14.19245@fx17.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 06 Mar 2024 19:50:16 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 06 Mar 2024 19:50:16 GMT
X-Received-Bytes: 1746
 by: Scott Lurndal - Wed, 6 Mar 2024 19:50 UTC

bart <bc@freeuk.com> writes:
>On 06/03/2024 14:38, bart wrote:
>> On 06/03/2024 14:18, Michael S wrote:
>
>>> If only ADA, written in upper case, was not widely used for something
>>> else...
>>
>> I don't know what that is without looking it up. In a programming
>> newsgroup I expect ADA to be the language.
>
>Here's an interesting pic:
>
>https://upload.wikimedia.org/wikipedia/commons/5/50/AdaLovelaceplaque.JPG
>
>Notice the upper-case name.

Given that the entire name is in all uppercase, and it's not referring
to the computer language, what is your point, if any?

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

<20240306114939.761@kylheku.com>

  copy mid

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

  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: Wed, 6 Mar 2024 19:50:45 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <20240306114939.761@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>
<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>
<20240306161842.00001400@yahoo.com> <usafb2$irvm$1@dont-email.me>
Injection-Date: Wed, 6 Mar 2024 19:50:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c215e045c2e6497046e6284b25a5ab12";
logging-data="635154"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gxF2zYlc2ElIA7pvPppA78raurp/8RAw="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:2rvVOV/1OCP/AOcesLa8nItqXw0=
 by: Kaz Kylheku - Wed, 6 Mar 2024 19:50 UTC

On 2024-03-06, James Kuyper <jameskuyper@alumni.caltech.edu> wrote:
> On 3/6/24 09:18, Michael S wrote:
>> On Wed, 6 Mar 2024 13:50:16 +0000
>> bart <bc@freeuk.com> wrote:
> ...
>>> 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
>
> Notice that in your following link, "en" appears at the beginning to
> indicate the use of English. "simple" at the beginning of the above link
> serves the same purpose. "Simple English" is it's own language, closely
> related to standard English.

Where is Simple English spoken? Is there some geographic area where
native speakers concentrate?

--
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"

<usaipk$jjq3$1@dont-email.me>

  copy mid

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

  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 21:13:40 +0100
Organization: A noiseless patient Spider
Lines: 35
Message-ID: <usaipk$jjq3$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> <us9sao$erpl$1@dont-email.me>
<20240306161842.00001400@yahoo.com> <usafb2$irvm$1@dont-email.me>
<20240306114939.761@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Mar 2024 20:13:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="256997b038eaae4d9b037a8eaaf0cdaf";
logging-data="642883"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+u1E6aZDil69Ei4R1aDkrV8DLKWdXQhHE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Cd0pHvP9uVBJraLqa+HcARqmF/s=
In-Reply-To: <20240306114939.761@kylheku.com>
Content-Language: en-GB
 by: David Brown - Wed, 6 Mar 2024 20:13 UTC

On 06/03/2024 20:50, Kaz Kylheku wrote:
> On 2024-03-06, James Kuyper <jameskuyper@alumni.caltech.edu> wrote:
>> On 3/6/24 09:18, Michael S wrote:
>>> On Wed, 6 Mar 2024 13:50:16 +0000
>>> bart <bc@freeuk.com> wrote:
>> ...
>>>> 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
>>
>> Notice that in your following link, "en" appears at the beginning to
>> indicate the use of English. "simple" at the beginning of the above link
>> serves the same purpose. "Simple English" is it's own language, closely
>> related to standard English.
>
> Where is Simple English spoken? Is there some geographic area where
> native speakers concentrate?
>

It is meant to be simpler text, written in simpler language. The target
audience will include younger people, people with dyslexia or other
reading difficulties, learners of English, people with lower levels of
education, people with limited intelligence or learning impediments, or
simply people whose eyes glaze over when faced with long texts on the
main Wikipedia pages.

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

<20240307000008.00003544@yahoo.com>

  copy mid

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

  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: Thu, 7 Mar 2024 00:00:08 +0200
Organization: A noiseless patient Spider
Lines: 78
Message-ID: <20240307000008.00003544@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>
<20240306140214.0000449c@yahoo.com>
<us9nib$dski$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: dont-email.me; posting-host="89e3ba15c3c8ac9debb80aac290671c0";
logging-data="681642"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kN3yOZZ4rEwIzCW4VeFtSya80Ooeiy0k="
Cancel-Lock: sha1:V3wMyevXclNTBione8YEVwMFPFQ=
X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32)
 by: Michael S - Wed, 6 Mar 2024 22:00 UTC

On Wed, 6 Mar 2024 12:28:59 +0000
bart <bc@freeuk.com> wrote:

> 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.

Takes care of what?
AFAIK, heap fragmentation is as bad problem in Rust as it is in
C/Pascal/Ada etc... In this aspect Rust is clearly inferior to GC-based
languages like Java, C# or Go.

> 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"

<usapr6$l26r$1@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 14:13:58 -0800
Organization: A noiseless patient Spider
Lines: 68
Message-ID: <usapr6$l26r$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>
<us84q3$3vqtf$1@dont-email.me> <us9rdq$eiqh$2@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 22:13:58 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fcff1299cd5d92da2f89c86b84d41327";
logging-data="690395"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/h85nkpOXwzp5Ae0++3USo9mDh2vibZnc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mCy6VT5m4/Emaf0OQT8yGAJYass=
Content-Language: en-US
In-Reply-To: <us9rdq$eiqh$2@dont-email.me>
 by: Chris M. Thomasson - Wed, 6 Mar 2024 22:13 UTC

On 3/6/2024 5:34 AM, David Brown wrote:
> 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".
>

You jest whooshed over my head. Sorry! Humm, well, shit. ;^o

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

<usapsq$l26r$2@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 14:14:51 -0800
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <usapsq$l26r$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> <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 22:14:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fcff1299cd5d92da2f89c86b84d41327";
logging-data="690395"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+b1V8q4mYBUXtviXhO95udyvD3ENiTuvI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:htlxAndcGONnkboPKWjaCbquNWY=
Content-Language: en-US
In-Reply-To: <us9r86$eiqh$1@dont-email.me>
 by: Chris M. Thomasson - Wed, 6 Mar 2024 22:14 UTC

On 3/6/2024 5:31 AM, 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.
>

ADA = nothing
Ada = the language of Ada

Got it.

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

<usaq3v$l26r$3@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 14:18:39 -0800
Organization: A noiseless patient Spider
Lines: 156
Message-ID: <usaq3v$l26r$3@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> <us9hc9$b720$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 22:18:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="fcff1299cd5d92da2f89c86b84d41327";
logging-data="690395"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+VZ1mm+h/ROLheJXZRF4sCoOJFCv1p+es="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:zR/XBdk8J0egQfcug8XzU87Pn/s=
In-Reply-To: <us9hc9$b720$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Wed, 6 Mar 2024 22:18 UTC

On 3/6/2024 2:43 AM, David Brown wrote:
> 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.
>

Fair enough. :^)

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

<usb1lc$mbth$1@dont-email.me>

  copy mid

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

  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: jameskuy...@alumni.caltech.edu (James Kuyper)
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 19:27:24 -0500
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <usb1lc$mbth$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> <us9sao$erpl$1@dont-email.me>
<20240306161842.00001400@yahoo.com> <usafb2$irvm$1@dont-email.me>
<20240306114939.761@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 7 Mar 2024 00:27:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="cf3cb0d8cf82c152b9ce7e37dec5b8e2";
logging-data="733105"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Y4BevdiztaI7wHe8kwNhym2owqlwOuL8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+8DWELJ0R2wKddIzI5ENs7vqgSk=
Content-Language: en-US
In-Reply-To: <20240306114939.761@kylheku.com>
 by: James Kuyper - Thu, 7 Mar 2024 00:27 UTC

On 3/6/24 14:50, Kaz Kylheku wrote:
> On 2024-03-06, James Kuyper <jameskuyper@alumni.caltech.edu> wrote:
....
>> Notice that in your following link, "en" appears at the beginning to
>> indicate the use of English. "simple" at the beginning of the above link
>> serves the same purpose. "Simple English" is it's own language, closely
>> related to standard English.
>
> Where is Simple English spoken? Is there some geographic area where
> native speakers concentrate?

It's a constructed language, which probably has no native speakers. See
<https://en.wikipedia.org/wiki/Constructed_language>. Wikipedia has
articles in several constructed languages. The two biggest such
languages are Esperanto, with 350,598, and Simple English with 248,540.

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

<usb65o$n7qm$2@dont-email.me>

  copy mid

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

  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: Thu, 7 Mar 2024 01:44:25 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <usb65o$n7qm$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> <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
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Mar 2024 01:44:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="63d07f27dc2a6beb992a482a5dec0d77";
logging-data="761686"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ivNGPIhyoLxE0qr/VE+9z"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:fjJKTDF7aInGut0KyP6/kRpId9U=
 by: Lawrence D'Oliv - Thu, 7 Mar 2024 01:44 UTC

On Wed, 6 Mar 2024 14:02:14 +0200, Michael S wrote:

> 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.

In other words, a GC language could not even cope reasonably with a light
memory-management load.

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

<usb671$n7qm$3@dont-email.me>

  copy mid

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

  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: Thu, 7 Mar 2024 01:45:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <usb671$n7qm$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>
<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>
<us9nib$dski$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Mar 2024 01:45:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="63d07f27dc2a6beb992a482a5dec0d77";
logging-data="761686"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xovndaFulicJXXgsrucCf"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:UZ24Y0PAReicolxXBYG4HuZEUCs=
 by: Lawrence D'Oliv - Thu, 7 Mar 2024 01:45 UTC

On Wed, 6 Mar 2024 12:28:59 +0000, bart wrote:

> This suggests the language automatically takes care of this. But you
> have to write your programs in a certain way to make it possible.

You are forced to by default, because if you don’t follow the rules,
that’s a compile-time error.

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

<usb69e$n7qm$4@dont-email.me>

  copy mid

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

  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: Thu, 7 Mar 2024 01:46:22 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <usb69e$n7qm$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>
<us8821$90p$4@dont-email.me> <20240306140214.0000449c@yahoo.com>
<AhadnbI2nKS_43X4nZ2dnZfqnPWdnZ2d@supernews.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Mar 2024 01:46:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="63d07f27dc2a6beb992a482a5dec0d77";
logging-data="761686"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wGfHa0z1QY1gNB9Lo2OKm"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:jhE7UUn81IrcHGdDFXjlB3q0Fc0=
 by: Lawrence D'Oliv - Thu, 7 Mar 2024 01:46 UTC

On Wed, 06 Mar 2024 14:30:58 +0000, aph wrote:

> Continuously-compacting concurrent collectors like those available for
> Java aim for less than 10ms, and often hit 1ms.

What ... a 1ms potential delay every time you want to allocate a new
object??

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

<usb74f$ndi1$1@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 18:00:47 -0800
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <usb74f$ndi1$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>
<AhadnbI2nKS_43X4nZ2dnZfqnPWdnZ2d@supernews.com>
<usb69e$n7qm$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 7 Mar 2024 02:00:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9bbdb1b636f14cb51bd04c0cd916df55";
logging-data="767553"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kXKvEVpGIYpBubwugNoLvxZj6E6p2inM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:XUQyg8M2oDAHqLP9srUk9EqJN8g=
In-Reply-To: <usb69e$n7qm$4@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 7 Mar 2024 02:00 UTC

On 3/6/2024 5:46 PM, Lawrence D'Oliveiro wrote:
> On Wed, 06 Mar 2024 14:30:58 +0000, aph wrote:
>
>> Continuously-compacting concurrent collectors like those available for
>> Java aim for less than 10ms, and often hit 1ms.
>
> What ... a 1ms potential delay every time you want to allocate a new
> object??

GC can be a no go for certain schemes. GC can be fine and it has its place.

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

<20240306183330.115@kylheku.com>

  copy mid

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

  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: Thu, 7 Mar 2024 02:37:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <20240306183330.115@kylheku.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> <20240306140214.0000449c@yahoo.com>
<AhadnbI2nKS_43X4nZ2dnZfqnPWdnZ2d@supernews.com>
<usb69e$n7qm$4@dont-email.me> <usb74f$ndi1$1@dont-email.me>
Injection-Date: Thu, 7 Mar 2024 02:37:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d4c5da8a4cdb9a5a7101a267b3941499";
logging-data="778406"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XH5Wy5Hp6KYnbptr2SPrq5TcjPnmBkPk="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:z64eV1nhtzX4VwVaSsaTaqsrhHM=
 by: Kaz Kylheku - Thu, 7 Mar 2024 02:37 UTC

On 2024-03-07, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
> On 3/6/2024 5:46 PM, Lawrence D'Oliveiro wrote:
>> On Wed, 06 Mar 2024 14:30:58 +0000, aph wrote:
>>
>>> Continuously-compacting concurrent collectors like those available for
>>> Java aim for less than 10ms, and often hit 1ms.
>>
>> What ... a 1ms potential delay every time you want to allocate a new
>> object??
>
> GC can be a no go for certain schemes. GC can be fine and it has its place.

It is the situations where GC cannot be used that are niches that have
their place. Everywhere else, you can use GC.

--
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"

<usbb01$rnkd$1@dont-email.me>

  copy mid

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

  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: Thu, 7 Mar 2024 03:06:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <usbb01$rnkd$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> <us9sao$erpl$1@dont-email.me>
<20240306161842.00001400@yahoo.com> <usafb2$irvm$1@dont-email.me>
<20240306114939.761@kylheku.com> <usb1lc$mbth$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Mar 2024 03:06:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="63d07f27dc2a6beb992a482a5dec0d77";
logging-data="908941"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WpZHqfFyPJ0Ndk+fAShZW"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:Pc4fiaaAcdf0y9e5ZksR9RZPGdA=
 by: Lawrence D'Oliv - Thu, 7 Mar 2024 03:06 UTC

On Wed, 6 Mar 2024 19:27:24 -0500, James Kuyper wrote:

> It's a constructed language, which probably has no native speakers.

Not to be confused with Basic English, which was created, and copyrighted
by, C K Ogden.

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

<usbg7h$sjac$1@dont-email.me>

  copy mid

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

  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: Wed, 6 Mar 2024 20:36:01 -0800
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <usbg7h$sjac$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>
<AhadnbI2nKS_43X4nZ2dnZfqnPWdnZ2d@supernews.com>
<usb69e$n7qm$4@dont-email.me> <usb74f$ndi1$1@dont-email.me>
<20240306183330.115@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 7 Mar 2024 04:36:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9bbdb1b636f14cb51bd04c0cd916df55";
logging-data="937292"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+/TGGWHFAX+YVnJrdPNtltdJ0sN286rVU="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fSzmM1Vy0+IdCssmglwMbt/tOB8=
In-Reply-To: <20240306183330.115@kylheku.com>
Content-Language: en-US
 by: Chris M. Thomasson - Thu, 7 Mar 2024 04:36 UTC

On 3/6/2024 6:37 PM, Kaz Kylheku wrote:
> On 2024-03-07, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote:
>> On 3/6/2024 5:46 PM, Lawrence D'Oliveiro wrote:
>>> On Wed, 06 Mar 2024 14:30:58 +0000, aph wrote:
>>>
>>>> Continuously-compacting concurrent collectors like those available for
>>>> Java aim for less than 10ms, and often hit 1ms.
>>>
>>> What ... a 1ms potential delay every time you want to allocate a new
>>> object??
>>
>> GC can be a no go for certain schemes. GC can be fine and it has its place.
>
> It is the situations where GC cannot be used that are niches that have
> their place. Everywhere else, you can use GC.
>

Touche! :^)

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

<pan$a70d8$87691c69$40a7ae82$e9e5d0cd@invalid.invalid>

  copy mid

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

  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!bluemanedhawk.eternal-september.org!.POSTED!not-for-mail
From: bluemane...@invalid.invalid (Blue-Maned_Hawk)
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: "White House to Developers: Using C or C++ Invites Cybersecurity
Risks"
Date: Thu, 7 Mar 2024 06:46:46 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <pan$a70d8$87691c69$40a7ae82$e9e5d0cd@invalid.invalid>
References: <us0brl$246bf$1@dont-email.me> <us0m5r$25tj3$1@dont-email.me>
<us0qs9$2adp7$2@dont-email.me>
<pan$65c41$a9839f31$d08c6b33$ea3463ce@invalid.invalid>
<us2lh2$2ltj3$6@dont-email.me>
<pan$34b38$e07da3d7$ec6829a6$737b9404@invalid.invalid>
<us311p$2of1i$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Mar 2024 06:46:46 -0000 (UTC)
Injection-Info: bluemanedhawk.eternal-september.org; posting-host="46d286471d3490c7ac1021f358164255";
logging-data="978625"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ApL6Mgeb2x8kqfZ571I47KfhLq/L9Mc4="
User-Agent: Pan/0.154 (Izium; 517acf4)
Cancel-Lock: sha1:dKVwJCXKR5DIoR6KACqsKZDGwns=
X-Face: LlanfairÂÂÂÂÂÂÂ
­pwllgwyngyllÂÂÂÂÂÃ
‚Â
? ?gogery­chwy
rn
­drobwllÃ
ƒƒƒ‚­llanÂ
? ?ƒƒƒƒ‚­tysilioÂÃ
? ?ƒ‚­gogoÂÂÃ
ƒƒ‚­goch
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACh0lEQVRYw71Z21bD
MAzzevbfkr4cHjrSXJyL044+MDa6WLEl2SkvkrZ1AbAvXO+bUGSCPYnsuIVGMpm
ZLnjX718GhAKNsp8lON2F9VrhELwIgJlBepkZjA78rVK+FkmNhEJK76UsJlz8+E
rJsjrpYouhLo/SC6qPHgakFOR8wV9+8rCfO/I/oVnmUZUp42/LW2XkLj9TCFNM9
jp5g2EmHZgpYZjCOkYU7sXVogRylJqpdggoFLG1g09Flah/7kErCxzR9HgXPYsq
0glb9cxjIz2Vsk9AmAoCSxECpD713joMKjQqLAtmMqJmXjdVvlMnMQCVITotJd1
z+fh1f1NNo+vuc1KnhWUmY7t03vydTud9BbXCtN3L2PL3bK7JCNG0GHzuZxafyB
fxevCxpm1vrwZltqw6SILCcdoCE6PGQC8wZWDA9Or7Qp5s3lAZezys0nDazs9S9
R0TjwEiksRxLkNPC1NMMWPs1bj0Ei0Yuo+JVtFLuzP1NRJ16qXWN8DhhtmS4PDg
O6mqRxs4bEJrYt087mSIow/1VzW2oFlMQuiuIy/KsUagvhdw6hSjJGlIavbLF8x
j3X47bccLcUSi0dkWh1nUZNhANT1tHKUXrNxNLbd9KPb9wDDVrKwmPQMOPQ1oy6
k5I1DwzDeRJd3jVIhDAUxq3ngzJG4CCkNXZxZVMcjefoK2J0gUY2S3rxz/RuTFx
2zHd9U+obimJXMG4edsk/2j5pTU5G1MmzbRLxkfq5EiT1GGsidvMGzi+1goGb2l
GCrN+nGnV8xj3q3JLRDVPL96vUc7Z4aJ3TN1mVqWAMJMfG+Jxh6TQqP+92iZkCU
xtglds1AB6r0aiSHKcnFck+p/c/0CbacFLQcajGcAAAAASUVORK5CYII=
 by: Blue-Maned_Hawk - Thu, 7 Mar 2024 06:46 UTC

Lawrence D'Oliveiro wrote:

> On Sun, 3 Mar 2024 22:11:14 -0000 (UTC), Blue-Maned_Hawk wrote:
>
>> Lawrence D'Oliveiro wrote:
>>
>>> On Sun, 3 Mar 2024 08:54:36 -0000 (UTC), Blue-Maned_Hawk wrote:
>>>
>>>> I do not want to live in a web-centric world.
>>>
>>> You already do.
>>
>> That does not change the veracity of my statement.
>
> That doesn’t change the veracity of mine.

Then our collective fingertips have done nothing in their plasticsmacking.

--
Blue-Maned_Hawk│shortens to
Hawk│/
blu.mɛin.dÊ°ak/
│he/him/his/himself/Mr.
blue-maned_hawk.srht.site
FORE!

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

<usc58s$10cls$1@dont-email.me>

  copy mid

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

  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: Thu, 7 Mar 2024 11:35:08 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <usc58s$10cls$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>
<us9nib$dski$1@dont-email.me> <20240307000008.00003544@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Mar 2024 10:35:08 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="245d9d51a5b8141454201d689c1fd16e";
logging-data="1061564"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GbNkqFuAasfpz/MQOVSWzoMoNi5vmges="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:hKhxbXbhl1cGT2dnYy5W/hPX/Nw=
In-Reply-To: <20240307000008.00003544@yahoo.com>
Content-Language: en-GB
 by: David Brown - Thu, 7 Mar 2024 10:35 UTC

On 06/03/2024 23:00, Michael S wrote:
> On Wed, 6 Mar 2024 12:28:59 +0000
> bart <bc@freeuk.com> wrote:
>
>>
>> "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.
>
> Takes care of what?
> AFAIK, heap fragmentation is as bad problem in Rust as it is in
> C/Pascal/Ada etc... In this aspect Rust is clearly inferior to GC-based
> languages like Java, C# or Go.
>
Garbage collection does not stop heap fragmentation. GC does, I
suppose, mean that you need much more memory and bigger heaps in
proportion to the amount of memory you actually need in the program at
any given time, and having larger heaps reduces fragmentation (or at
least reduces the consequences of it).

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

<20240307134401.00007aa2@yahoo.com>

  copy mid

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

  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: Thu, 7 Mar 2024 13:44:01 +0200
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <20240307134401.00007aa2@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>
<20240306140214.0000449c@yahoo.com>
<us9nib$dski$1@dont-email.me>
<20240307000008.00003544@yahoo.com>
<usc58s$10cls$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: dont-email.me; posting-host="efb7d41ba468e3312d50ab92a630b576";
logging-data="1078572"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1911ebFpcrMpdIW8KYPScK/HIsEmlmKG8Q="
Cancel-Lock: sha1:UPoWtCtq2p1WZYx2jwxlc2rOX+Y=
X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32)
 by: Michael S - Thu, 7 Mar 2024 11:44 UTC

On Thu, 7 Mar 2024 11:35:08 +0100
David Brown <david.brown@hesbynett.no> wrote:

> On 06/03/2024 23:00, Michael S wrote:
> > On Wed, 6 Mar 2024 12:28:59 +0000
> > bart <bc@freeuk.com> wrote:
> >
> >>
> >> "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.
> >
> > Takes care of what?
> > AFAIK, heap fragmentation is as bad problem in Rust as it is in
> > C/Pascal/Ada etc... In this aspect Rust is clearly inferior to
> > GC-based languages like Java, C# or Go.
> >
> Garbage collection does not stop heap fragmentation. GC does, I
> suppose, mean that you need much more memory and bigger heaps in
> proportion to the amount of memory you actually need in the program
> at any given time, and having larger heaps reduces fragmentation (or
> at least reduces the consequences of it).
>

GC does not stop fragmentation, but it allow heap compaction to be
built-in part of environment. So, it turns heap fragmentation
from denial of service type of problem to mere slowdown, hopefully
insignificant slowdown.
I don't say that heap compaction is impossible in other environments,
but it is much harder, esp. in environments where pointers are visible
to programmer. The famous David Wheeler's quote applies here at full
force.
Also when non-GC environments chooses to implement heap compaction they
suffer the same or bigger impact to real-time responsiveness as GC.
So, although I don't know it for sure, my impression is that generic
heap compaction extremely rarely implemented in performance-aware
non-GC environments.
Performance-neglecting non-GC environments, first and foremost CPython,
can, of course, have heap compaction, although my googling didn't give
me a definite answer whether it's done or not.

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

<uscmub$149j3$1@dont-email.me>

  copy mid

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

  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: Thu, 7 Mar 2024 16:36:43 +0100
Organization: A noiseless patient Spider
Lines: 90
Message-ID: <uscmub$149j3$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>
<us9nib$dski$1@dont-email.me> <20240307000008.00003544@yahoo.com>
<usc58s$10cls$1@dont-email.me> <20240307134401.00007aa2@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Mar 2024 15:36:43 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="245d9d51a5b8141454201d689c1fd16e";
logging-data="1189475"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/aUq+Gq3GY9bgDnNRmJQNYWx6MDEjAO3g="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:qb5AZGgFEYQkWTnuqv0mXCJykQ4=
In-Reply-To: <20240307134401.00007aa2@yahoo.com>
Content-Language: en-GB
 by: David Brown - Thu, 7 Mar 2024 15:36 UTC

On 07/03/2024 12:44, Michael S wrote:
> On Thu, 7 Mar 2024 11:35:08 +0100
> David Brown <david.brown@hesbynett.no> wrote:
>
>> On 06/03/2024 23:00, Michael S wrote:
>>> On Wed, 6 Mar 2024 12:28:59 +0000
>>> bart <bc@freeuk.com> wrote:
>>>
>>>>
>>>> "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.
>>>
>>> Takes care of what?
>>> AFAIK, heap fragmentation is as bad problem in Rust as it is in
>>> C/Pascal/Ada etc... In this aspect Rust is clearly inferior to
>>> GC-based languages like Java, C# or Go.
>>>
>> Garbage collection does not stop heap fragmentation. GC does, I
>> suppose, mean that you need much more memory and bigger heaps in
>> proportion to the amount of memory you actually need in the program
>> at any given time, and having larger heaps reduces fragmentation (or
>> at least reduces the consequences of it).
>>
>
> GC does not stop fragmentation, but it allow heap compaction to be
> built-in part of environment.

No, GC alone does not do that. But heap compaction is generally done as
part of a GC cycle.

Heap compaction requires indirect pointers. That is to say, if you have
a struct "node" on your heap, your code does not use a "node *" pointer
that points to it. It has a "node_proxy *" pointer, and the
"node_proxy" struct points to the actual node. Heap compaction moves
the real node in memory, and updates the proxy with the new real
address, while the main program uses the same "node_proxy" address.
(These proxies, or indirect pointers, do not move during heap
compaction.) And the main program needs to be careful to access the
data via the proxy, and re-read the proxy after every heap compaction cycle.

This is not going to work well with a low-level and efficient language -
the extra accesses can be a significant burden for a language like C and
C++. But it can be fine for VM-based high-level languages, where the
overhead is lost in the noise, and where the VM knows when the heap
compaction has run and it needs to re-read the proxies.

> So, it turns heap fragmentation
> from denial of service type of problem to mere slowdown, hopefully
> insignificant slowdown.

For high-level VM based languages, that could be correct. But low-level
compiled and optimised languages are dependent on addresses remaining
valid, so heap compaction is not an option.

(An OS on a "big" system with an MMU can move memory pages around and
change the virtual to physical memory mapping to get more efficient use
of hierarchical virtual memory or to free up contiguous large page
areas. That is transparent to the user application code.)

> I don't say that heap compaction is impossible in other environments,
> but it is much harder, esp. in environments where pointers are visible
> to programmer. The famous David Wheeler's quote applies here at full
> force.
> Also when non-GC environments chooses to implement heap compaction they
> suffer the same or bigger impact to real-time responsiveness as GC.

Agreed.

> So, although I don't know it for sure, my impression is that generic
> heap compaction extremely rarely implemented in performance-aware
> non-GC environments.

I think that is likely.

> Performance-neglecting non-GC environments, first and foremost CPython,
> can, of course, have heap compaction, although my googling didn't give
> me a definite answer whether it's done or not.
>

CPython does use garbage collection, as far as I know.

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

<20240307083119.850@kylheku.com>

  copy mid

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

  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: Thu, 7 Mar 2024 16:35:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <20240307083119.850@kylheku.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> <20240306140214.0000449c@yahoo.com>
<us9nib$dski$1@dont-email.me> <20240307000008.00003544@yahoo.com>
<usc58s$10cls$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Mar 2024 16:35:48 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d4c5da8a4cdb9a5a7101a267b3941499";
logging-data="1209870"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Fatc1PiPWBGivpC5V5auNT2NpJ2u/cis="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:zc6GgCUEdlkSr/Pwno2pxJH1zy0=
 by: Kaz Kylheku - Thu, 7 Mar 2024 16:35 UTC

On 2024-03-07, David Brown <david.brown@hesbynett.no> wrote:
> On 06/03/2024 23:00, Michael S wrote:
>> On Wed, 6 Mar 2024 12:28:59 +0000
>> bart <bc@freeuk.com> wrote:
>>
>>>
>>> "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.
>>
>> Takes care of what?
>> AFAIK, heap fragmentation is as bad problem in Rust as it is in
>> C/Pascal/Ada etc... In this aspect Rust is clearly inferior to GC-based
>> languages like Java, C# or Go.
>>
> Garbage collection does not stop heap fragmentation. GC does, I
> suppose, mean that you need much more memory and bigger heaps in
> proportion to the amount of memory you actually need in the program at
> any given time, and having larger heaps reduces fragmentation (or at
> least reduces the consequences of it).

Copying garbage collectors literally stop fragmentation. Reachable
objects are identified and moved to a memory partition where they
are now adjacent. The vacated memory partition is then efficiently used
to bump-allocate new objects.

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


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