Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

HOST SYSTEM NOT RESPONDING, PROBABLY DOWN. DO YOU WANT TO WAIT? (Y/N)


devel / comp.lang.c / "C and C++ Prioritize Performance over Correctness" by Russ Cox

SubjectAuthor
* "C and C++ Prioritize Performance over Correctness" by Russ CoxLynn McGuire
+* Re: "C and C++ Prioritize Performance over Correctness" by Russ Coxfir
|`* Re: "C and C++ Prioritize Performance over Correctness" by Russ Coxfir
| `- Re: "C and C++ Prioritize Performance over Correctness" by Russ Coxfir
`- Re: "C and C++ Prioritize Performance over Correctness" by Russ CoxMichael S

1
"C and C++ Prioritize Performance over Correctness" by Russ Cox

<uc0oqb$22vo2$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c++ comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lynnmcgu...@gmail.com (Lynn McGuire)
Newsgroups: comp.lang.c++,comp.lang.c
Subject: "C and C++ Prioritize Performance over Correctness" by Russ Cox
Date: Mon, 21 Aug 2023 17:34:51 -0500
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <uc0oqb$22vo2$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 21 Aug 2023 22:34:51 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f770290c290d6a2a9d633bcc93a3ecb4";
logging-data="2195202"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Xe6FtdmFfkkfaZxFgIBGznOD+kPXBeOc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:SyfKIgzuqiYGvTMLY7IKLCJeJL0=
Content-Language: en-US
 by: Lynn McGuire - Mon, 21 Aug 2023 22:34 UTC

"C and C++ Prioritize Performance over Correctness" by Russ Cox
https://research.swtch.com/ub

"The original ANSI C standard, C89, introduced the concept of “undefined
behavior,” which was used both to describe the effect of outright bugs
like accessing memory in a freed object and also to capture the fact
that existing implementations differed about handling certain aspects of
the language, including use of uninitialized values, signed integer
overflow, and null pointer handling."

"The C89 spec defined undefined behavior (in section 1.6) as:
Undefined behavior—behavior, upon use of a nonportable or erroneous
program construct, of erroneous data, or of indeterminately-valued
objects, for which the Standard imposes no requirements. Permissible
undefined behavior ranges from ignoring the situation completely with
unpredictable results, to behaving during translation or program
execution in a documented manner characteristic of the environment (with
or without the issuance of a diagnostic message), to terminating a
translation or execution (with the issuance of a diagnostic message)."

"Lumping both non-portable and buggy code into the same category was a
mistake. As time has gone on, the way compilers treat undefined behavior
has led to more and more unexpectedly broken programs, to the point
where it is becoming difficult to tell whether any program will compile
to the meaning in the original source. This post looks at a few examples
and then tries to make some general observations. In particular, today’s
C and C++ prioritize performance to the clear detriment of correctness."

In other news, water is wet.

Lynn

Re: "C and C++ Prioritize Performance over Correctness" by Russ Cox

<ed56cf55-9304-4ed7-b39a-3eadaca6783dn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:7d03:0:b0:3ff:3013:d2b0 with SMTP id g3-20020ac87d03000000b003ff3013d2b0mr71864qtb.0.1692704018169;
Tue, 22 Aug 2023 04:33:38 -0700 (PDT)
X-Received: by 2002:a63:6d0d:0:b0:565:d4f9:dc39 with SMTP id
i13-20020a636d0d000000b00565d4f9dc39mr1385018pgc.9.1692704017859; Tue, 22 Aug
2023 04:33:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Aug 2023 04:33:37 -0700 (PDT)
In-Reply-To: <uc0oqb$22vo2$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.113; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.113
References: <uc0oqb$22vo2$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ed56cf55-9304-4ed7-b39a-3eadaca6783dn@googlegroups.com>
Subject: Re: "C and C++ Prioritize Performance over Correctness" by Russ Cox
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 22 Aug 2023 11:33:38 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2596
 by: fir - Tue, 22 Aug 2023 11:33 UTC

wtorek, 22 sierpnia 2023 o 00:35:05 UTC+2 Lynn McGuire napisał(a):
> "C and C++ Prioritize Performance over Correctness" by Russ Cox

generally such sentences as ""C and C++ Prioritize Performance over Correctness"
are ponys thinking and ponys are wrong...ponys belive in abstract belifs /rules that are wrong

here the idea of c being somewhat genaral language is one of the ideas that are wiser than me imo (and those are special ideas for me becouse ideas that cros over (out) my thinking are special feeling... i wonder if c would look like if i got much more ideas that croses out my mind)

generally i personally i got no troubles with UB i just ignore them, imo the UB probably should just rise warnings esp if some wopuld use soem flag "warning on all undefined behaviours"

thinking that c will allow writing fully portable code on platforms some dont know is imo rather unrealistic (unles maybe c would need to define a wider space of things allowing writing much moire things in defined way - otherwise c code
simply uses non-portabel apis so its not portable) - but c could help
and the idea it helps its rather nice idea i guess

(overally i must say im sad as i feel my skills for logical comprehension of things - some that i got usually high, feels like it dropped down...this may be kinda problem of getting being more idiot (less logic comprehension) when getting old)

Re: "C and C++ Prioritize Performance over Correctness" by Russ Cox

<fd12233c-0e45-41d5-b9fe-b16272e249cdn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:ef16:0:b0:76d:9c62:4eeb with SMTP id j22-20020a37ef16000000b0076d9c624eebmr78258qkk.2.1692704205727;
Tue, 22 Aug 2023 04:36:45 -0700 (PDT)
X-Received: by 2002:a17:90a:c7c4:b0:268:9cfa:171c with SMTP id
gf4-20020a17090ac7c400b002689cfa171cmr1942934pjb.4.1692704205219; Tue, 22 Aug
2023 04:36:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Aug 2023 04:36:44 -0700 (PDT)
In-Reply-To: <ed56cf55-9304-4ed7-b39a-3eadaca6783dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.113; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.113
References: <uc0oqb$22vo2$1@dont-email.me> <ed56cf55-9304-4ed7-b39a-3eadaca6783dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fd12233c-0e45-41d5-b9fe-b16272e249cdn@googlegroups.com>
Subject: Re: "C and C++ Prioritize Performance over Correctness" by Russ Cox
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 22 Aug 2023 11:36:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 17
 by: fir - Tue, 22 Aug 2023 11:36 UTC

wtorek, 22 sierpnia 2023 o 13:33:46 UTC+2 fir napisał(a):
> wtorek, 22 sierpnia 2023 o 00:35:05 UTC+2 Lynn McGuire napisał(a):
> > "C and C++ Prioritize Performance over Correctness" by Russ Cox
> generally such sentences as ""C and C++ Prioritize Performance over Correctness"
> are ponys thinking and ponys are wrong...ponys belive in abstract belifs /rules that are wrong
>
i think even initially c was language that was "outa" ponys world and that makes it maybe so special thing in world

as i said i see in c personally ideas that are outa my mind this way i may say c looks like

1) pony languages and ideas (most of languages)
2) C as i see and understand it
3) C parts that are outa my mind

Re: "C and C++ Prioritize Performance over Correctness" by Russ Cox

<79300929-9993-4962-bb99-1d8da6c02f1en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:5814:0:b0:410:684:c3af with SMTP id g20-20020ac85814000000b004100684c3afmr72090qtg.6.1692704457592;
Tue, 22 Aug 2023 04:40:57 -0700 (PDT)
X-Received: by 2002:a17:90b:a56:b0:26d:2b7d:7871 with SMTP id
gw22-20020a17090b0a5600b0026d2b7d7871mr2389417pjb.3.1692704457359; Tue, 22
Aug 2023 04:40:57 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.1d4.us!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Aug 2023 04:40:56 -0700 (PDT)
In-Reply-To: <fd12233c-0e45-41d5-b9fe-b16272e249cdn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.113; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.113
References: <uc0oqb$22vo2$1@dont-email.me> <ed56cf55-9304-4ed7-b39a-3eadaca6783dn@googlegroups.com>
<fd12233c-0e45-41d5-b9fe-b16272e249cdn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <79300929-9993-4962-bb99-1d8da6c02f1en@googlegroups.com>
Subject: Re: "C and C++ Prioritize Performance over Correctness" by Russ Cox
From: profesor...@gmail.com (fir)
Injection-Date: Tue, 22 Aug 2023 11:40:57 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2411
 by: fir - Tue, 22 Aug 2023 11:40 UTC

wtorek, 22 sierpnia 2023 o 13:36:54 UTC+2 fir napisał(a):
> wtorek, 22 sierpnia 2023 o 13:33:46 UTC+2 fir napisał(a):
> > wtorek, 22 sierpnia 2023 o 00:35:05 UTC+2 Lynn McGuire napisał(a):
> > > "C and C++ Prioritize Performance over Correctness" by Russ Cox
> > generally such sentences as ""C and C++ Prioritize Performance over Correctness"
> > are ponys thinking and ponys are wrong...ponys belive in abstract belifs /rules that are wrong
> >
> i think even initially c was language that was "outa" ponys world and that makes it maybe so special thing in world
>
> as i said i see in c personally ideas that are outa my mind this way i may say c looks like
>
> 1) pony languages and ideas (most of languages)
> 2) C as i see and understand it
> 3) C parts that are outa my mind

possibly this "outa c" parts are more far to assembly than my own thinking as i probably think my thinking is probably more close to pascal and assembly
- and this "outa c" (which i sometimes mention) is a big amazing world of ideas im not to comprehand

Re: "C and C++ Prioritize Performance over Correctness" by Russ Cox

<5c1b803b-f566-4974-9811-d13bcbad83e6n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:1311:b0:412:1e76:f3e0 with SMTP id v17-20020a05622a131100b004121e76f3e0mr338073qtk.2.1693309241391;
Tue, 29 Aug 2023 04:40:41 -0700 (PDT)
X-Received: by 2002:ad4:4d48:0:b0:63f:bfce:3838 with SMTP id
m8-20020ad44d48000000b0063fbfce3838mr865382qvm.11.1693309241213; Tue, 29 Aug
2023 04:40:41 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 29 Aug 2023 04:40:41 -0700 (PDT)
In-Reply-To: <uc0oqb$22vo2$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=199.203.251.52; posting-account=ow8VOgoAAAAfiGNvoH__Y4ADRwQF1hZW
NNTP-Posting-Host: 199.203.251.52
References: <uc0oqb$22vo2$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5c1b803b-f566-4974-9811-d13bcbad83e6n@googlegroups.com>
Subject: Re: "C and C++ Prioritize Performance over Correctness" by Russ Cox
From: already5...@yahoo.com (Michael S)
Injection-Date: Tue, 29 Aug 2023 11:40:41 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Michael S - Tue, 29 Aug 2023 11:40 UTC

nothing

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor