Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If I had only known, I would have been a locksmith. -- Albert Einstein


devel / comp.lang.c / Re: you think rust may *DE*throne c?

SubjectAuthor
* you think rust may outthrone c?fir
`* Re: you think rust may outthrone c?Blue-Maned_Hawk
 +- Re: you think rust may outthrone c?jak
 +* Re: you think rust may outthrone c?fir
 |`- Re: you think rust may outthrone c?fir
 +* Re: you think rust may outthrone c?rek2 hispagatos
 |`* Re: you think rust may outthrone c?Kaz Kylheku
 | `* Re: you think rust may outthrone c?Kalevi Kolttonen
 |  +* Re: you think rust may outthrone c?Scott Lurndal
 |  |`* Re: you think rust may outthrone c?Kalevi Kolttonen
 |  | +- Re: you think rust may outthrone c?Kaz Kylheku
 |  | +* Re: you think rust may outthrone c?Bart
 |  | |`* Re: you think rust may outthrone c?Kalevi Kolttonen
 |  | | +* Re: you think rust may outthrone c?Bart
 |  | | |+* Re: you think rust may outthrone c?Kalevi Kolttonen
 |  | | ||`* Re: you think rust may outthrone c?Kaz Kylheku
 |  | | || `- Re: you think rust may outthrone c?Kalevi Kolttonen
 |  | | |`* Re: you think rust may outthrone c?David Brown
 |  | | | `* Re: you think rust may outthrone c?Kalevi Kolttonen
 |  | | |  +* Re: you think rust may outthrone c?David Brown
 |  | | |  |`* Re: you think rust may outthrone c?Kaz Kylheku
 |  | | |  | `- Re: you think rust may outthrone c?Kalevi Kolttonen
 |  | | |  `* Re: you think rust may outthrone c?Kaz Kylheku
 |  | | |   `* Re: you think rust may outthrone c?Kalevi Kolttonen
 |  | | |    `* Re: you think rust may outthrone c?David Brown
 |  | | |     +* Re: you think rust may outthrone c?Scott Lurndal
 |  | | |     |`- Re: you think rust may outthrone c?Keith Thompson
 |  | | |     `* Re: you think rust may outthrone c?Keith Thompson
 |  | | |      +- Re: you think rust may outthrone c?David Brown
 |  | | |      `* Re: you think rust may outthrone c?Malcolm McLean
 |  | | |       `* Re: you think rust may outthrone c?David Brown
 |  | | |        `* Re: you think rust may outthrone c?Malcolm McLean
 |  | | |         `* Re: you think rust may outthrone c?David Brown
 |  | | |          +- Re: you think rust may outthrone c?fir
 |  | | |          +* Re: you think rust may outthrone c?fir
 |  | | |          |`* Re: you think rust may outthrone c?fir
 |  | | |          | `- Re: you think rust may outthrone c?fir
 |  | | |          `* Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |           `* Re: you think rust may outthrone c?Bart
 |  | | |            +* Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |            |`* Re: you think rust may outthrone c?Malcolm McLean
 |  | | |            | +* Re: you think rust may outthrone c?David Brown
 |  | | |            | |+* Re: you think rust may outthrone c?Malcolm McLean
 |  | | |            | ||+* Re: you think rust may outthrone c?David Brown
 |  | | |            | |||+* Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |            | ||||`* Re: you think rust may outthrone c?Tim Rentsch
 |  | | |            | |||| `- Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |            | |||`* Re: you think rust may outthrone c?Bart
 |  | | |            | ||| +- Re: you think rust may outthrone c?Malcolm McLean
 |  | | |            | ||| `- Re: you think rust may outthrone c?David Brown
 |  | | |            | ||`- Re: you think rust may outthrone c?Scott Lurndal
 |  | | |            | |`* Re: you think rust may outthrone c?Kaz Kylheku
 |  | | |            | | +- Re: you think rust may outthrone c?David Brown
 |  | | |            | | `* Re: you think rust may outthrone c?jak
 |  | | |            | |  `* Re: you think rust may outthrone c?Kaz Kylheku
 |  | | |            | |   +- Re: you think rust may outthrone c?jak
 |  | | |            | |   `- Re: you think rust may outthrone c?Tim Rentsch
 |  | | |            | `* Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |            |  `* Re: you think rust may outthrone c?Malcolm McLean
 |  | | |            |   +- Re: you think rust may outthrone c?David Brown
 |  | | |            |   `- Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |            `* Re: you think rust may outthrone c?David Brown
 |  | | |             `* Re: you think rust may outthrone c?fir
 |  | | |              +* Re: you think rust may outthrone c?Chris M. Thomasson
 |  | | |              |`* Re: you think rust may outthrone c?David Brown
 |  | | |              | +* Re: you think rust may outthrone c?Chris M. Thomasson
 |  | | |              | |+* Re: you think rust may outthrone c?Chris M. Thomasson
 |  | | |              | ||+- Re: you think rust may outthrone c?Chris M. Thomasson
 |  | | |              | ||+* Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |              | |||`- Re: you think rust may outthrone c?Chris M. Thomasson
 |  | | |              | ||`- Re: you think rust may outthrone c?fir
 |  | | |              | |`- Re: you think rust may outthrone c?Bart
 |  | | |              | `- Re: you think rust may outthrone c?Chris M. Thomasson
 |  | | |              `* Re: you think rust may outthrone c?fir
 |  | | |               `* Re: you think rust may outthrone c?Bart
 |  | | |                +* Re: you think rust may outthrone c?Keith Thompson
 |  | | |                |+* Re: you think rust may outthrone c?Bart
 |  | | |                ||+* Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |                |||`* Re: you think rust may outthrone c?Bart
 |  | | |                ||| +- Re: you think rust may outthrone c?Kaz Kylheku
 |  | | |                ||| +* Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |                ||| |+* Re: you think rust may outthrone c?David Brown
 |  | | |                ||| ||+- Re: you think rust may outthrone c?Bart
 |  | | |                ||| ||`* Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |                ||| || `* Re: you think rust may outthrone c?David Brown
 |  | | |                ||| ||  `* Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |                ||| ||   +* Re: you think rust may outthrone c?David Brown
 |  | | |                ||| ||   |`* Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |                ||| ||   | `* Re: you think rust may outthrone c?David Brown
 |  | | |                ||| ||   |  `- Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |                ||| ||   `* Re: you think rust may outthrone c?Kaz Kylheku
 |  | | |                ||| ||    `- Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |                ||| |+* Re: you think rust may outthrone c?Bart
 |  | | |                ||| ||+* Re: you think rust may outthrone c?Ike Naar
 |  | | |                ||| |||`- Re: you think rust may outthrone c?Bart
 |  | | |                ||| ||+* Re: you think rust may outthrone c?David Brown
 |  | | |                ||| |||`* Re: you think rust may outthrone c?Bart
 |  | | |                ||| ||| `- Re: you think rust may outthrone c?David Brown
 |  | | |                ||| ||`* Re: you think rust may outthrone c?Ben Bacarisse
 |  | | |                ||| || +- Re: you think rust may outthrone c?Kaz Kylheku
 |  | | |                ||| || +* Re: you think rust may outthrone c?Malcolm McLean
 |  | | |                ||| || `* Re: you think rust may outthrone c?Bart
 |  | | |                ||| |`* Re: you think rust may outthrone c?Scott Lurndal
 |  | | |                ||| `* Re: you think rust may outthrone c?Keith Thompson
 |  | | |                ||`- Re: you think rust may outthrone c?Keith Thompson
 |  | | |                |`* Re: you think rust may outthrone c?Kaz Kylheku
 |  | | |                `* Re: you think rust may outthrone c?fir
 |  | | +* Yeah, C is harder than many programming languages. Your point? (Was: you think Kenny McCormack
 |  | | +* Re: you think rust may outthrone c?Po Lu
 |  | | `* Re: you think rust may outthrone c?Kaz Kylheku
 |  | +* Re: you think rust may outthrone c?David Brown
 |  | `- Re: you think rust may outthrone c?Po Lu
 |  `* Re: you think rust may outthrone c?Anton Shepelev
 `* Re: you think rust may outthrone c?Bonita Montero

Pages:123456789101112131415161718192021222324252627282930313233343536373839
Re: you think rust may outthrone c?

<afe517cb-5b61-463f-91d1-757694a5ac5cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:5a07:0:b0:763:a948:cfc8 with SMTP id o7-20020a375a07000000b00763a948cfc8mr19229qkb.12.1690114460954;
Sun, 23 Jul 2023 05:14:20 -0700 (PDT)
X-Received: by 2002:a05:6870:d8b2:b0:1bb:4593:ee09 with SMTP id
dv50-20020a056870d8b200b001bb4593ee09mr2947147oab.9.1690114460652; Sun, 23
Jul 2023 05:14:20 -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: Sun, 23 Jul 2023 05:14:20 -0700 (PDT)
In-Reply-To: <3d089247-cc70-4678-8adc-4c56b3f9d61bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.31; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.31
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u8o2jf$3isv1$1@bluemanedhawk.eternal-september.org> <u93q47$19p2n$1@dont-email.me>
<u95q1j$1k1sq$1@bluemanedhawk.eternal-september.org> <u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org> <u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org> <u9bg5f$2o9ci$1@dont-email.me>
<u9bs1u$2qj43$1@dont-email.me> <u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me> <u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me> <u9gmvs$3r01u$1@dont-email.me>
<u9gp9e$3rdi9$2@dont-email.me> <u9gtpa$3s5qr$1@dont-email.me>
<u9gvro$3sgmi$2@dont-email.me> <552dfa05-1217-46cd-a6b7-5f5c125d9f54n@googlegroups.com>
<u9hvqj$kde$2@dont-email.me> <6903bbdb-af0d-46a2-a0bc-4eecf3a038e6n@googlegroups.com>
<u9j3pk$84iu$1@dont-email.me> <3d089247-cc70-4678-8adc-4c56b3f9d61bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <afe517cb-5b61-463f-91d1-757694a5ac5cn@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 23 Jul 2023 12:14:20 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Sun, 23 Jul 2023 12:14 UTC

niedziela, 23 lipca 2023 o 14:03:42 UTC+2 fir napisał(a):
> niedziela, 23 lipca 2023 o 13:44:05 UTC+2 Bonita Montero napisał(a):
> > Am 23.07.2023 um 09:52 schrieb fir:
> > > niedziela, 23 lipca 2023 o 03:30:09 UTC+2 Bonita Montero napisał(a):
> > >> Am 22.07.2023 um 23:07 schrieb fir:
> > >>
> > >>> sure as efficient as possinle, what with i once give example of how this pony fast is
> > >> Why should you have given such an example ? You're not aware
> > >> what C++ does for you because you don't unterstand the language.
> > >
> > >
> > > it is counter example for your belifs...
> > If things would be easier in C than in C++ people woudln't use C++.
> its your belif... have you seen concept of reasoning? this is concept saying you shouldnt belive in random things : like a lot of statemants which are lies and you post (liek im nervous (im quite calm, but my ear hurts me recently, jm happy Jankos win on KOI etc), i cant programming, " If things would be easier in C than in C++ people woudln't use C++." and many other belifs with no justification
>
> you dont fear lies so you live in lies - thats sad but its more your problem than mine, you also spred lies here which in turn is troll activity
> > The opposite is the truth. The language is more complex but solving
> > actual problems becomes much more manageable because you won't need
> > to deal with the same problems in detail over and over.

note btw im not exactly say easier.. i more say "better" (originally it was yet on something other it was a negation of some false statement) , ... it doesnt necessary mean using c-way is not easier coz this easier has many meaning and many contexts (for exampel it may be easier if you elarn something but it may be harder to learn something if you then want to use it easier..e.asier depends on many things)

Re: you think rust may outthrone c?

<50631f4f-a0dc-494e-8a9f-223a0f547071n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:1804:b0:400:a783:f746 with SMTP id t4-20020a05622a180400b00400a783f746mr18865qtc.0.1690115481003;
Sun, 23 Jul 2023 05:31:21 -0700 (PDT)
X-Received: by 2002:a05:6870:7687:b0:1b0:2f63:4ff5 with SMTP id
dx7-20020a056870768700b001b02f634ff5mr8635347oab.1.1690115480741; Sun, 23 Jul
2023 05:31:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.neodome.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!peer02.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: Sun, 23 Jul 2023 05:31:20 -0700 (PDT)
In-Reply-To: <3d089247-cc70-4678-8adc-4c56b3f9d61bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.39; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.39
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u8o2jf$3isv1$1@bluemanedhawk.eternal-september.org> <u93q47$19p2n$1@dont-email.me>
<u95q1j$1k1sq$1@bluemanedhawk.eternal-september.org> <u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org> <u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org> <u9bg5f$2o9ci$1@dont-email.me>
<u9bs1u$2qj43$1@dont-email.me> <u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me> <u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me> <u9gmvs$3r01u$1@dont-email.me>
<u9gp9e$3rdi9$2@dont-email.me> <u9gtpa$3s5qr$1@dont-email.me>
<u9gvro$3sgmi$2@dont-email.me> <552dfa05-1217-46cd-a6b7-5f5c125d9f54n@googlegroups.com>
<u9hvqj$kde$2@dont-email.me> <6903bbdb-af0d-46a2-a0bc-4eecf3a038e6n@googlegroups.com>
<u9j3pk$84iu$1@dont-email.me> <3d089247-cc70-4678-8adc-4c56b3f9d61bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <50631f4f-a0dc-494e-8a9f-223a0f547071n@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 23 Jul 2023 12:31:20 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3162
 by: fir - Sun, 23 Jul 2023 12:31 UTC

niedziela, 23 lipca 2023 o 14:03:42 UTC+2 fir napisał(a):
> niedziela, 23 lipca 2023 o 13:44:05 UTC+2 Bonita Montero napisał(a):
> > Am 23.07.2023 um 09:52 schrieb fir:
> > > niedziela, 23 lipca 2023 o 03:30:09 UTC+2 Bonita Montero napisał(a):
> > >> Am 22.07.2023 um 23:07 schrieb fir:
> > >>
> > >>> sure as efficient as possinle, what with i once give example of how this pony fast is
> > >> Why should you have given such an example ? You're not aware
> > >> what C++ does for you because you don't unterstand the language.
> > >
> > >
> > > it is counter example for your belifs...
> > If things would be easier in C than in C++ people woudln't use C++.
> its your belif...

important factors here are for example popularity, belifs and knowledge

people dont do some things becouse they dont know things ..if they would know they would do other things ..but they dont know - and they do what they belive/assume

Re: you think rust may outthrone c?

<6cf61d77-22ca-4982-9cb1-82579b02bf85n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:4623:b0:762:3d49:c90e with SMTP id br35-20020a05620a462300b007623d49c90emr20015qkb.6.1690116163529;
Sun, 23 Jul 2023 05:42:43 -0700 (PDT)
X-Received: by 2002:a05:6870:98ae:b0:1b0:7f56:47d4 with SMTP id
eg46-20020a05687098ae00b001b07f5647d4mr8002593oab.8.1690116163157; Sun, 23
Jul 2023 05:42:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.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: Sun, 23 Jul 2023 05:42:42 -0700 (PDT)
In-Reply-To: <50631f4f-a0dc-494e-8a9f-223a0f547071n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.39; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.39
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u8o2jf$3isv1$1@bluemanedhawk.eternal-september.org> <u93q47$19p2n$1@dont-email.me>
<u95q1j$1k1sq$1@bluemanedhawk.eternal-september.org> <u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org> <u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org> <u9bg5f$2o9ci$1@dont-email.me>
<u9bs1u$2qj43$1@dont-email.me> <u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me> <u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me> <u9gmvs$3r01u$1@dont-email.me>
<u9gp9e$3rdi9$2@dont-email.me> <u9gtpa$3s5qr$1@dont-email.me>
<u9gvro$3sgmi$2@dont-email.me> <552dfa05-1217-46cd-a6b7-5f5c125d9f54n@googlegroups.com>
<u9hvqj$kde$2@dont-email.me> <6903bbdb-af0d-46a2-a0bc-4eecf3a038e6n@googlegroups.com>
<u9j3pk$84iu$1@dont-email.me> <3d089247-cc70-4678-8adc-4c56b3f9d61bn@googlegroups.com>
<50631f4f-a0dc-494e-8a9f-223a0f547071n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6cf61d77-22ca-4982-9cb1-82579b02bf85n@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 23 Jul 2023 12:42:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3691
 by: fir - Sun, 23 Jul 2023 12:42 UTC

niedziela, 23 lipca 2023 o 14:31:28 UTC+2 fir napisał(a):
> niedziela, 23 lipca 2023 o 14:03:42 UTC+2 fir napisał(a):
> > niedziela, 23 lipca 2023 o 13:44:05 UTC+2 Bonita Montero napisał(a):
> > > Am 23.07.2023 um 09:52 schrieb fir:
> > > > niedziela, 23 lipca 2023 o 03:30:09 UTC+2 Bonita Montero napisał(a):
> > > >> Am 22.07.2023 um 23:07 schrieb fir:
> > > >>
> > > >>> sure as efficient as possinle, what with i once give example of how this pony fast is
> > > >> Why should you have given such an example ? You're not aware
> > > >> what C++ does for you because you don't unterstand the language.
> > > >
> > > >
> > > > it is counter example for your belifs...
> > > If things would be easier in C than in C++ people woudln't use C++.
> > its your belif...
> important factors here are for example popularity, belifs and knowledge
>
> people dont do some things becouse they dont know things ..if they would know they would do other things ..but they dont know - and they do what they belive/assume

i myself dont know a lot of things (i dont know languages like this rust or other (javascript) too much, and thats kinda sad becouse thsi javascript is interesting, and there is lot to learn bou i got no energui and strictly time for that..i stiok to c as i think its totally worth and here its also a lot to lern potentially: for example this container for speeding up collision detections, hopw to do that properly and more)

Re: you think rust may outthrone c?

<e44294ae-5a37-4e2e-9d12-669222e89cben@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:230:b0:767:7de5:85cb with SMTP id u16-20020a05620a023000b007677de585cbmr17545qkm.8.1690116885632;
Sun, 23 Jul 2023 05:54:45 -0700 (PDT)
X-Received: by 2002:a05:6808:1302:b0:3a3:a8d1:1aa4 with SMTP id
y2-20020a056808130200b003a3a8d11aa4mr14059421oiv.2.1690116884687; Sun, 23 Jul
2023 05:54:44 -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: Sun, 23 Jul 2023 05:54:44 -0700 (PDT)
In-Reply-To: <afe517cb-5b61-463f-91d1-757694a5ac5cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.39; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.39
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u8o2jf$3isv1$1@bluemanedhawk.eternal-september.org> <u93q47$19p2n$1@dont-email.me>
<u95q1j$1k1sq$1@bluemanedhawk.eternal-september.org> <u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org> <u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org> <u9bg5f$2o9ci$1@dont-email.me>
<u9bs1u$2qj43$1@dont-email.me> <u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me> <u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me> <u9gmvs$3r01u$1@dont-email.me>
<u9gp9e$3rdi9$2@dont-email.me> <u9gtpa$3s5qr$1@dont-email.me>
<u9gvro$3sgmi$2@dont-email.me> <552dfa05-1217-46cd-a6b7-5f5c125d9f54n@googlegroups.com>
<u9hvqj$kde$2@dont-email.me> <6903bbdb-af0d-46a2-a0bc-4eecf3a038e6n@googlegroups.com>
<u9j3pk$84iu$1@dont-email.me> <3d089247-cc70-4678-8adc-4c56b3f9d61bn@googlegroups.com>
<afe517cb-5b61-463f-91d1-757694a5ac5cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e44294ae-5a37-4e2e-9d12-669222e89cben@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 23 Jul 2023 12:54:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Sun, 23 Jul 2023 12:54 UTC

niedziela, 23 lipca 2023 o 14:14:29 UTC+2 fir napisał(a):
> niedziela, 23 lipca 2023 o 14:03:42 UTC+2 fir napisał(a):
> > niedziela, 23 lipca 2023 o 13:44:05 UTC+2 Bonita Montero napisał(a):
> > > Am 23.07.2023 um 09:52 schrieb fir:
> > > > niedziela, 23 lipca 2023 o 03:30:09 UTC+2 Bonita Montero napisał(a):
> > > >> Am 22.07.2023 um 23:07 schrieb fir:
> > > >>
> > > >>> sure as efficient as possinle, what with i once give example of how this pony fast is
> > > >> Why should you have given such an example ? You're not aware
> > > >> what C++ does for you because you don't unterstand the language.
> > > >
> > > >
> > > > it is counter example for your belifs...
> > > If things would be easier in C than in C++ people woudln't use C++.
> > its your belif... have you seen concept of reasoning? this is concept saying you shouldnt belive in random things : like a lot of statemants which are lies and you post (liek im nervous (im quite calm, but my ear hurts me recently, jm happy Jankos win on KOI etc), i cant programming, " If things would be easier in C than in C++ people woudln't use C++." and many other belifs with no justification
> >
> > you dont fear lies so you live in lies - thats sad but its more your problem than mine, you also spred lies here which in turn is troll activity
> > > The opposite is the truth. The language is more complex but solving
> > > actual problems becomes much more manageable because you won't need
> > > to deal with the same problems in detail over and over.
> note btw im not exactly say easier.. i more say "better" (originally it was yet on something other it was a negation of some false statement) , ... it doesnt necessary mean using c-way is not easier coz this easier has many meaning and many contexts (for exampel it may be easier if you elarn something but it may be harder to learn something if you then want to use it easier..e.asier depends on many things)

for example im unable tos ay now what is easier to learn c or c++

c is hard becous its imo hard to understand c (becouse c is wise, has deep and wise concepts )
c++ is also hard becouse its complex and idiotic

im unable to say what is harder

Re: you think rust may outthrone c?

<u9j96m$8ocb$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 15:16:09 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <u9j96m$8ocb$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u8o2jf$3isv1$1@bluemanedhawk.eternal-september.org>
<u93q47$19p2n$1@dont-email.me>
<u95q1j$1k1sq$1@bluemanedhawk.eternal-september.org>
<u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org>
<u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org>
<u9bg5f$2o9ci$1@dont-email.me> <u9bs1u$2qj43$1@dont-email.me>
<u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me>
<u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me> <u9gmvs$3r01u$1@dont-email.me>
<u9gp9e$3rdi9$2@dont-email.me> <u9gtpa$3s5qr$1@dont-email.me>
<u9gvro$3sgmi$2@dont-email.me>
<552dfa05-1217-46cd-a6b7-5f5c125d9f54n@googlegroups.com>
<u9hvqj$kde$2@dont-email.me>
<6903bbdb-af0d-46a2-a0bc-4eecf3a038e6n@googlegroups.com>
<u9j3pk$84iu$1@dont-email.me>
<3d089247-cc70-4678-8adc-4c56b3f9d61bn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jul 2023 13:16:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f3bffc8973a630ebbdca67316ac033fe";
logging-data="287115"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mWGUSaRnJJxEyn7mXCHvEfp9O7Mfyby0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:UOV/SXlKxkFhKZ6Btbw7Qh/H+zs=
Content-Language: de-DE
In-Reply-To: <3d089247-cc70-4678-8adc-4c56b3f9d61bn@googlegroups.com>
 by: Bonita Montero - Sun, 23 Jul 2023 13:16 UTC

Am 23.07.2023 um 14:03 schrieb fir:
> niedziela, 23 lipca 2023 o 13:44:05 UTC+2 Bonita Montero napisał(a):
>> Am 23.07.2023 um 09:52 schrieb fir:
>>> niedziela, 23 lipca 2023 o 03:30:09 UTC+2 Bonita Montero napisał(a):
>>>> Am 22.07.2023 um 23:07 schrieb fir:
>>>>
>>>>> sure as efficient as possinle, what with i once give example of how this pony fast is
>>>> Why should you have given such an example ? You're not aware
>>>> what C++ does for you because you don't unterstand the language.
>>>
>>>
>>> it is counter example for your belifs...
>> If things would be easier in C than in C++ people woudln't use C++.
>
> its your belif... ....

You never programmed C++ and you've been never into professional
software development. You want to persuade others to use tools
which whouldn't overburden you.

According to your replies to yourself you must be very nervous.

Rest unread.

Re: you think rust may outthrone c?

<u9j985$8ocb$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 15:16:56 +0200
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <u9j985$8ocb$2@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org>
<u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org>
<u9bg5f$2o9ci$1@dont-email.me> <u9bs1u$2qj43$1@dont-email.me>
<u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me>
<u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me>
<874ebd85-84f6-4959-9ee1-6afd810a5d7dn@googlegroups.com>
<u9gpds$3rdi9$3@dont-email.me>
<05c87f55-f8bb-4411-8e5c-9c11829351ean@googlegroups.com>
<u9gqsk$3rn87$1@dont-email.me>
<05a15143-1fd2-4152-840b-15cebc067562n@googlegroups.com>
<u9grbc$3rqh0$1@dont-email.me>
<e486102e-5f9b-4f47-8df3-39d3db5c2709n@googlegroups.com>
<u9h019$3sgmi$4@dont-email.me>
<95535c53-8ef3-4ba6-82fc-ec9f02641089n@googlegroups.com>
<u9hvs4$kde$3@dont-email.me>
<b0962644-9f1a-41e7-9ded-3f9388e328fdn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jul 2023 13:16:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f3bffc8973a630ebbdca67316ac033fe";
logging-data="287115"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+03a8XUhX7+Uhj79+e3LT6oqilGBgCj/M="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:gfcmLIiR8uupE+uLA0GKW3cv9UI=
Content-Language: de-DE
In-Reply-To: <b0962644-9f1a-41e7-9ded-3f9388e328fdn@googlegroups.com>
 by: Bonita Montero - Sun, 23 Jul 2023 13:16 UTC

Am 23.07.2023 um 09:58 schrieb fir:
> niedziela, 23 lipca 2023 o 03:30:58 UTC+2 Bonita Montero napisał(a):
>> Am 22.07.2023 um 23:06 schrieb fir:
>>> sobota, 22 lipca 2023 o 18:27:34 UTC+2 Bonita Montero napisał(a):
>>>> Am 22.07.2023 um 17:42 schrieb fir:
>>>>> sobota, 22 lipca 2023 o 17:07:38 UTC+2 Bonita Montero napisał(a):
>>>>>> That's not crap but standard data structures, handled with the most
>>>>>> efficient way. Have a look at what an unordered_map saves you a lot
>>>>>> of work. This is needed really often and in C++ that's a few lines
>>>>>> of code.
>>>>>
>>>>> you think c has no libraries? ...
>>>>
>>>> It's impossible to write sth. like the STL or other libraries
>>>> in C with the same convenience. C doesn't have the language
>>>> facilities for that.
>>>> You can't persuade the world to use a language which doesn't
>>>> overburden you.
>>>
>>> good joke "c is easy to learn" ...
>>
>> I learned it in a week when I was 14 in the 90s.
>
> i was thirty and do assembly coding on C64 (C i began to learn - quite late
> just in a week when wtc attack was, maybe 3 days after it - from very old book
> i incidentally found at home)..it took me good 10 years to learn it (i thionk i learned it 'totally' something around 2014 something like that) .. and even though now here i found sole small piece i not fully understand (i dont understand varargs macros fully (though i understand it mostly) as i procastrinate it - though i should learn it
> probably)

You still struggle with C. No chance for C++.

Re: you think rust may outthrone c?

<5942c724-9f8b-432d-871e-9850ec01dfaen@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:8c0f:b0:767:233b:6703 with SMTP id qz15-20020a05620a8c0f00b00767233b6703mr17296qkn.15.1690119552767;
Sun, 23 Jul 2023 06:39:12 -0700 (PDT)
X-Received: by 2002:a05:6830:328a:b0:6b9:2cd4:a857 with SMTP id
m10-20020a056830328a00b006b92cd4a857mr5059761ott.6.1690119552467; Sun, 23 Jul
2023 06:39:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.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: Sun, 23 Jul 2023 06:39:12 -0700 (PDT)
In-Reply-To: <u9j96m$8ocb$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.59; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.59
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u8o2jf$3isv1$1@bluemanedhawk.eternal-september.org> <u93q47$19p2n$1@dont-email.me>
<u95q1j$1k1sq$1@bluemanedhawk.eternal-september.org> <u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org> <u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org> <u9bg5f$2o9ci$1@dont-email.me>
<u9bs1u$2qj43$1@dont-email.me> <u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me> <u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me> <u9gmvs$3r01u$1@dont-email.me>
<u9gp9e$3rdi9$2@dont-email.me> <u9gtpa$3s5qr$1@dont-email.me>
<u9gvro$3sgmi$2@dont-email.me> <552dfa05-1217-46cd-a6b7-5f5c125d9f54n@googlegroups.com>
<u9hvqj$kde$2@dont-email.me> <6903bbdb-af0d-46a2-a0bc-4eecf3a038e6n@googlegroups.com>
<u9j3pk$84iu$1@dont-email.me> <3d089247-cc70-4678-8adc-4c56b3f9d61bn@googlegroups.com>
<u9j96m$8ocb$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5942c724-9f8b-432d-871e-9850ec01dfaen@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 23 Jul 2023 13:39:12 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4661
 by: fir - Sun, 23 Jul 2023 13:39 UTC

niedziela, 23 lipca 2023 o 15:16:21 UTC+2 Bonita Montero napisał(a):
> Am 23.07.2023 um 14:03 schrieb fir:
> > niedziela, 23 lipca 2023 o 13:44:05 UTC+2 Bonita Montero napisał(a):
> >> Am 23.07.2023 um 09:52 schrieb fir:
> >>> niedziela, 23 lipca 2023 o 03:30:09 UTC+2 Bonita Montero napisał(a):
> >>>> Am 22.07.2023 um 23:07 schrieb fir:
> >>>>
> >>>>> sure as efficient as possinle, what with i once give example of how this pony fast is
> >>>> Why should you have given such an example ? You're not aware
> >>>> what C++ does for you because you don't unterstand the language.
> >>>
> >>>
> >>> it is counter example for your belifs...
> >> If things would be easier in C than in C++ people woudln't use C++.
> >
> > its your belif... ....
>
> You never programmed C++ and you've been never into professional
> software development. You want to persuade others to use tools
> which whouldn't overburden you.
>
i told you what i think about this 'professional' i see it sorta ironically

its your belif i want to "persuade" - ands its your another lie (probably your tenth lie here or something) i dont want to "persuade".. i just want to deny false (or unproven/not justified) statements which my brainwash people ahich you put here as spam..your main problems here are maybe wuite trivial
1) you dont fear of lies (more worse you dont fear to evengelize them)
2) you dont get a feel of generalization (becouse its ok to say thay a) you prefer c++ personally (its okay no problem) b) you know some context where you think c++ is much better than c as you know it (it might be..not to say its true but it might be true, sometimes it is true for sure, sometimes not) ..it would be better if you would say narrow and tru statements instead of broad and fales and yet in big amount (which is just spam.. it would be spam even if it would be tru as imagine some user who spams "matrix algebra is superior, calculus sucks" or oposite "matrix algebra sucks, calculus is superior" (or may also sapm that both are superior or both suck) its to general and to annoying if some post a hundreds of th like your ponny evengelisation who you put maniacally -its often liek half of what you post is such kind of spam ...im weary of explaining it more i think i said a lot of it..you should lower this spam becouse its not good content..and thats it..
i need to go moaybe i will code some piece of my 2d space game i toy recently)

Re: you think rust may outthrone c?

<6f8f8e2d-34d6-485f-a2e9-89c85e6d4987n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:1a97:b0:403:edaf:5ba2 with SMTP id s23-20020a05622a1a9700b00403edaf5ba2mr22889qtc.12.1690119606998;
Sun, 23 Jul 2023 06:40:06 -0700 (PDT)
X-Received: by 2002:a05:6870:e811:b0:1ba:5cf2:6bbf with SMTP id
o17-20020a056870e81100b001ba5cf26bbfmr8154563oan.6.1690119606731; Sun, 23 Jul
2023 06:40:06 -0700 (PDT)
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.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: Sun, 23 Jul 2023 06:40:06 -0700 (PDT)
In-Reply-To: <u9j985$8ocb$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.59; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.59
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u991ot$27egh$2@dont-email.me> <u99qru$2brfo$1@bluemanedhawk.eternal-september.org>
<u9atgg$2ku7m$2@dont-email.me> <u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org>
<u9bg5f$2o9ci$1@dont-email.me> <u9bs1u$2qj43$1@dont-email.me>
<u9d79c$34qp8$1@bluemanedhawk.eternal-september.org> <u9dcb1$35gmv$1@dont-email.me>
<u9fpi9$3msci$1@bluemanedhawk.eternal-september.org> <u9gjsn$3qfeq$2@dont-email.me>
<874ebd85-84f6-4959-9ee1-6afd810a5d7dn@googlegroups.com> <u9gpds$3rdi9$3@dont-email.me>
<05c87f55-f8bb-4411-8e5c-9c11829351ean@googlegroups.com> <u9gqsk$3rn87$1@dont-email.me>
<05a15143-1fd2-4152-840b-15cebc067562n@googlegroups.com> <u9grbc$3rqh0$1@dont-email.me>
<e486102e-5f9b-4f47-8df3-39d3db5c2709n@googlegroups.com> <u9h019$3sgmi$4@dont-email.me>
<95535c53-8ef3-4ba6-82fc-ec9f02641089n@googlegroups.com> <u9hvs4$kde$3@dont-email.me>
<b0962644-9f1a-41e7-9ded-3f9388e328fdn@googlegroups.com> <u9j985$8ocb$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6f8f8e2d-34d6-485f-a2e9-89c85e6d4987n@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 23 Jul 2023 13:40:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2249
 by: fir - Sun, 23 Jul 2023 13:40 UTC

niedziela, 23 lipca 2023 o 15:17:07 UTC+2 Bonita Montero napisał(a):
> You still struggle with C. No chance for C++.

at least one belif that may be true

Re: you think rust may outthrone c?

<faavM.27025$PlBb.25181@fx42.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx42.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: you think rust may outthrone c?
Newsgroups: comp.lang.c
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com> <u9e4bh$39ff2$1@dont-email.me> <u9e8so$3addm$1@dont-email.me> <u9edc7$3bdu0$1@dont-email.me> <u9em5t$3d7sv$1@dont-email.me> <875y6dne2u.fsf@nosuchdomain.example.com> <u9evak$3eutv$1@dont-email.me> <3ff53ffd-299b-4dc8-a503-cfd170ce3e03n@googlegroups.com> <u9gbnu$3pc9g$1@dont-email.me> <u9h29k$3ssnr$1@dont-email.me> <u9hob6$3vo3c$1@dont-email.me> <87a5vnms94.fsf@nosuchdomain.example.com> <u9hrf9$2fh$1@dont-email.me>
Lines: 15
Message-ID: <faavM.27025$PlBb.25181@fx42.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Sun, 23 Jul 2023 13:45:47 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Sun, 23 Jul 2023 13:45:47 GMT
X-Received-Bytes: 1642
 by: Scott Lurndal - Sun, 23 Jul 2023 13:45 UTC

Bart <bc@freeuk.com> writes:
>On 23/07/2023 00:38, Keith Thompson wrote:

> > Nope. int was commonly 16 bits on the implementations you used. K&R1,
> > published 4 years earlier, includes a table show implementations with
> > 16-bit, 32-bit, and 36-bit int.
>
>I'm not talking about 4 years earlier, but the last 42 years at last. 42
>years before 1982, it was 1940, and there were no computers at all.

That statement is incorrect, there were computers earlier than 1940;
I've actually had components (the memory drum) from one in my possession temporarily
circa 1980 and even took its inventor out to dinner once.

Re: you think rust may outthrone c?

<u9jb4u$8v9e$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 15:49:21 +0200
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <u9jb4u$8v9e$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u93q47$19p2n$1@dont-email.me>
<u95q1j$1k1sq$1@bluemanedhawk.eternal-september.org>
<u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org>
<u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org>
<u9bg5f$2o9ci$1@dont-email.me> <u9bs1u$2qj43$1@dont-email.me>
<u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me>
<u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me> <u9gmvs$3r01u$1@dont-email.me>
<u9gp9e$3rdi9$2@dont-email.me> <u9gtpa$3s5qr$1@dont-email.me>
<u9gvro$3sgmi$2@dont-email.me>
<552dfa05-1217-46cd-a6b7-5f5c125d9f54n@googlegroups.com>
<u9hvqj$kde$2@dont-email.me>
<6903bbdb-af0d-46a2-a0bc-4eecf3a038e6n@googlegroups.com>
<u9j3pk$84iu$1@dont-email.me>
<3d089247-cc70-4678-8adc-4c56b3f9d61bn@googlegroups.com>
<u9j96m$8ocb$1@dont-email.me>
<5942c724-9f8b-432d-871e-9850ec01dfaen@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jul 2023 13:49:18 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f3bffc8973a630ebbdca67316ac033fe";
logging-data="294190"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+l7ScaWBhXebl24iZplcPAxirT2RmlFhM="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ZeWbPsF35Jctx8Jp0xbchrgAXPw=
Content-Language: de-DE
In-Reply-To: <5942c724-9f8b-432d-871e-9850ec01dfaen@googlegroups.com>
 by: Bonita Montero - Sun, 23 Jul 2023 13:49 UTC

Am 23.07.2023 um 15:39 schrieb fir:
> niedziela, 23 lipca 2023 o 15:16:21 UTC+2 Bonita Montero napisał(a):
>> Am 23.07.2023 um 14:03 schrieb fir:
>>> niedziela, 23 lipca 2023 o 13:44:05 UTC+2 Bonita Montero napisał(a):
>>>> Am 23.07.2023 um 09:52 schrieb fir:
>>>>> niedziela, 23 lipca 2023 o 03:30:09 UTC+2 Bonita Montero napisał(a):
>>>>>> Am 22.07.2023 um 23:07 schrieb fir:
>>>>>>
>>>>>>> sure as efficient as possinle, what with i once give example of how this pony fast is
>>>>>> Why should you have given such an example ? You're not aware
>>>>>> what C++ does for you because you don't unterstand the language.
>>>>>
>>>>>
>>>>> it is counter example for your belifs...
>>>> If things would be easier in C than in C++ people woudln't use C++.
>>>
>>> its your belif... ....
>>
>> You never programmed C++ and you've been never into professional
>> software development. You want to persuade others to use tools
>> which whouldn't overburden you.
>>
> i told you what i think about this 'professional' i see it sorta ironically

No, there's a strong definition on that and you're not part of that.

Rest unread.

Re: you think rust may outthrone c?

<u9jbhn$908f$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 14:56:08 +0100
Organization: A noiseless patient Spider
Lines: 51
Message-ID: <u9jbhn$908f$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u8o2jf$3isv1$1@bluemanedhawk.eternal-september.org>
<u93q47$19p2n$1@dont-email.me>
<u95q1j$1k1sq$1@bluemanedhawk.eternal-september.org>
<u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org>
<u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org>
<u9bg5f$2o9ci$1@dont-email.me> <u9bs1u$2qj43$1@dont-email.me>
<u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me>
<u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me> <u9gmvs$3r01u$1@dont-email.me>
<u9gp9e$3rdi9$2@dont-email.me> <u9gtpa$3s5qr$1@dont-email.me>
<u9gvro$3sgmi$2@dont-email.me>
<552dfa05-1217-46cd-a6b7-5f5c125d9f54n@googlegroups.com>
<u9hvqj$kde$2@dont-email.me>
<6903bbdb-af0d-46a2-a0bc-4eecf3a038e6n@googlegroups.com>
<u9j3pk$84iu$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jul 2023 13:56:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1ff3cd75a92dd528a6e3b811369f9b54";
logging-data="295183"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/q1+r6WcwenQog/OY2OyIHqmBhMTJ8u8k="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:iMuHKzP4fdFD3Q1upKYXBEnpJXU=
In-Reply-To: <u9j3pk$84iu$1@dont-email.me>
 by: Bart - Sun, 23 Jul 2023 13:56 UTC

On 23/07/2023 12:43, Bonita Montero wrote:
> Am 23.07.2023 um 09:52 schrieb fir:
>> niedziela, 23 lipca 2023 o 03:30:09 UTC+2 Bonita Montero napisał(a):
>>> Am 22.07.2023 um 23:07 schrieb fir:
>>>
>>>> sure as efficient as possinle, what with i once give example of how
>>>> this pony fast is
>>> Why should you have given such an example ? You're not aware
>>> what C++ does for you because you don't unterstand the language.
>>
>>
>> it is counter example for your belifs...
>
> If things would be easier in C than in C++ people woudln't use C++.

I have a low opinion of C, but that of C++ is so far down the scale that
it would be negative.

Sure, it appears to tick all the boxes, on paper, but when you see it
for real, you realise what a monstrosity of a language it is, and such
an appallingly badly designed one.

It's also much harder to implement, and hard to compile efficiently.

If I had to write some program, I would be able to use C, even though I
don't like it, in the same way I could use assembly.

But I wouldn't be able to use C++ unless I used the C subset of it.

> The opposite is the truth. The language is more complex but solving
> actual problems becomes much more manageable because you won't need
> to deal with the same problems in detail over and over.

The complexity is in the wrong place: it concentrates on providing
language-building features (templates, classes, inheritance,
overloads...) so that it can provide the features you really need, like
vectors and first-class strings, but defining them via those
language-building features.

My view is that it should instead just provide those vectors and string
types, built-in.

And for all its abilities, even C++ will have trouble providing anything
other than zero-based arrays; this is in my systems language, not C:

['A'..'Z']int table

The 'table' variable is a regular array, not a hash-map or any other
kind of container, and has 26 elements, indexed from 65.

Re: you think rust may outthrone c?

<u9jc4b$908f$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 15:06:03 +0100
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <u9jc4b$908f$2@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9e4bh$39ff2$1@dont-email.me> <u9e8so$3addm$1@dont-email.me>
<u9edc7$3bdu0$1@dont-email.me> <u9em5t$3d7sv$1@dont-email.me>
<875y6dne2u.fsf@nosuchdomain.example.com> <u9evak$3eutv$1@dont-email.me>
<3ff53ffd-299b-4dc8-a503-cfd170ce3e03n@googlegroups.com>
<u9gbnu$3pc9g$1@dont-email.me> <u9h29k$3ssnr$1@dont-email.me>
<u9hob6$3vo3c$1@dont-email.me> <87a5vnms94.fsf@nosuchdomain.example.com>
<u9hrf9$2fh$1@dont-email.me> <faavM.27025$PlBb.25181@fx42.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jul 2023 14:06:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1ff3cd75a92dd528a6e3b811369f9b54";
logging-data="295183"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lj1MN3mYYAz3TUHczHFrxMxq1O6r6XlM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:PsER5450QEZh1jxAbEWzwvpz5WQ=
In-Reply-To: <faavM.27025$PlBb.25181@fx42.iad>
 by: Bart - Sun, 23 Jul 2023 14:06 UTC

On 23/07/2023 14:45, Scott Lurndal wrote:
> Bart <bc@freeuk.com> writes:
>> On 23/07/2023 00:38, Keith Thompson wrote:
>
>>> Nope. int was commonly 16 bits on the implementations you used. K&R1,
>>> published 4 years earlier, includes a table show implementations with
>>> 16-bit, 32-bit, and 36-bit int.
>>
>> I'm not talking about 4 years earlier, but the last 42 years at least. 42
>> years before 1982, it was 1940, and there were no computers at all.
>
> That statement is incorrect, there were computers earlier than 1940;
> I've actually had components (the memory drum) from one in my possession temporarily
>
>

I stand to be corrected then. I didn't do any research to make my
remark, it was based on remembering that most early machines I'd heard
about were post-1940.

Still, things changed significantly over the next 40 years (which is
about the point I entered the game, hardware-wise), but from my POV they
then changed little over the next 40, other than in scale.

Certainly the power-of-two word sizes we're talking about were already
very common.

> circa 1980 and even took its inventor out to dinner once.

I guess that wasn't Babbage you're talking about then, but someone else!

Re: you think rust may outthrone c?

<u9jcdk$92qm$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 16:11:03 +0200
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <u9jcdk$92qm$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u8o2jf$3isv1$1@bluemanedhawk.eternal-september.org>
<u93q47$19p2n$1@dont-email.me>
<u95q1j$1k1sq$1@bluemanedhawk.eternal-september.org>
<u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org>
<u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org>
<u9bg5f$2o9ci$1@dont-email.me> <u9bs1u$2qj43$1@dont-email.me>
<u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me>
<u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me> <u9gmvs$3r01u$1@dont-email.me>
<u9gp9e$3rdi9$2@dont-email.me> <u9gtpa$3s5qr$1@dont-email.me>
<u9gvro$3sgmi$2@dont-email.me>
<552dfa05-1217-46cd-a6b7-5f5c125d9f54n@googlegroups.com>
<u9hvqj$kde$2@dont-email.me>
<6903bbdb-af0d-46a2-a0bc-4eecf3a038e6n@googlegroups.com>
<u9j3pk$84iu$1@dont-email.me> <u9jbhn$908f$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jul 2023 14:11:00 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f3bffc8973a630ebbdca67316ac033fe";
logging-data="297814"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18HBlz8lCuZynz494S2e0pkNuOVkwV1SW0="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:eQUZtNQf28SK1LrwtyQlCLrye+0=
Content-Language: de-DE
In-Reply-To: <u9jbhn$908f$1@dont-email.me>
 by: Bonita Montero - Sun, 23 Jul 2023 14:11 UTC

Am 23.07.2023 um 15:56 schrieb Bart:

> I have a low opinion of C, but that of C++ is so far down the scale that
> it would be negative.

With C++ you have a fraction of the code an reusable components
wich are impossible with the C language facilities. With that
you save money and you have less debugging.

> It's also much harder to implement, and hard to compile efficiently.

C++ components like the STL are also available in external C libraries.
But there's no generic programming which would make the code as perfor-
mant.

> The complexity is in the wrong place: it concentrates on providing
> language-building features (templates, classes, inheritance,
> overloads...) so that it can provide the features you really need,

This features are needed and make less work and less bugs.

Re: you think rust may outthrone c?

<20230723072750.243@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 14:34:35 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <20230723072750.243@kylheku.com>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u8o2jf$3isv1$1@bluemanedhawk.eternal-september.org>
<u93q47$19p2n$1@dont-email.me>
<u95q1j$1k1sq$1@bluemanedhawk.eternal-september.org>
<u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org>
<u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org>
<u9bg5f$2o9ci$1@dont-email.me> <u9bs1u$2qj43$1@dont-email.me>
<u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me>
<u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me> <u9gmvs$3r01u$1@dont-email.me>
<u9gp9e$3rdi9$2@dont-email.me> <u9gtpa$3s5qr$1@dont-email.me>
<u9gvro$3sgmi$2@dont-email.me>
<552dfa05-1217-46cd-a6b7-5f5c125d9f54n@googlegroups.com>
<u9hvqj$kde$2@dont-email.me>
<6903bbdb-af0d-46a2-a0bc-4eecf3a038e6n@googlegroups.com>
<u9j3pk$84iu$1@dont-email.me> <u9jbhn$908f$1@dont-email.me>
Injection-Date: Sun, 23 Jul 2023 14:34:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="23aed7270e3ef3aa96b69712c72f535d";
logging-data="301941"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mbaQvOFk2CJk5ovnTlsfPyQgcol7BF4E="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:8ULbfha/4CpsZANixm0HrwYiLn0=
 by: Kaz Kylheku - Sun, 23 Jul 2023 14:34 UTC

On 2023-07-23, Bart <bc@freeuk.com> wrote:
> My view is that it should instead just provide those vectors and string
> types, built-in.

If some language features can be implemented as a library, and work
as well as built-in features, that is an overhelmingly preferrable
implementation approach. Developing a core set of language features
which provide the extensibility so that one can have a
library-programmed array with the same syntactic sugars and efficiencies
of a built-in one is a much smarter approach than shoehorning everything
into the language: parser features for vectors, intermediate code
generation for the vector syntax, specialized type checking and whatnot
for the vectors ...

The entire problem with C++ is not that it emobides this idea, but
that it keeps betraying it; it keeps keeps accumulating built-in crud
like a giant, dirty, snowball. If you don't use C++ for five, ten years,
you cannot recognize it.

At this point, built-in vectors and strings would make C++ monumentally
worse. (Even in someone's private fork, where the library-based strings
and vectors are removed.)

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

Re: you think rust may outthrone c?

<u9jgmu$9i98$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 17:24:13 +0200
Organization: A noiseless patient Spider
Lines: 138
Message-ID: <u9jgmu$9i98$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<874jm2tbkt.fsf@nosuchdomain.example.com> <u94hip$1cdbp$1@dont-email.me>
<87lefeukpy.fsf@bsb.me.uk> <u94pch$1dpd6$1@dont-email.me>
<87edl6uf9y.fsf@bsb.me.uk> <u95rn3$1k9hq$1@dont-email.me>
<87r0p4tyx4.fsf@bsb.me.uk>
<c52e1506-b0a5-4e5b-99c0-5e79c5305a3an@googlegroups.com>
<87o7k8rzh5.fsf@nosuchdomain.example.com>
<0fa83b40-26e6-427a-ba84-6cf8ac33172an@googlegroups.com>
<u98odb$25mj8$1@dont-email.me> <87jzuvsg7q.fsf@nosuchdomain.example.com>
<u9cfmj$2trto$1@dont-email.me> <87h6pyqgnp.fsf@nosuchdomain.example.com>
<u9cld3$2uof8$1@dont-email.me> <878rbaqch6.fsf@nosuchdomain.example.com>
<u9dm6t$370v3$1@dont-email.me> <u9dv2c$38ir2$1@dont-email.me>
<u9e7bp$3a1ug$1@dont-email.me> <u9h055$3s62g$7@dont-email.me>
<87351foebi.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jul 2023 15:24:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d5ea69a1241f3a53dfccb4f6fc9f4c8c";
logging-data="313640"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iJ9eslM0KM6RbsE+qaUjWa3zd0S3+gZM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:NeTcdfYry9WQ3HU6PduMNhJsfyM=
Content-Language: en-GB
In-Reply-To: <87351foebi.fsf@bsb.me.uk>
 by: David Brown - Sun, 23 Jul 2023 15:24 UTC

On 22/07/2023 22:56, Ben Bacarisse wrote:
> David Brown <david.brown@hesbynett.no> writes:
>
>> On 21/07/2023 17:14, Bart wrote:>
>
>>> C requires reduction of constant-expressions for compile-time
>>> expressions, and within conditional expressions of the preprocessor.
>>
>> Yes.
>>
>>> So the mechanism for doing that is already there; it is not optional.
>>
>> When you have a "constant expression" that is used wherever a "constant"
>> (what some people inaccurately call "integer literal") can be used, the
>> compiler must evaluate the expression at compile time. Apart from that, it
>> is all optional.
>>
>> Thus for "int x = 1 + 2;", the "1 + 2" must be evaluated at compile time
>> for a file-scope or static variable, but can be evaluated at run time if it
>> is a local variable.
>
> Objects with static storage duration are "initialized only once, prior
> to program startup". In any sane implementation, the calculation will
> be done by the compiler. But in principle the calculation and
> initialisation could be done by executable code that runs before main.
>

Of course - compilers can do anything that gives the same observable
behaviour. The norm is that C toolchains put initialised static
duration data into a single section of the executable, with the initial
values as a binary section. Depending on the platform, either the
initial data section is loaded then made writeable, or is copied to
writeable ram on startup. But there is no requirement that it be done
this way - merely a requirement that it /could/ be done this way.
(Unlike in C++, where statically allocated data can have non-constant
initialisation calculated at run-time before main starts.)

> <cut>
>>> In my languages and compilers, signed integer overflow has never been
>>> undefined. It's a choice.
>>>
>> A bad choice. Seriously. I mean, what kind of screwed up idea of numbers
>> do you have to have to think it's a good idea that adding two positive
>> numbers can give you a negative number?
>
> Two's complement numbers form a commutative ring. What's wrong with
> that?

Nothing - but equally, it has no benefit. It gives nothing particularly
useful.

Now, if you were to redefine your multiplication and have your n-bit
numbers set up as a GF(2 ** n) finite field, you'd have some new useful
properties. You'd be able to divide any integers, except for division
by 0, without any fractions. But would it be useful, other than for
people working on error correction algorithms? No, I don't believe so.

Similarly, I don't believe defining the behaviour of signed integer
arithmetic overflow actually helps anyone (other than occasional very
niche situations when you really do want modulo behaviour). When you
overflow integer arithmetic, you get the wrong answer for pretty much
every situation. I am at a loss as to why a predictable wrong answer is
an improvement over an unpredictable wrong answer - surely the aim of
the game is to avoid wrong answers in the first place.

> Making some arithmetic operations undefined results is a
> structure with no simple mathematical description.

Agreed. But it lets you have useful rules, leading to simplification
for both the compiler and the programmer. Knowing that as long as the
programmer hasn't made a mistake earlier in their code, "n + 1 > n" and
similar rules always holds true can be useful.

Of course, that means the programmer is responsible for ensuring that
"n" is not INT_MAX at that point in the code, and may have to take steps
to make sure of that. But they must do so anyway, regardless of how
integer overflow is or is not defined, because the any definition would
almost certainly be wrong.

So you lose nothing, and gain something, by having the behaviour undefined.

Even better, IMHO - when something is undefined behaviour, a compiler or
debugging tool can consider it an error. That means you can use tools
to help catch bugs in your code - static analysis of potential
overflows, or run-time error handling. But if the behaviour is defined
in some way, then it is not an error - the compiler has to assume that
you intentionally wrapped your integers.

I for one would rather have help getting my programs correct, than a
language that blindly accepted all my mistakes.

There are some rare occasions where modulo behaviour is useful. There
are also occasions where saturation would be more helpful, or some kind
of NaN behaviour similar to floating point arithmetic. There is no
reason to consider wrapping as somehow "correct" overflow behaviour.

>
>> Two's complement wrapping is a side-effect of efficient ALU hardware
>> implementation, nothing more. It's not something you want in a
>> language.
>
> I'd make the opposite argument. Making overflow undefined in C was a
> consequence of hardware that behaved that way, nothing more. It has
> found a niche in modern optimising compilers, but that's a side effect.
>

It is certainly possible that C originally made overflow UB because
different hardware worked in different ways in the early days of C. But
I think that if that had been the sole motivation and people thought
two's complement wrapping would be useful, it would have made more sense
to make overflow behaviour implementation defined rather than explicitly
undefined.

But I do not believe any language has defined signed integer overflow to
be modulo wrapping because it is a good idea mathematically, or useful
for applications - languages do so only if they want to give /some/
definition to it, regardless of its usefulness. And since two's
complement wrapping is a side-effect of almost all hardware
implementations for the last 50 years or more, that's what is picked -
anything else would be hugely expensive, and surprising to programmers.

Remember what the C standards actually say here, in 6.5p5 :

"""
If an exceptional condition occurs during the evaluation of an
expression (that is, if the result is not mathematically defined or not
in the range of representable values for its type), the behavior is
undefined.
"""

Overflow is an "exceptional condition" with results "not mathematically
defined" or where the result is not representable by the type. That
sounds to me very much like saying if the result doesn't make sense in
the program, the C language doesn't try to impose a sense on it.

Re: you think rust may outthrone c?

<u9jig1$9lnb$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 17:54:41 +0200
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <u9jig1$9lnb$2@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u95rn3$1k9hq$1@dont-email.me> <87r0p4tyx4.fsf@bsb.me.uk>
<c52e1506-b0a5-4e5b-99c0-5e79c5305a3an@googlegroups.com>
<87o7k8rzh5.fsf@nosuchdomain.example.com>
<0fa83b40-26e6-427a-ba84-6cf8ac33172an@googlegroups.com>
<u98odb$25mj8$1@dont-email.me> <87jzuvsg7q.fsf@nosuchdomain.example.com>
<u9cfmj$2trto$1@dont-email.me> <87h6pyqgnp.fsf@nosuchdomain.example.com>
<u9cld3$2uof8$1@dont-email.me> <878rbaqch6.fsf@nosuchdomain.example.com>
<u9dm6t$370v3$1@dont-email.me>
<c339d764-b249-4950-bea7-69849f8096a3n@googlegroups.com>
<u9dvqj$38mb3$1@dont-email.me> <u9e1v9$38vf8$1@dont-email.me>
<u9e4bh$39ff2$1@dont-email.me> <u9e8so$3addm$1@dont-email.me>
<u9edc7$3bdu0$1@dont-email.me> <u9em5t$3d7sv$1@dont-email.me>
<875y6dne2u.fsf@nosuchdomain.example.com> <u9evak$3eutv$1@dont-email.me>
<3ff53ffd-299b-4dc8-a503-cfd170ce3e03n@googlegroups.com>
<u9gbnu$3pc9g$1@dont-email.me> <u9h29k$3ssnr$1@dont-email.me>
<u9hob6$3vo3c$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jul 2023 15:54:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d5ea69a1241f3a53dfccb4f6fc9f4c8c";
logging-data="317163"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18VviJU9XnqobX4dahXt5gCWT0+8T3pjNE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:YKbgOi7G5RA+aOWd2yLPiHa7ioU=
Content-Language: en-GB
In-Reply-To: <u9hob6$3vo3c$1@dont-email.me>
 by: David Brown - Sun, 23 Jul 2023 15:54 UTC

On 23/07/2023 01:22, Bart wrote:
>
> On 22/07/2023 18:05, David Brown wrote:

> > No, "int" is not 32-bit in C.
>
> This is where we keep going around in circles with C.

"We" don't have a problem with how "int" in C works. /You/ have a
problem with it.

>
> In 1982 when I started on all this stuff in earnest, ints were 16-bits.
>
> Until 32-bit processors become common in the 1990s, when ints become 32
> bits. Where they've been ever since. (I'm talking about home and
> business computers of that era, which now probably includes laptops,
> tablets and smartphones.)
>
In the majority of processors sold today, "int" is 16-bit. It's true
that the proportions are changing and it may not be long before 32-bit
"int" is in the majority. But we are not talking about something from
decades ago - we are talking about /today/.

It really bugs me when some people insist on believing the world
revolves around their own tiny little slice of reality, and refuse to
open their eyes and look around - no matter how many times they are told.

You can use whatever names or sizes you like in your own little
languages for your own amusement. And if you are writing non-portable C
code for systems that all have 32-bit int, you can assume int is 32-bit
if you want.

But if you want to talk about the C language, talk about the C language,
not a needlessly restricted subset of its implementations.

Re: you think rust may outthrone c?

<u9jkfc$9ub8$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 17:28:29 +0100
Organization: A noiseless patient Spider
Lines: 76
Message-ID: <u9jkfc$9ub8$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<874jm2tbkt.fsf@nosuchdomain.example.com> <u94hip$1cdbp$1@dont-email.me>
<87lefeukpy.fsf@bsb.me.uk> <u94pch$1dpd6$1@dont-email.me>
<87edl6uf9y.fsf@bsb.me.uk> <u95rn3$1k9hq$1@dont-email.me>
<87r0p4tyx4.fsf@bsb.me.uk>
<c52e1506-b0a5-4e5b-99c0-5e79c5305a3an@googlegroups.com>
<87o7k8rzh5.fsf@nosuchdomain.example.com>
<0fa83b40-26e6-427a-ba84-6cf8ac33172an@googlegroups.com>
<u98odb$25mj8$1@dont-email.me> <87jzuvsg7q.fsf@nosuchdomain.example.com>
<u9cfmj$2trto$1@dont-email.me> <87h6pyqgnp.fsf@nosuchdomain.example.com>
<u9cld3$2uof8$1@dont-email.me> <878rbaqch6.fsf@nosuchdomain.example.com>
<u9dm6t$370v3$1@dont-email.me> <u9dv2c$38ir2$1@dont-email.me>
<u9e7bp$3a1ug$1@dont-email.me> <u9h055$3s62g$7@dont-email.me>
<87351foebi.fsf@bsb.me.uk> <u9jgmu$9i98$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jul 2023 16:28:28 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1ff3cd75a92dd528a6e3b811369f9b54";
logging-data="325992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185Aow5EIl3V29T12dS8ZNpT+pzBZ6UQI4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:3ZDS4N+DWUENXCBqvnGv0LcptBA=
In-Reply-To: <u9jgmu$9i98$1@dont-email.me>
 by: Bart - Sun, 23 Jul 2023 16:28 UTC

On 23/07/2023 16:24, David Brown wrote:
> On 22/07/2023 22:56, Ben Bacarisse wrote:
> Similarly, I don't believe defining the behaviour of signed integer
> arithmetic overflow actually helps anyone (other than occasional very
> niche situations when you really do want modulo behaviour). When you
> overflow integer arithmetic, you get the wrong answer for pretty much
> every situation.

That's not true.

INT_MAX + 1 - 1 will give the correct answer. If you instead write it
like this:

typedef unsigned int u32;
(int)((u32)INT_MAX + (u32)1 - (u32)1);

then even C agrees that is well-behaved, despite probably performing
exactly the same machine operations (where the compiler deigns to
actually let it, that is, in actual code where variables are used and
the steps are in different expressions)).

So, it's possible to view most signed operations as though there were
implicits casts to convert to unsigned and back again, for the purposes
of making them well-defined in C. But then, why the need for an /any/ cast?

(Some operations will give different results between signed and
unsigned, like shifts.)

> I am at a loss as to why a predictable wrong answer is
> an improvement over an unpredictable wrong answer - surely the aim of
> the game is to avoid wrong answers in the first place.

Are you talking about signed arithmetic here? Because your comments can
equally to unsigned arithmetic.

>
>> Making some arithmetic operations undefined results is a
>> structure with no simple mathematical description.
>
> Agreed. But it lets you have useful rules, leading to simplification
> for both the compiler and the programmer. Knowing that as long as the
> programmer hasn't made a mistake earlier in their code, "n + 1 > n" and
> similar rules always holds true can be useful.

> Of course, that means the programmer is responsible for ensuring that
> "n" is not INT_MAX at that point in the code, and may have to take steps
> to make sure of that. But they must do so anyway, regardless of how
> integer overflow is or is not defined, because the any definition would
> almost certainly be wrong.
>
> So you lose nothing, and gain something, by having the behaviour
undefined.

I thought I'd try a test, and compiled one of my generated-C programs
with both -O3 and -O3 -fwrapv, to see if there was actually any gain in
performance due to taking advantage of UB.

(The program was an interpreter running a JPEG-decoder script.)

Sure enough, I saw a 4% gain in performance, so that I'd have to admit
that that would be handy...

.... until I looked at the test results more carefully: the faster
results were when compiled with -fwrapv, so integer overflow was not UB!

Having well-defined wrapping behaviour was faster in this case (I only
did one test). However the executable was slightly bigger by 0.25%.

So, what I'd wanted to ask was, is the UB really worth it overall? What
improvements you get purely with -fwrapv in general? As I showed I got a
slight slowdown.

Re: you think rust may outthrone c?

<u9jlbo$a21m$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 18:43:35 +0200
Organization: A noiseless patient Spider
Lines: 65
Message-ID: <u9jlbo$a21m$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u8o2jf$3isv1$1@bluemanedhawk.eternal-september.org>
<u93q47$19p2n$1@dont-email.me>
<u95q1j$1k1sq$1@bluemanedhawk.eternal-september.org>
<u991ot$27egh$2@dont-email.me>
<u99qru$2brfo$1@bluemanedhawk.eternal-september.org>
<u9atgg$2ku7m$2@dont-email.me>
<u9bafs$2n7dq$1@bluemanedhawk.eternal-september.org>
<u9bg5f$2o9ci$1@dont-email.me> <u9bs1u$2qj43$1@dont-email.me>
<u9d79c$34qp8$1@bluemanedhawk.eternal-september.org>
<u9dcb1$35gmv$1@dont-email.me>
<u9fpi9$3msci$1@bluemanedhawk.eternal-september.org>
<u9gjsn$3qfeq$2@dont-email.me> <u9gmvs$3r01u$1@dont-email.me>
<u9gp9e$3rdi9$2@dont-email.me> <u9gtpa$3s5qr$1@dont-email.me>
<u9gvro$3sgmi$2@dont-email.me>
<552dfa05-1217-46cd-a6b7-5f5c125d9f54n@googlegroups.com>
<u9hvqj$kde$2@dont-email.me>
<6903bbdb-af0d-46a2-a0bc-4eecf3a038e6n@googlegroups.com>
<u9j3pk$84iu$1@dont-email.me> <u9jbhn$908f$1@dont-email.me>
<20230723072750.243@kylheku.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jul 2023 16:43:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d5ea69a1241f3a53dfccb4f6fc9f4c8c";
logging-data="329782"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18G6rP8HeIvIkVHhUyPIQgWaAa7iLxmND8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:xMDtwTZA4+7YZoxFR4djQJ9dqJw=
In-Reply-To: <20230723072750.243@kylheku.com>
Content-Language: en-GB
 by: David Brown - Sun, 23 Jul 2023 16:43 UTC

On 23/07/2023 16:34, Kaz Kylheku wrote:
> On 2023-07-23, Bart <bc@freeuk.com> wrote:
>> My view is that it should instead just provide those vectors and string
>> types, built-in.
>
> If some language features can be implemented as a library, and work
> as well as built-in features, that is an overhelmingly preferrable
> implementation approach. Developing a core set of language features
> which provide the extensibility so that one can have a
> library-programmed array with the same syntactic sugars and efficiencies
> of a built-in one is a much smarter approach than shoehorning everything
> into the language: parser features for vectors, intermediate code
> generation for the vector syntax, specialized type checking and whatnot
> for the vectors ...

Remember, Bart's view of a perfect language is a language /he/ designs,
/he/ implements, and /he/ uses. There's no need to consider anyone else
or their needs or wants.

The C++ philosophy allows people to use ready-made template classes like
std::vector<> if that suits their needs. If they need something similar
but with, say, slightly different balances of run-time complexity for
some operations, then the C++ programmer can make their own alternative
that can be used just as easily. That one of the many advantages of
putting things in libraries where possible, rather than the core language.

But for Bart, putting something in the core language is the same as
putting it in application code - he writes the compiler and the
application code. And he can't imagine different users having different
needs, because he is the only user for his languages.

>
> The entire problem with C++ is not that it emobides this idea, but
> that it keeps betraying it; it keeps keeps accumulating built-in crud
> like a giant, dirty, snowball. If you don't use C++ for five, ten years,
> you cannot recognize it.
>

A big challenge is that whenever some better (or at least alternative)
way of expressing something is added to the language, you still need to
keep the old way for compatibility. When concepts were added, the
horrendous and ugly std::enable_if<> feature was outdated by something a
lot clearer and simpler. But the language is not made clearer and
simpler because of that - now it supports both (and any language
features needed to make std::enable_if<> work).

Pretty much the only solution is to start again - keep the good parts of
C++, but throw out the ugly parts that could now be done better. But
doing that would of course mean you don't have C++ any more. Herb
Sutter is trying this, with his "cpp2" concept - a language that tries
to be cleaner and neater but can be transcompiled directly to C++. It
remains to be seen where that will go.

> At this point, built-in vectors and strings would make C++ monumentally
> worse. (Even in someone's private fork, where the library-based strings
> and vectors are removed.)
>

Agreed.

But surely all this is for comp.lang.c++, not comp.lang.c ?

Re: you think rust may outthrone c?

<20230723093714.83@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 16:45:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <20230723093714.83@kylheku.com>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<874jm2tbkt.fsf@nosuchdomain.example.com> <u94hip$1cdbp$1@dont-email.me>
<87lefeukpy.fsf@bsb.me.uk> <u94pch$1dpd6$1@dont-email.me>
<87edl6uf9y.fsf@bsb.me.uk> <u95rn3$1k9hq$1@dont-email.me>
<87r0p4tyx4.fsf@bsb.me.uk>
<c52e1506-b0a5-4e5b-99c0-5e79c5305a3an@googlegroups.com>
<87o7k8rzh5.fsf@nosuchdomain.example.com>
<0fa83b40-26e6-427a-ba84-6cf8ac33172an@googlegroups.com>
<u98odb$25mj8$1@dont-email.me> <87jzuvsg7q.fsf@nosuchdomain.example.com>
<u9cfmj$2trto$1@dont-email.me> <87h6pyqgnp.fsf@nosuchdomain.example.com>
<u9cld3$2uof8$1@dont-email.me> <878rbaqch6.fsf@nosuchdomain.example.com>
<u9dm6t$370v3$1@dont-email.me> <u9dv2c$38ir2$1@dont-email.me>
<u9e7bp$3a1ug$1@dont-email.me> <u9h055$3s62g$7@dont-email.me>
<87351foebi.fsf@bsb.me.uk> <u9jgmu$9i98$1@dont-email.me>
<u9jkfc$9ub8$1@dont-email.me>
Injection-Date: Sun, 23 Jul 2023 16:45:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="23aed7270e3ef3aa96b69712c72f535d";
logging-data="328014"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/N+jiG9cz3DWu0xA5K21t8mrSZB59DWh8="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:Dc+StfwSK1cC/Tyhu3ab3bodgTQ=
 by: Kaz Kylheku - Sun, 23 Jul 2023 16:45 UTC

On 2023-07-23, Bart <bc@freeuk.com> wrote:
> On 23/07/2023 16:24, David Brown wrote:
> > On 22/07/2023 22:56, Ben Bacarisse wrote:
> > Similarly, I don't believe defining the behaviour of signed integer
> > arithmetic overflow actually helps anyone (other than occasional very
> > niche situations when you really do want modulo behaviour). When you
> > overflow integer arithmetic, you get the wrong answer for pretty much
> > every situation.
>
> That's not true.
>
> INT_MAX + 1 - 1 will give the correct answer. If you instead write it
> like this:

This is something the compiler can advantage of, regardless of
whether the behavior is defined to the programmer.

When we write a + 3 - c, then, if the compiler knows that the
underlying target language has wrapping behavior with no ill
consequences, it can rearrange the calculation to a - c + 3. (For
whatever reason, such has having previously calculated a - c in another
expression, and the consolidation of non-constant terms allows the
result to be reused.)

If overflow has negative/undefined consequences in the target language,
then the rearrangement cannot be made; the programmer may have written
the calculation in that order way on purpose, and verified that it
doesn't overflow or underflow.

(Speaking of "underlying target language", defined wrapping arithmetic
can help writers of languages that translate to C, in the same way.)

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

Re: you think rust may outthrone c?

<u9jm4i$a4dp$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 17:56:51 +0100
Organization: A noiseless patient Spider
Lines: 82
Message-ID: <u9jm4i$a4dp$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<87r0p4tyx4.fsf@bsb.me.uk>
<c52e1506-b0a5-4e5b-99c0-5e79c5305a3an@googlegroups.com>
<87o7k8rzh5.fsf@nosuchdomain.example.com>
<0fa83b40-26e6-427a-ba84-6cf8ac33172an@googlegroups.com>
<u98odb$25mj8$1@dont-email.me> <87jzuvsg7q.fsf@nosuchdomain.example.com>
<u9cfmj$2trto$1@dont-email.me> <87h6pyqgnp.fsf@nosuchdomain.example.com>
<u9cld3$2uof8$1@dont-email.me> <878rbaqch6.fsf@nosuchdomain.example.com>
<u9dm6t$370v3$1@dont-email.me>
<c339d764-b249-4950-bea7-69849f8096a3n@googlegroups.com>
<u9dvqj$38mb3$1@dont-email.me> <u9e1v9$38vf8$1@dont-email.me>
<u9e4bh$39ff2$1@dont-email.me> <u9e8so$3addm$1@dont-email.me>
<u9edc7$3bdu0$1@dont-email.me> <u9em5t$3d7sv$1@dont-email.me>
<875y6dne2u.fsf@nosuchdomain.example.com> <u9evak$3eutv$1@dont-email.me>
<3ff53ffd-299b-4dc8-a503-cfd170ce3e03n@googlegroups.com>
<u9gbnu$3pc9g$1@dont-email.me> <u9h29k$3ssnr$1@dont-email.me>
<u9hob6$3vo3c$1@dont-email.me> <u9jig1$9lnb$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jul 2023 16:56:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1ff3cd75a92dd528a6e3b811369f9b54";
logging-data="332217"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wDCslZONVYo+bAmhviO5WTk01duCIWlA="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:0qf6wHwf5CQw0tBfAiicvtMCtos=
In-Reply-To: <u9jig1$9lnb$2@dont-email.me>
 by: Bart - Sun, 23 Jul 2023 16:56 UTC

On 23/07/2023 16:54, David Brown wrote:
> On 23/07/2023 01:22, Bart wrote:
>>
>> On 22/07/2023 18:05, David Brown wrote:
>
>> > No, "int" is not 32-bit in C.
>>
>> This is where we keep going around in circles with C.
>
> "We" don't have a problem with how "int" in C works. /You/ have a
> problem with it.
>
>>
>> In 1982 when I started on all this stuff in earnest, ints were 16-bits.
>>
>> Until 32-bit processors become common in the 1990s, when ints become
>> 32 bits. Where they've been ever since. (I'm talking about home and
>> business computers of that era, which now probably includes laptops,
>> tablets and smartphones.)
>>
> In the majority of processors sold today, "int" is 16-bit. It's true
> that the proportions are changing and it may not be long before 32-bit
> "int" is in the majority. But we are not talking about something from
> decades ago - we are talking about /today/.
>
> It really bugs me when some people insist on believing the world
> revolves around their own tiny little slice of reality, and refuse to
> open their eyes and look around

It is a HUGE slice of reality.

You like to distort that reality by using the vast numbers of $1 chips
that are in everything, that happen to use 16-bit ints in their C compilers.

A better comparison would be in the number of distinct C programs
programmed using 16-bit ints, or the number of developers doing so, or
maybe even counting all developers across all languages.

Since, by your measure, the instances of programs in C using 16-bit
ints, would also outnumber the instances of programs in every other
language put together.

> It really bugs me when some people insist on believing the world
> revolves around their own tiny little slice of reality

Here's a quick survey of some other languages:

Go has an 'int' type which is 32 bits in 32-bit systems,
and 64 bits on 64-bit ones.

D has an 'int' type of 32 bits

Java has an 'int' type of 32 bits

C# has an 'int' type of 32 bits

Rust has an `isize` type that is 32/64 bits in 32/64-bit
systems

Notice there is no mention of 16 bit systems in Go and Rust. I don't
know whether those others work on 16-bit systems, but I doubt they lose
any sleep over them.

So quite a few languages, their developers, and their users, must also
be living in their own tiny slice of reality where ints are either 32 or
64 bits.

Or perhaps it's just frustrated embedded C developers stuck with using
under-powered processors who have a warped view of it.

> But if you want to talk about the C language, talk about the C language,
> not a needlessly restricted subset of its implementations.

How about talking about the C language as it is actually used by the
majority of developers, rather than marginalising everyone in the 90%
group where int actually is 32 bits and suggesting they are in the minority.

(I don't know the actual figures, but neither do you.)

Re: you think rust may outthrone c?

<333fa54a-745a-45b2-bc71-e940083f7534n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:93c1:0:b0:767:54fd:65ca with SMTP id v184-20020a3793c1000000b0076754fd65camr18725qkd.11.1690135423155;
Sun, 23 Jul 2023 11:03:43 -0700 (PDT)
X-Received: by 2002:a05:6870:1a8e:b0:1a6:8824:bd40 with SMTP id
ef14-20020a0568701a8e00b001a68824bd40mr8904706oab.5.1690135422845; Sun, 23
Jul 2023 11:03:42 -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: Sun, 23 Jul 2023 11:03:42 -0700 (PDT)
In-Reply-To: <u9jm4i$a4dp$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:b1e1:e90c:9773:eb0c;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:b1e1:e90c:9773:eb0c
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<87r0p4tyx4.fsf@bsb.me.uk> <c52e1506-b0a5-4e5b-99c0-5e79c5305a3an@googlegroups.com>
<87o7k8rzh5.fsf@nosuchdomain.example.com> <0fa83b40-26e6-427a-ba84-6cf8ac33172an@googlegroups.com>
<u98odb$25mj8$1@dont-email.me> <87jzuvsg7q.fsf@nosuchdomain.example.com>
<u9cfmj$2trto$1@dont-email.me> <87h6pyqgnp.fsf@nosuchdomain.example.com>
<u9cld3$2uof8$1@dont-email.me> <878rbaqch6.fsf@nosuchdomain.example.com>
<u9dm6t$370v3$1@dont-email.me> <c339d764-b249-4950-bea7-69849f8096a3n@googlegroups.com>
<u9dvqj$38mb3$1@dont-email.me> <u9e1v9$38vf8$1@dont-email.me>
<u9e4bh$39ff2$1@dont-email.me> <u9e8so$3addm$1@dont-email.me>
<u9edc7$3bdu0$1@dont-email.me> <u9em5t$3d7sv$1@dont-email.me>
<875y6dne2u.fsf@nosuchdomain.example.com> <u9evak$3eutv$1@dont-email.me>
<3ff53ffd-299b-4dc8-a503-cfd170ce3e03n@googlegroups.com> <u9gbnu$3pc9g$1@dont-email.me>
<u9h29k$3ssnr$1@dont-email.me> <u9hob6$3vo3c$1@dont-email.me>
<u9jig1$9lnb$2@dont-email.me> <u9jm4i$a4dp$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <333fa54a-745a-45b2-bc71-e940083f7534n@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sun, 23 Jul 2023 18:03:43 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Malcolm McLean - Sun, 23 Jul 2023 18:03 UTC

On Sunday, 23 July 2023 at 17:57:04 UTC+1, Bart wrote:
> On 23/07/2023 16:54, David Brown wrote:
>
> > It really bugs me when some people insist on believing the world
> > revolves around their own tiny little slice of reality, and refuse to
> > open their eyes and look around
> It is a HUGE slice of reality.
>
> You like to distort that reality by using the vast numbers of $1 chips
> that are in everything, that happen to use 16-bit ints in their C compilers.
>
> A better comparison would be in the number of distinct C programs
> programmed using 16-bit ints, or the number of developers doing so, or
> maybe even counting all developers across all languages.
>
> Since, by your measure, the instances of programs in C using 16-bit
> ints, would also outnumber the instances of programs in every other
> language put together.
> > It really bugs me when some people insist on believing the world
> > revolves around their own tiny little slice of reality
>
> Or perhaps it's just frustrated embedded C developers stuck with using
> under-powered processors who have a warped view of it.
>
C has largely been replaced by C++ for desktop and large computer
development. Even gcc is now written in C++.But not for embedded
programming, Embedded devices are not under powered, in fact a lot
of the time they are grossly over-powered - a 2MHz processor might be
doing nothing other than update the LED of an 8 segment display
every second. But throwing the latest Intel Pentium at the job would
increase the price ridiculously. Keeping costs down is the name of the
game in consumer electronics.

Re: you think rust may outthrone c?

<u9jqnf$ak1k$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 20:15:10 +0200
Organization: A noiseless patient Spider
Lines: 96
Message-ID: <u9jqnf$ak1k$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<87o7k8rzh5.fsf@nosuchdomain.example.com>
<0fa83b40-26e6-427a-ba84-6cf8ac33172an@googlegroups.com>
<u98odb$25mj8$1@dont-email.me> <87jzuvsg7q.fsf@nosuchdomain.example.com>
<u9cfmj$2trto$1@dont-email.me> <87h6pyqgnp.fsf@nosuchdomain.example.com>
<u9cld3$2uof8$1@dont-email.me> <878rbaqch6.fsf@nosuchdomain.example.com>
<u9dm6t$370v3$1@dont-email.me>
<c339d764-b249-4950-bea7-69849f8096a3n@googlegroups.com>
<u9dvqj$38mb3$1@dont-email.me> <u9e1v9$38vf8$1@dont-email.me>
<u9e4bh$39ff2$1@dont-email.me> <u9e8so$3addm$1@dont-email.me>
<u9edc7$3bdu0$1@dont-email.me> <u9em5t$3d7sv$1@dont-email.me>
<875y6dne2u.fsf@nosuchdomain.example.com> <u9evak$3eutv$1@dont-email.me>
<3ff53ffd-299b-4dc8-a503-cfd170ce3e03n@googlegroups.com>
<u9gbnu$3pc9g$1@dont-email.me> <u9h29k$3ssnr$1@dont-email.me>
<u9hob6$3vo3c$1@dont-email.me> <u9jig1$9lnb$2@dont-email.me>
<u9jm4i$a4dp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jul 2023 18:15:11 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="bfe767700adbeca18404d501415d4186";
logging-data="348212"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FG2wSa9PYVhMTMOyZX9Xbg/5F1r15/LU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:08e5Ayj35/cdoew1e5+M3fR8cx8=
In-Reply-To: <u9jm4i$a4dp$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Sun, 23 Jul 2023 18:15 UTC

On 23/07/2023 18:56, Bart wrote:
> On 23/07/2023 16:54, David Brown wrote:
> > On 23/07/2023 01:22, Bart wrote:
> >>
> >> On 22/07/2023 18:05, David Brown wrote:
> >
> >>  > No, "int" is not 32-bit in C.
> >>
> >> This is where we keep going around in circles with C.
> >
> > "We" don't have a problem with how "int" in C works.  /You/ have a
> > problem with it.
> >
> >>
> >> In 1982 when I started on all this stuff in earnest, ints were 16-bits.
> >>
> >> Until 32-bit processors become common in the 1990s, when ints become
> >> 32 bits. Where they've been ever since. (I'm talking about home and
> >> business computers of that era, which now probably includes laptops,
> >> tablets and smartphones.)
> >>
> > In the majority of processors sold today, "int" is 16-bit.  It's true
> > that the proportions are changing and it may not be long before 32-bit
> > "int" is in the majority.  But we are not talking about something from
> > decades ago - we are talking about /today/.
> >
> > It really bugs me when some people insist on believing the world
> > revolves around their own tiny little slice of reality, and refuse to
> > open their eyes and look around
>
> It is a HUGE slice of reality.
>
> You like to distort that reality by using the vast numbers of $1 chips
> that are in everything, that happen to use 16-bit ints in their C
> compilers.
>
> A better comparison would be in the number of distinct C programs
> programmed using 16-bit ints, or the number of developers doing so, or
> maybe even counting all developers across all languages.

Adding developers from different languages would not be at all helpful -
many don't have sized integers.

Of course most C programmers today work for targets that have 32-bit
int. That's not the point. The point is you are /wrong/ to suggest
that C ints are 32-bit. I gave (approximate) data points to show that
you are not only wrong in theory (which is without doubt the case), but
wrong in practice.

If you want to talk only about C on a particular implementation or
target, it's fine to say "int on x86-64 is 32-bit". But if you are
talking about C in general, the C standards define what "int" means.

You might not have noticed, but this is /not/ "comp.lang.c.x86-64".
Here, the main focus is on the C language, not particular
implementations. And yes, sometimes people here enjoy discussing the
hypothetical technicalities as well as real-world practicalities.

>
> Since, by your measure, the instances of programs in C using 16-bit
> ints, would also outnumber the instances of programs in every other
> language put together.

They probably do, yes. But we are not talking about other languages.

>
> > It really bugs me when some people insist on believing the world
> > revolves around their own tiny little slice of reality
>
> Here's a quick survey of some other languages:

I'll snip the irrelevant parts.

>
> > But if you want to talk about the C language, talk about the C language,
> > not a needlessly restricted subset of its implementations.
>
> How about talking about the C language as it is actually used by the
> majority of developers, rather than marginalising everyone in the 90%
> group where int actually is 32 bits and suggesting they are in the
> minority.
>

I'm not marginalising anyone. /You/ are. No one is suggesting that
int's are always 16-bit - we are merely saying that the C language, in
theory and in practice, does not guarantee that ints are 32-bit. It's
really quite a simple matter.

> (I don't know the actual figures, but neither do you.)
>

No, I have only rough estimates based on what I read on industry-related
news sites. It's possible to get hold of more exact figures, but such
reports cost a great deal of money.

Re: you think rust may outthrone c?

<u9juf1$avv8$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 20:18:57 +0100
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <u9juf1$avv8$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<87o7k8rzh5.fsf@nosuchdomain.example.com>
<0fa83b40-26e6-427a-ba84-6cf8ac33172an@googlegroups.com>
<u98odb$25mj8$1@dont-email.me> <87jzuvsg7q.fsf@nosuchdomain.example.com>
<u9cfmj$2trto$1@dont-email.me> <87h6pyqgnp.fsf@nosuchdomain.example.com>
<u9cld3$2uof8$1@dont-email.me> <878rbaqch6.fsf@nosuchdomain.example.com>
<u9dm6t$370v3$1@dont-email.me>
<c339d764-b249-4950-bea7-69849f8096a3n@googlegroups.com>
<u9dvqj$38mb3$1@dont-email.me> <u9e1v9$38vf8$1@dont-email.me>
<u9e4bh$39ff2$1@dont-email.me> <u9e8so$3addm$1@dont-email.me>
<u9edc7$3bdu0$1@dont-email.me> <u9em5t$3d7sv$1@dont-email.me>
<875y6dne2u.fsf@nosuchdomain.example.com> <u9evak$3eutv$1@dont-email.me>
<3ff53ffd-299b-4dc8-a503-cfd170ce3e03n@googlegroups.com>
<u9gbnu$3pc9g$1@dont-email.me> <u9h29k$3ssnr$1@dont-email.me>
<u9hob6$3vo3c$1@dont-email.me> <u9jig1$9lnb$2@dont-email.me>
<u9jm4i$a4dp$1@dont-email.me> <u9jqnf$ak1k$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jul 2023 19:18:57 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1ff3cd75a92dd528a6e3b811369f9b54";
logging-data="360424"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/B1ZDc7wiBblq7a0xAQRnqRrSDGReLxlo="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.13.0
Cancel-Lock: sha1:H6zgOKJCzFzB2uGOGnT7FYsqyZw=
In-Reply-To: <u9jqnf$ak1k$1@dont-email.me>
 by: Bart - Sun, 23 Jul 2023 19:18 UTC

On 23/07/2023 19:15, David Brown wrote:
> On 23/07/2023 18:56, Bart wrote:
>> How about talking about the C language as it is actually used by the
>> majority of developers, rather than marginalising everyone in the 90%
>> group where int actually is 32 bits and suggesting they are in the
>> minority.
>>
>
> I'm not marginalising anyone. /You/ are. No one is suggesting that
> int's are always 16-bit - we are merely saying that the C language, in
> theory and in practice, does not guarantee that ints are 32-bit. It's
> really quite a simple matter.

The majority of people programming today will be using 32/64-bit
machines, and using languages that have settled on 32/64-bit types,
where that aspect has been exposed.

Including C. Since C is used in the OSes of those systems, in the APIs
of countless libraries, and is used to implement or be the target of
half those languages.

But you are saying all those people above cannot assume a 32-bit int,
because a small number of embedded C developers are using machines where
the compiler has chosen a 16-bit type.

Presumably yours and Keith's advice, if they want to assume a 32-bit
int, is to instead use a fixed-width type, or take their chances with
'long'.

OK, then why not advise those embedded developers against assuming `int`
is 16 bits, because it could conceivably be 32 bits or even 64?

So nobody uses `int`; great result! It still leaves the problem of
integer literals having a `int` type that now doesn't match their chosen
alternative.

I guess if somebody is really worried that a decade or two in the
future, 'int' may change upwards (in my 4-decade career it's changed up
once in C), or their application software might be ported to a PIC, they
can use an assert.

Re: you think rust may outthrone c?

<87o7k2l4ge.fsf@bsb.me.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Sun, 23 Jul 2023 22:10:09 +0100
Organization: A noiseless patient Spider
Lines: 155
Message-ID: <87o7k2l4ge.fsf@bsb.me.uk>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<87lefeukpy.fsf@bsb.me.uk> <u94pch$1dpd6$1@dont-email.me>
<87edl6uf9y.fsf@bsb.me.uk> <u95rn3$1k9hq$1@dont-email.me>
<87r0p4tyx4.fsf@bsb.me.uk>
<c52e1506-b0a5-4e5b-99c0-5e79c5305a3an@googlegroups.com>
<87o7k8rzh5.fsf@nosuchdomain.example.com>
<0fa83b40-26e6-427a-ba84-6cf8ac33172an@googlegroups.com>
<u98odb$25mj8$1@dont-email.me>
<87jzuvsg7q.fsf@nosuchdomain.example.com>
<u9cfmj$2trto$1@dont-email.me>
<87h6pyqgnp.fsf@nosuchdomain.example.com>
<u9cld3$2uof8$1@dont-email.me>
<878rbaqch6.fsf@nosuchdomain.example.com>
<u9dm6t$370v3$1@dont-email.me> <u9dv2c$38ir2$1@dont-email.me>
<u9e7bp$3a1ug$1@dont-email.me> <u9h055$3s62g$7@dont-email.me>
<87351foebi.fsf@bsb.me.uk> <u9jgmu$9i98$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="46eee68be2a45be2a6fdd3ba499a7b10";
logging-data="382192"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HY46+SVBBL+t1AeCwhj31wAd+K6bvZbA="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:fBGQpyZH8QCGb5vUgo2wf2Km/T0=
sha1:2rjwEIgiFZ+xubYCPg26V0+Fgks=
X-BSB-Auth: 1.9ce436c2a32b1daf9237.20230723221009BST.87o7k2l4ge.fsf@bsb.me.uk
 by: Ben Bacarisse - Sun, 23 Jul 2023 21:10 UTC

David Brown <david.brown@hesbynett.no> writes:

> On 22/07/2023 22:56, Ben Bacarisse wrote:
>> David Brown <david.brown@hesbynett.no> writes:
>>
>>> On 21/07/2023 17:14, Bart wrote:>
>>
>>>> C requires reduction of constant-expressions for compile-time
>>>> expressions, and within conditional expressions of the preprocessor.
>>>
>>> Yes.
>>>
>>>> So the mechanism for doing that is already there; it is not optional.
>>>
>>> When you have a "constant expression" that is used wherever a "constant"
>>> (what some people inaccurately call "integer literal") can be used, the
>>> compiler must evaluate the expression at compile time. Apart from that, it
>>> is all optional.
>>>
>>> Thus for "int x = 1 + 2;", the "1 + 2" must be evaluated at compile time
>>> for a file-scope or static variable, but can be evaluated at run time if it
>>> is a local variable.
>> Objects with static storage duration are "initialized only once, prior
>> to program startup". In any sane implementation, the calculation will
>> be done by the compiler. But in principle the calculation and
>> initialisation could be done by executable code that runs before main.
>>
>
> Of course - compilers can do anything that gives the same observable
> behaviour. The norm is that C toolchains put initialised static duration
> data into a single section of the executable, with the initial values as a
> binary section. Depending on the platform, either the initial data section
> is loaded then made writeable, or is copied to writeable ram on startup.
> But there is no requirement that it be done this way - merely a requirement
> that it /could/ be done this way. (Unlike in C++, where statically
> allocated data can have non-constant initialisation calculated at run-time
> before main starts.)
>
>> <cut>
>>>> In my languages and compilers, signed integer overflow has never been
>>>> undefined. It's a choice.
>>>>
>>> A bad choice. Seriously. I mean, what kind of screwed up idea of numbers
>>> do you have to have to think it's a good idea that adding two positive
>>> numbers can give you a negative number?
>> Two's complement numbers form a commutative ring. What's wrong with
>> that?
>
> Nothing - but equally, it has no benefit. It gives nothing particularly
> useful.

There's nothing wrong with it but relies on a screwed up idea of
numbers?

> Now, if you were to redefine your multiplication and have your n-bit
> numbers set up as a GF(2 ** n) finite field, you'd have some new useful
> properties.

It gives nothing particularly useful, but is the essential basis for
something you describe as having new useful properties?

> You'd be able to divide any integers, except for division by
> 0, without any fractions. But would it be useful, other than for people
> working on error correction algorithms? No, I don't believe so.

That's because the special division operator is of narrow use. That's
why it's not widely available in hardware. But the operations that make
two's complement numbers into a ring are widely available in hardware.

> Similarly, I don't believe defining the behaviour of signed integer
> arithmetic overflow actually helps anyone (other than occasional very niche
> situations when you really do want modulo behaviour).

I think it can make reasoning about the programs easier.

> When you overflow
> integer arithmetic, you get the wrong answer for pretty much every
> situation. I am at a loss as to why a predictable wrong answer is an
> improvement over an unpredictable wrong answer - surely the aim of the game
> is to avoid wrong answers in the first place.

Yes, but you get the right answers by thinking clearly and understanding
what the parts of a program do. I think that easier with plain two's
complement arithmetic.

From a practical point of view, where almost no one reasons about code
any more and everyone replies on testing, you want well-defined
semantics where overflow is trapped at run-time.

>> Making some arithmetic operations undefined results is a
>> structure with no simple mathematical description.
>
> Agreed. But it lets you have useful rules, leading to simplification for
> both the compiler and the programmer. Knowing that as long as the
> programmer hasn't made a mistake earlier in their code, "n + 1 > n" and
> similar rules always holds true can be useful.

Interesting. Can you give an example where this rule helps a programmer
(and plain two's complement would not)?

> Of course, that means the programmer is responsible for ensuring that "n"
> is not INT_MAX at that point in the code, and may have to take steps to
> make sure of that. But they must do so anyway, regardless of how integer
> overflow is or is not defined, because the any definition would almost
> certainly be wrong.

Yes, none of that is specific to undefined overflow.

> So you lose nothing, and gain something, by having the behaviour
> undefined.

You example might help me see the gain.

> Even better, IMHO - when something is undefined behaviour, a compiler or
> debugging tool can consider it an error. That means you can use tools to
> help catch bugs in your code - static analysis of potential overflows, or
> run-time error handling. But if the behaviour is defined in some way, then
> it is not an error - the compiler has to assume that you intentionally
> wrapped your integers.
>
> I for one would rather have help getting my programs correct, than a
> language that blindly accepted all my mistakes.

Tools should be to targeted at programmers. If there is a tool for C
that can detect signed arithmetic overflow, there should be one that can
detect wrapping in two's complement arithmetic. Maybe no one implements
such things, but that's not the fault of the language semantics.

> There are some rare occasions where modulo behaviour is useful. There are
> also occasions where saturation would be more helpful, or some kind of NaN
> behaviour similar to floating point arithmetic. There is no reason to
> consider wrapping as somehow "correct" overflow behaviour.

Indeed. I don't consider it as somehow "correct".

>>> Two's complement wrapping is a side-effect of efficient ALU hardware
>>> implementation, nothing more. It's not something you want in a
>>> language.
>> I'd make the opposite argument. Making overflow undefined in C was a
>> consequence of hardware that behaved that way, nothing more. It has
>> found a niche in modern optimising compilers, but that's a side effect.
>
> It is certainly possible that C originally made overflow UB because
> different hardware worked in different ways in the early days of C. But I
> think that if that had been the sole motivation and people thought two's
> complement wrapping would be useful, it would have made more sense to make
> overflow behaviour implementation defined rather than explicitly
> undefined.

That would require documenting all the possible behaviours. I might
have been left as undefined because no one was confident that they could
list all the real-world choices that mattered.

--
Ben.

Re: you think rust may outthrone c?

<7a6a83e2-2d84-46b9-8132-a0441e243981n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:19a1:b0:403:e8cd:284c with SMTP id u33-20020a05622a19a100b00403e8cd284cmr21609qtc.12.1690149103909;
Sun, 23 Jul 2023 14:51:43 -0700 (PDT)
X-Received: by 2002:a05:622a:13:b0:403:a91d:c0e7 with SMTP id
x19-20020a05622a001300b00403a91dc0e7mr30026qtw.0.1690149103714; Sun, 23 Jul
2023 14:51:43 -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: Sun, 23 Jul 2023 14:51:43 -0700 (PDT)
In-Reply-To: <87o7k2l4ge.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:b1e1:e90c:9773:eb0c;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:b1e1:e90c:9773:eb0c
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<87lefeukpy.fsf@bsb.me.uk> <u94pch$1dpd6$1@dont-email.me> <87edl6uf9y.fsf@bsb.me.uk>
<u95rn3$1k9hq$1@dont-email.me> <87r0p4tyx4.fsf@bsb.me.uk> <c52e1506-b0a5-4e5b-99c0-5e79c5305a3an@googlegroups.com>
<87o7k8rzh5.fsf@nosuchdomain.example.com> <0fa83b40-26e6-427a-ba84-6cf8ac33172an@googlegroups.com>
<u98odb$25mj8$1@dont-email.me> <87jzuvsg7q.fsf@nosuchdomain.example.com>
<u9cfmj$2trto$1@dont-email.me> <87h6pyqgnp.fsf@nosuchdomain.example.com>
<u9cld3$2uof8$1@dont-email.me> <878rbaqch6.fsf@nosuchdomain.example.com>
<u9dm6t$370v3$1@dont-email.me> <u9dv2c$38ir2$1@dont-email.me>
<u9e7bp$3a1ug$1@dont-email.me> <u9h055$3s62g$7@dont-email.me>
<87351foebi.fsf@bsb.me.uk> <u9jgmu$9i98$1@dont-email.me> <87o7k2l4ge.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7a6a83e2-2d84-46b9-8132-a0441e243981n@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Sun, 23 Jul 2023 21:51:43 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Malcolm McLean - Sun, 23 Jul 2023 21:51 UTC

On Sunday, 23 July 2023 at 22:10:25 UTC+1, Ben Bacarisse wrote:
> David Brown <david...@hesbynett.no> writes:
>
> > Agreed. But it lets you have useful rules, leading to simplification for
> > both the compiler and the programmer. Knowing that as long as the
> > programmer hasn't made a mistake earlier in their code, "n + 1 > n" and
> > similar rules always holds true can be useful.
> Interesting. Can you give an example where this rule helps a programmer
> (and plain two's complement would not)?
>
I'm doing audio programming for my hobby project at the moment, so let's
give a (hypothetical) audio problem. The 16 bit signed samples come in with
a DC bias (the average value, which should be zero), which (unrealistically
but not too unrealistically) is known at compile time.

So
#define DC_BIAS_CORRECTION 1
#define dc_correct(pcm)(pcm + DC_BIAS_CORRECTION)

if (dccorrect(pcm) > pcm)
/* dc correction increases the value, take appropriate action) */

So we've got if( n + 1 > n) in code, without the programmer writing
any aburdity.
Now what will the action be? Of course the code will be written for 32 bit machines,
so it's

int correctedpcm = dccorrect(pcm);
if (correctedpcm > 32768) /* not SHRT_MAX! Samples must fir in 16 bits */
/* dc correction has caused the sample to overflow */
correctedpcm = pcm; /* what can we do? Just reset to original value and hope */

Now with David Brown's scheme, when we move this code to a processor with
16 bit ints, the if() expression is undefined. But because it's UB, the compiler
correctly guesses that we want it to be true. Then the assignment is also UB
(the dc_correct macro hasn't been written correctly), but it will do what we want.
So ir works, With Ben's system (the commutative ring) the test return false, and it
fails


devel / comp.lang.c / Re: you think rust may *DE*throne c?

Pages:123456789101112131415161718192021222324252627282930313233343536373839
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor