Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"It's not just a computer -- it's your ass." -- Cal Keegan


devel / comp.lang.c / Re: C23 (C2x) changes

SubjectAuthor
* C23 (C2x) changesMehdi Amini
+* Re: C23 (C2x) changesDavid Brown
|`- Re: C23 (C2x) changesMehdi Amini
+* Re: C23 (C2x) changesJohn Bode
|+* Re: C23 (C2x) changesDavid Brown
||+* Re: C23 (C2x) changesBart
|||+- Re: C23 (C2x) changesScott Lurndal
|||+* Re: C23 (C2x) changesDavid Brown
||||+* Re: C23 (C2x) changesBart
|||||`* Re: C23 (C2x) changesDavid Brown
||||| `* Re: C23 (C2x) changesBart
|||||  +- Re: C23 (C2x) changesKeith Thompson
|||||  `* Re: C23 (C2x) changesDavid Brown
|||||   +* Re: C23 (C2x) changesBart
|||||   |+- Re: C23 (C2x) changesKeith Thompson
|||||   |`* Re: C23 (C2x) changesDavid Brown
|||||   | `* Re: C23 (C2x) changesBart
|||||   |  `* Re: C23 (C2x) changesDavid Brown
|||||   |   `- Re: C23 (C2x) changesBart
|||||   `* Re: C23 (C2x) changesIan Pilcher
|||||    `- Re: C23 (C2x) changesScott Lurndal
||||`* Re: C23 (C2x) changesBart
|||| +* Re: C23 (C2x) changesScott Lurndal
|||| |+- Re: C23 (C2x) changesLew Pitcher
|||| |`* Re: C23 (C2x) changesTim Rentsch
|||| | `- Re: C23 (C2x) changesBranimir Maksimovic
|||| `- Re: C23 (C2x) changesKeith Thompson
|||`* Re: C23 (C2x) changesManfred
||| +* Re: C23 (C2x) changesBen Bacarisse
||| |`* Re: C23 (C2x) changesManfred
||| | +- Re: C23 (C2x) changesantispam
||| | `* Re: C23 (C2x) changesTim Rentsch
||| |  `* Re: C23 (C2x) changesBranimir Maksimovic
||| |   `* Re: C23 (C2x) changesKeith Thompson
||| |    `* Re: C23 (C2x) changesBranimir Maksimovic
||| |     `* Re: C23 (C2x) changesKeith Thompson
||| |      `* Re: C23 (C2x) changesBranimir Maksimovic
||| |       `* Re: C23 (C2x) changesKeith Thompson
||| |        `* Re: C23 (C2x) changesBranimir Maksimovic
||| |         +* Re: C23 (C2x) changesKeith Thompson
||| |         |`- Re: C23 (C2x) changesBranimir Maksimovic
||| |         `* Re: C23 (C2x) changesDavid Brown
||| |          `* Re: C23 (C2x) changesBranimir Maksimovic
||| |           `* Re: C23 (C2x) changesKeith Thompson
||| |            +- Re: C23 (C2x) changesBranimir Maksimovic
||| |            `* Re: C23 (C2x) changesTim Rentsch
||| |             `- Re: C23 (C2x) changesBranimir Maksimovic
||| `- Re: C23 (C2x) changesBranimir Maksimovic
||`* Re: C23 (C2x) changesBart
|| `* Re: C23 (C2x) changesLew Pitcher
||  +- Re: C23 (C2x) changesBart
||  `* Re: C23 (C2x) changesLew Pitcher
||   `- Re: C23 (C2x) changesBart
|`* Re: C23 (C2x) changesFlorian Weimer
| +- Re: C23 (C2x) changesGuillaume
| `- Re: C23 (C2x) changesKeith Thompson
+* Re: C23 (C2x) changesWilliam Ahern
|`* Re: C23 (C2x) changesTim Rentsch
| `- Re: C23 (C2x) changesBranimir Maksimovic
+* Re: C23 (C2x) changesGuillaume
|`* Re: C23 (C2x) changesPhilipp Klaus Krause
| `* Re: C23 (C2x) changesKeith Thompson
|  +* Re: C23 (C2x) changesBart
|  |`- Re: C23 (C2x) changesThiago Adams
|  `- Re: C23 (C2x) changesGuillaume
+* Static bounds checking (was Re: C23 (C2x) changes)William Ahern
|+* Re: Static bounds checking (was Re: C23 (C2x) changes)David Brown
||`- Re: Static bounds checking (was Re: C23 (C2x) changes)Philipp Klaus Krause
|`* Re: Static bounds checking (was Re: C23 (C2x) changes)Branimir Maksimovic
| +* Re: Static bounds checking (was Re: C23 (C2x) changes)Philipp Klaus Krause
| |`* Re: Static bounds checking (was Re: C23 (C2x) changes)Branimir Maksimovic
| | `- Re: Static bounds checking (was Re: C23 (C2x) changes)Philipp Klaus Krause
| `* Re: Static bounds checking (was Re: C23 (C2x) changes)Bonita Montero
|  `* Re: Static bounds checking (was Re: C23 (C2x) changes)Branimir Maksimovic
|   +* Re: Static bounds checking (was Re: C23 (C2x) changes)Philipp Klaus Krause
|   |+- Re: Static bounds checking (was Re: C23 (C2x) changes)Branimir Maksimovic
|   |`- Re: Static bounds checking (was Re: C23 (C2x) changes)antispam
|   `* Re: Static bounds checking (was Re: C23 (C2x) changes)Bonita Montero
|    `* Re: Static bounds checking (was Re: C23 (C2x) changes)Branimir Maksimovic
|     +* Re: Static bounds checking (was Re: C23 (C2x) changes)Kaz Kylheku
|     |`- Re: Static bounds checking (was Re: C23 (C2x) changes)Branimir Maksimovic
|     `- Re: Static bounds checking (was Re: C23 (C2x) changes)Bonita Montero
+* Re: C23 (C2x) changesThiago Adams
|`* Re: C23 (C2x) changesKeith Thompson
| +- Re: C23 (C2x) changesDavid Brown
| +* Re: C23 (C2x) changesThiago Adams
| |`- Re: C23 (C2x) changesThiago Adams
| `- Re: C23 (C2x) changesMehdi Amini
`* Re: C23 (C2x) changesTim Rentsch
 +* Re: C23 (C2x) changesThiago Adams
 |`* Re: C23 (C2x) changesTim Rentsch
 | `- Re: C23 (C2x) changesDavid Brown
 +* Re: C23 (C2x) changesGuillaume
 |+* Re: C23 (C2x) changesDavid Brown
 ||`* Re: C23 (C2x) changesGuillaume
 || `* Re: C23 (C2x) changesDavid Brown
 ||  `* Re: C23 (C2x) changesThiago Adams
 ||   `- Re: C23 (C2x) changesThiago Adams
 |`- Re: C23 (C2x) changesTim Rentsch
 `* Re: C23 (C2x) changesBonita Montero
  `* Re: C23 (C2x) changesJim Jackson

Pages:12345
Re: C23 (C2x) changes

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

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Sun, 03 Oct 2021 23:24:38 -0700
Organization: None to speak of
Lines: 44
Message-ID: <87v92dfgt5.fsf@nosuchdomain.example.com>
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me> <siahul$tb8$1@dont-email.me>
<sisn5m$ni6$1@gioia.aioe.org> <87y27it1mo.fsf@bsb.me.uk>
<sitcfp$1fgs$1@gioia.aioe.org> <86lf3bsbwz.fsf@linuxsc.com>
<0L_5J.44593$rsCb.5791@fx01.iad>
<87h7dzgk1k.fsf@nosuchdomain.example.com>
<z786J.143438$rl3.15795@fx45.iad>
<87czomhf47.fsf@nosuchdomain.example.com>
<LPf6J.62135$6U3.7179@fx43.iad>
<878rz9hmvg.fsf@nosuchdomain.example.com>
<TXv6J.38722$GD7.8414@fx23.iad>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="f039da7ec9ded39f2ed1a75f27d21830";
logging-data="575"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rNJtvUiQu/9/mkuFhfyIG"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:W/HZyeAfKOrTMrZ1haOW5dIiQ9g=
sha1:Cumbk1Y2lxeFd9iQVM7U8flAeAU=
 by: Keith Thompson - Mon, 4 Oct 2021 06:24 UTC

Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
> On 2021-10-03, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>> Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
>>> On 2021-10-03, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>>>> Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
>>>>> On 2021-10-02, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>>>>>> Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
>>>> [...]
>>>>>>> Please take a look at this video carefully:
>>>>>>> https://youtu.be/094y1Z2wpJg
>>>>>>
>>>>>> Why?
>>>>>>
>>>>>> (It's about the Collatz Conjecture, and it's more than 20 minutes long.)
>>>>>>
>>>>> So do you have *explanation*?
>>>>
>>>> For what?
>>>>
>>>>> Why do you ask about negative primes?
>>>>
>>>> I didn't.
>>>>
>>>> Is there anything in the video that's relevant either to this newsgroup
>>>> or to this thread? If so, what?
>>>>
>>> Sorry, that was Ttim Rensch i replied, you just replied
>>> on something wasn't you asked for :P
>>
>> So you posted a link to a 20-minute video with no explanation, and
>> you're still unwilling to explain how or whether it's relevant.
>>
> It shows two things: math is connected to reality,
> and second, explains why strong AI is impossible :P

So it's not relevant to this thread or to this newsgroup.

This newsgroup discusses the C programming language. If you want to
discuss something unrelated to that, please find another place to do so.

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

Re: C23 (C2x) changes

<syx6J.125668$z%4.123129@fx37.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx37.iad.POSTED!not-for-mail
Newsgroups: comp.lang.c
From: branimir...@icloud.com (Branimir Maksimovic)
Subject: Re: C23 (C2x) changes
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me> <siahul$tb8$1@dont-email.me>
<sisn5m$ni6$1@gioia.aioe.org> <87y27it1mo.fsf@bsb.me.uk>
<sitcfp$1fgs$1@gioia.aioe.org> <86lf3bsbwz.fsf@linuxsc.com>
<0L_5J.44593$rsCb.5791@fx01.iad> <87h7dzgk1k.fsf@nosuchdomain.example.com>
<z786J.143438$rl3.15795@fx45.iad> <87czomhf47.fsf@nosuchdomain.example.com>
<LPf6J.62135$6U3.7179@fx43.iad> <878rz9hmvg.fsf@nosuchdomain.example.com>
<TXv6J.38722$GD7.8414@fx23.iad> <87v92dfgt5.fsf@nosuchdomain.example.com>
User-Agent: slrn/1.0.3 (Darwin)
Lines: 19
Message-ID: <syx6J.125668$z%4.123129@fx37.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Mon, 04 Oct 2021 06:54:16 UTC
Organization: usenet-news.net
Date: Mon, 04 Oct 2021 06:54:16 GMT
X-Received-Bytes: 1810
 by: Branimir Maksimovic - Mon, 4 Oct 2021 06:54 UTC

On 2021-10-04, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>
> So it's not relevant to this thread or to this newsgroup.
>
> This newsgroup discusses the C programming language. If you want to
> discuss something unrelated to that, please find another place to do so.
>
It is relevant, as qustion was if prime numbers can be negative.
I haven't asked question, I just gave link that discuss prime
numbers and whether they can be considered negative...
iThis all started with question of whether unsigned integers
can be considered mathematical concept. Unswer is yes.
Natural set + zero.
--

7-77-777
Evil Sinner!
to weak you should be meek, and you should brainfuck stronger
https://github.com/rofl0r/chaos-pp

Re: C23 (C2x) changes

<sjec83$1do$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Mon, 4 Oct 2021 09:58:59 +0200
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <sjec83$1do$1@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me> <siahul$tb8$1@dont-email.me>
<sisn5m$ni6$1@gioia.aioe.org> <87y27it1mo.fsf@bsb.me.uk>
<sitcfp$1fgs$1@gioia.aioe.org> <86lf3bsbwz.fsf@linuxsc.com>
<0L_5J.44593$rsCb.5791@fx01.iad> <87h7dzgk1k.fsf@nosuchdomain.example.com>
<z786J.143438$rl3.15795@fx45.iad> <87czomhf47.fsf@nosuchdomain.example.com>
<LPf6J.62135$6U3.7179@fx43.iad> <878rz9hmvg.fsf@nosuchdomain.example.com>
<TXv6J.38722$GD7.8414@fx23.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Oct 2021 07:58:59 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="6acffc1889c316eb5736cd1989e0bc5f";
logging-data="1464"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19BRDZZ4za1gWNkDL92pujU3M0amDD++zw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:KIRP5kAt4kzJ58bQX4LIOUyXrBc=
In-Reply-To: <TXv6J.38722$GD7.8414@fx23.iad>
Content-Language: en-GB
 by: David Brown - Mon, 4 Oct 2021 07:58 UTC

On 04/10/2021 07:04, Branimir Maksimovic wrote:
> On 2021-10-03, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>> Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
>>> On 2021-10-03, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>>>> Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
>>>>> On 2021-10-02, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>>>>>> Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
>>>> [...]
>>>>>>> Please take a look at this video carefully:
>>>>>>> https://youtu.be/094y1Z2wpJg
>>>>>>
>>>>>> Why?
>>>>>>
>>>>>> (It's about the Collatz Conjecture, and it's more than 20 minutes long.)
>>>>>>
>>>>> So do you have *explanation*?
>>>>
>>>> For what?
>>>>
>>>>> Why do you ask about negative primes?
>>>>
>>>> I didn't.
>>>>
>>>> Is there anything in the video that's relevant either to this newsgroup
>>>> or to this thread? If so, what?
>>>>
>>> Sorry, that was Ttim Rensch i replied, you just replied
>>> on something wasn't you asked for :P
>>
>> So you posted a link to a 20-minute video with no explanation, and
>> you're still unwilling to explain how or whether it's relevant.
>>
> It shows two things: math is connected to reality,
> and second, explains why strong AI is impossible :P
>

No, it does not show either of these two things. Have you actually
/watched/ it yourself?

Neither of these two points has anything to do with C. Nothing in the
video has anything to do with C. It is completely unrelated to anything
in this group, except for the one thread that was precisely about C code
for implementing the mathematics in the Collatz Conjecture.

It is an interesting and worthwhile video, IMHO, and I had watched it
previously. But this is a newsgroup for C, not a group for interesting
and worthwhile videos (even imagining that there could be a consensus on
what is interesting in a video).

Re: C23 (C2x) changes

<7rF6J.144277$rl3.110823@fx45.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!feeder5.feed.usenet.farm!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx45.iad.POSTED!not-for-mail
Newsgroups: comp.lang.c
From: branimir...@icloud.com (Branimir Maksimovic)
Subject: Re: C23 (C2x) changes
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me> <siahul$tb8$1@dont-email.me>
<sisn5m$ni6$1@gioia.aioe.org> <87y27it1mo.fsf@bsb.me.uk>
<sitcfp$1fgs$1@gioia.aioe.org> <86lf3bsbwz.fsf@linuxsc.com>
<0L_5J.44593$rsCb.5791@fx01.iad> <87h7dzgk1k.fsf@nosuchdomain.example.com>
<z786J.143438$rl3.15795@fx45.iad> <87czomhf47.fsf@nosuchdomain.example.com>
<LPf6J.62135$6U3.7179@fx43.iad> <878rz9hmvg.fsf@nosuchdomain.example.com>
<TXv6J.38722$GD7.8414@fx23.iad> <sjec83$1do$1@dont-email.me>
User-Agent: slrn/1.0.3 (Darwin)
Lines: 61
Message-ID: <7rF6J.144277$rl3.110823@fx45.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Mon, 04 Oct 2021 15:52:35 UTC
Organization: usenet-news.net
Date: Mon, 04 Oct 2021 15:52:35 GMT
X-Received-Bytes: 3361
 by: Branimir Maksimovic - Mon, 4 Oct 2021 15:52 UTC

On 2021-10-04, David Brown <david.brown@hesbynett.no> wrote:
> On 04/10/2021 07:04, Branimir Maksimovic wrote:
>> On 2021-10-03, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>>> Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
>>>> On 2021-10-03, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>>>>> Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
>>>>>> On 2021-10-02, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
>>>>>>> Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
>>>>> [...]
>>>>>>>> Please take a look at this video carefully:
>>>>>>>> https://youtu.be/094y1Z2wpJg
>>>>>>>
>>>>>>> Why?
>>>>>>>
>>>>>>> (It's about the Collatz Conjecture, and it's more than 20 minutes
>>>>>>> long.)
>>>>>>>
>>>>>> So do you have *explanation*?
>>>>>
>>>>> For what?
>>>>>
>>>>>> Why do you ask about negative primes?
>>>>>
>>>>> I didn't.
>>>>>
>>>>> Is there anything in the video that's relevant either to this newsgroup
>>>>> or to this thread? If so, what?
>>>>>
>>>> Sorry, that was Ttim Rensch i replied, you just replied on something
>>>> wasn't you asked for :P
>>>
>>> So you posted a link to a 20-minute video with no explanation, and you're
>>> still unwilling to explain how or whether it's relevant.
>>>
>> It shows two things: math is connected to reality, and second, explains why
>> strong AI is impossible :P
>>
>
> No, it does not show either of these two things. Have you actually /watched/
> it yourself?
>
> Neither of these two points has anything to do with C. Nothing in the video
> has anything to do with C. It is completely unrelated to anything in this
> group, except for the one thread that was precisely about C code for
> implementing the mathematics in the Collatz Conjecture.
>
> It is an interesting and worthwhile video, IMHO, and I had watched it
> previously. But this is a newsgroup for C, not a group for interesting and
> worthwhile videos (even imagining that there could be a consensus on what is
> interesting in a video).
>
>
Look when you speaking about numbers and relation of C types to numbers
it is relevant...

--

7-77-777
Evil Sinner!
to weak you should be meek, and you should brainfuck stronger
https://github.com/rofl0r/chaos-pp

Re: C23 (C2x) changes

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

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Mon, 04 Oct 2021 10:45:00 -0700
Organization: None to speak of
Lines: 18
Message-ID: <87mtnofzvn.fsf@nosuchdomain.example.com>
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me> <siahul$tb8$1@dont-email.me>
<sisn5m$ni6$1@gioia.aioe.org> <87y27it1mo.fsf@bsb.me.uk>
<sitcfp$1fgs$1@gioia.aioe.org> <86lf3bsbwz.fsf@linuxsc.com>
<0L_5J.44593$rsCb.5791@fx01.iad>
<87h7dzgk1k.fsf@nosuchdomain.example.com>
<z786J.143438$rl3.15795@fx45.iad>
<87czomhf47.fsf@nosuchdomain.example.com>
<LPf6J.62135$6U3.7179@fx43.iad>
<878rz9hmvg.fsf@nosuchdomain.example.com>
<TXv6J.38722$GD7.8414@fx23.iad> <sjec83$1do$1@dont-email.me>
<7rF6J.144277$rl3.110823@fx45.iad>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="f039da7ec9ded39f2ed1a75f27d21830";
logging-data="21882"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0Mrj7dBQgpdY8SjguPoj8"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:dlpa5aFWdzjJ5VAIvIVGTy1Ex9s=
sha1:70u50va3Piuh6PY/4PiTwaFWuIc=
 by: Keith Thompson - Mon, 4 Oct 2021 17:45 UTC

Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
[...]
> Look when you speaking about numbers and relation of C types to numbers
> it is relevant...

You replied to a post that discussed signed and unsigned types.
You posted a link to a Youtube video and said nothing else about it.
You said nothing about C, and as far as I can tell the video said
nothing about C.

If you're going to post an Youtube or similar link, *at least* say
something about it. Nobody wants to spend 20 minutes watching something
just in case there's something relevant.

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

Re: C23 (C2x) changes

<svJ6J.64566$jm6.17674@fx07.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx07.iad.POSTED!not-for-mail
Newsgroups: comp.lang.c
From: branimir...@icloud.com (Branimir Maksimovic)
Subject: Re: C23 (C2x) changes
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me> <siahul$tb8$1@dont-email.me>
<sisn5m$ni6$1@gioia.aioe.org> <87y27it1mo.fsf@bsb.me.uk>
<sitcfp$1fgs$1@gioia.aioe.org> <86lf3bsbwz.fsf@linuxsc.com>
<0L_5J.44593$rsCb.5791@fx01.iad> <87h7dzgk1k.fsf@nosuchdomain.example.com>
<z786J.143438$rl3.15795@fx45.iad> <87czomhf47.fsf@nosuchdomain.example.com>
<LPf6J.62135$6U3.7179@fx43.iad> <878rz9hmvg.fsf@nosuchdomain.example.com>
<TXv6J.38722$GD7.8414@fx23.iad> <sjec83$1do$1@dont-email.me>
<7rF6J.144277$rl3.110823@fx45.iad>
<87mtnofzvn.fsf@nosuchdomain.example.com>
User-Agent: slrn/1.0.3 (Darwin)
Lines: 24
Message-ID: <svJ6J.64566$jm6.17674@fx07.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Mon, 04 Oct 2021 20:30:16 UTC
Organization: usenet-news.net
Date: Mon, 04 Oct 2021 20:30:16 GMT
X-Received-Bytes: 1989
 by: Branimir Maksimovic - Mon, 4 Oct 2021 20:30 UTC

On 2021-10-04, Keith Thompson <Keith.S.Thompson+u@gmail.com> wrote:
> Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
> [...]
>> Look when you speaking about numbers and relation of C types to numbers
>> it is relevant...
>
> You replied to a post that discussed signed and unsigned types.
> You posted a link to a Youtube video and said nothing else about it.
> You said nothing about C, and as far as I can tell the video said
> nothing about C.
>
> If you're going to post an Youtube or similar link, *at least* say
> something about it. Nobody wants to spend 20 minutes watching something
> just in case there's something relevant.
>
Thanks, I'll remember that, and correct my behavior.

--

7-77-777
Evil Sinner!
to weak you should be meek, and you should brainfuck stronger
https://github.com/rofl0r/chaos-pp

Re: C23 (C2x) changes

<86v92aqv3v.fsf@linuxsc.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Wed, 06 Oct 2021 03:57:08 -0700
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <86v92aqv3v.fsf@linuxsc.com>
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me> <siac7m$8r0$1@dont-email.me> <siahul$tb8$1@dont-email.me> <sisn5m$ni6$1@gioia.aioe.org> <87y27it1mo.fsf@bsb.me.uk> <sitcfp$1fgs$1@gioia.aioe.org> <86lf3bsbwz.fsf@linuxsc.com> <0L_5J.44593$rsCb.5791@fx01.iad> <87h7dzgk1k.fsf@nosuchdomain.example.com> <z786J.143438$rl3.15795@fx45.iad> <87czomhf47.fsf@nosuchdomain.example.com> <LPf6J.62135$6U3.7179@fx43.iad> <878rz9hmvg.fsf@nosuchdomain.example.com> <TXv6J.38722$GD7.8414@fx23.iad> <sjec83$1do$1@dont-email.me> <7rF6J.144277$rl3.110823@fx45.iad> <87mtnofzvn.fsf@nosuchdomain.example.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="f63a7b6827eb8960d7c84af554cfeab9";
logging-data="28167"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tHYZQUyskVLV91Y1h3MAyCNg2g5nPTG0="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:V0Pvpmrg5k3mdqNuzKWv7IUSpuI=
sha1:jMqdFszHpNrHgzzI9Kp58GIr9rI=
 by: Tim Rentsch - Wed, 6 Oct 2021 10:57 UTC

Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:

> Branimir Maksimovic <branimir.maksimovic@icloud.com> writes:
> [...]
>
>> Look when you speaking about numbers and relation of C types to numbers
>> it is relevant...
>
> You replied to a post that discussed signed and unsigned types.
> You posted a link to a Youtube video and said nothing else about it.
> You said nothing about C, and as far as I can tell the video said
> nothing about C.
>
> If you're going to post an Youtube or similar link, *at least* say
> something about it. Nobody wants to spend 20 minutes watching something
> just in case there's something relevant.

I have adopted a policy of not reading postings from Branimir
Maksimovic. This recent series of exchanges illustrates why.

Re: C23 (C2x) changes

<86r1cyquwk.fsf@linuxsc.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Wed, 06 Oct 2021 04:01:31 -0700
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <86r1cyquwk.fsf@linuxsc.com>
References: <si99fr$ma4$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="f63a7b6827eb8960d7c84af554cfeab9";
logging-data="28167"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+cqmcTVcHutREd0C38xezhq1qAvRwQKPM="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:AzwHwUBv3P4ZjPY5Ej4aWnFZjKI=
sha1:QLan8BmIZNVGZxjD42eV966dGC8=
 by: Tim Rentsch - Wed, 6 Oct 2021 11:01 UTC

Mehdi Amini <atorrses@gmail.com> writes:

> It seems these are some of changes for C23(C2x) standard taken from
> draft documents:
>
> https://en.cppreference.com/w/c/23
> https://thephd.dev/c-the-improvements-june-september-virtual-c-meeting
>
> What do you think of changes ?

My impression is that as time goes on C is looking more and more like
C++ and less and less like C. That's a bad trend.

Re: C23 (C2x) changes

<84beca66-cddd-4b7b-a155-444890ea8fd9n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:1046:: with SMTP id l6mr15601095qvr.13.1633520555794;
Wed, 06 Oct 2021 04:42:35 -0700 (PDT)
X-Received: by 2002:a0c:f944:: with SMTP id i4mr29865908qvo.21.1633520555566;
Wed, 06 Oct 2021 04:42:35 -0700 (PDT)
Path: rocksolid2!i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Wed, 6 Oct 2021 04:42:35 -0700 (PDT)
In-Reply-To: <86r1cyquwk.fsf@linuxsc.com>
Injection-Info: google-groups.googlegroups.com; posting-host=189.6.249.78; posting-account=xFcAQAoAAAAoWlfpQ6Hz2n-MU9fthxbY
NNTP-Posting-Host: 189.6.249.78
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <84beca66-cddd-4b7b-a155-444890ea8fd9n@googlegroups.com>
Subject: Re: C23 (C2x) changes
From: thiago.a...@gmail.com (Thiago Adams)
Injection-Date: Wed, 06 Oct 2021 11:42:35 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 25
 by: Thiago Adams - Wed, 6 Oct 2021 11:42 UTC

On Wednesday, October 6, 2021 at 8:01:38 AM UTC-3, Tim Rentsch wrote:
> Mehdi Amini <ator...@gmail.com> writes:
>
> > It seems these are some of changes for C23(C2x) standard taken from
> > draft documents:
> >
> > https://en.cppreference.com/w/c/23
> > https://thephd.dev/c-the-improvements-june-september-virtual-c-meeting
> >
> > What do you think of changes ?
>
> My impression is that as time goes on C is looking more and more like
> C++ and less and less like C. That's a bad trend.

I don't think C is going that way. At least for now..
Do you have any proposal in mind to justify this?

One feature that may be in that direction is nullptr (but not approved yet)
not because it is complex but because it can create (like C++)
multiple ways to do the same thing creating a mess
in my opinion.
There are other more radical proposals but they are not approved yet.

Re: C23 (C2x) changes

<pCg7J.139700$lC6.67260@fx41.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!aioe.org!news.uzoreto.com!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx41.iad.POSTED!not-for-mail
Newsgroups: comp.lang.c
From: branimir...@icloud.com (Branimir Maksimovic)
Subject: Re: C23 (C2x) changes
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me> <siahul$tb8$1@dont-email.me>
<sisn5m$ni6$1@gioia.aioe.org> <87y27it1mo.fsf@bsb.me.uk>
<sitcfp$1fgs$1@gioia.aioe.org> <86lf3bsbwz.fsf@linuxsc.com>
<0L_5J.44593$rsCb.5791@fx01.iad> <87h7dzgk1k.fsf@nosuchdomain.example.com>
<z786J.143438$rl3.15795@fx45.iad> <87czomhf47.fsf@nosuchdomain.example.com>
<LPf6J.62135$6U3.7179@fx43.iad> <878rz9hmvg.fsf@nosuchdomain.example.com>
<TXv6J.38722$GD7.8414@fx23.iad> <sjec83$1do$1@dont-email.me>
<7rF6J.144277$rl3.110823@fx45.iad>
<87mtnofzvn.fsf@nosuchdomain.example.com> <86v92aqv3v.fsf@linuxsc.com>
User-Agent: slrn/1.0.3 (Darwin)
Lines: 12
Message-ID: <pCg7J.139700$lC6.67260@fx41.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Wed, 06 Oct 2021 12:27:01 UTC
Organization: usenet-news.net
Date: Wed, 06 Oct 2021 12:27:01 GMT
X-Received-Bytes: 1553
 by: Branimir Maksimovic - Wed, 6 Oct 2021 12:27 UTC

On 2021-10-06, Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
>
> I have adopted a policy of not reading postings from Branimir
> Maksimovic. This recent series of exchanges illustrates why.
Well, I have added you to my Score file in Head as Well....

--

7-77-777
Evil Sinner!
to weak you should be meek, and you should brainfuck stronger
https://github.com/rofl0r/chaos-pp

Re: C23 (C2x) changes

<sjkl48$1aun$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!aioe.org!NJJ6ei27EbDQKiLTt6V8IA.user.46.165.242.75.POSTED!not-for-mail
From: mess...@bottle.org (Guillaume)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Wed, 6 Oct 2021 19:07:18 +0200
Organization: Aioe.org NNTP Server
Message-ID: <sjkl48$1aun$1@gioia.aioe.org>
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="43991"; posting-host="NJJ6ei27EbDQKiLTt6V8IA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: fr
 by: Guillaume - Wed, 6 Oct 2021 17:07 UTC

Le 06/10/2021 à 13:01, Tim Rentsch a écrit :
> Mehdi Amini <atorrses@gmail.com> writes:
>
>> It seems these are some of changes for C23(C2x) standard taken from
>> draft documents:
>>
>> https://en.cppreference.com/w/c/23
>> https://thephd.dev/c-the-improvements-june-september-virtual-c-meeting
>>
>> What do you think of changes ?
>
> My impression is that as time goes on C is looking more and more like
> C++ and less and less like C. That's a bad trend.

It's really far from it.

What makes you say that is probably that C borrows some "features" from
C++ at each new revision, but it's not a new trend.

The "features" it borrows from C++ are nothing that inherently makes C++
though, and IMO the majority of them are just things that were
long-awaited in C, without breaking the essence of C at all, and there's
no good reason to reinvent the wheel if those are already defined in C++.

With that said, from the C++ perspective, Bjarne Stroustrup (and
probably followed by the C++ committee) has always been, and still is, a
vehement proponent of fusing C into C++, making it a strict subset of
C++, instead of the current situation, with two different languages. Now
what kind of influence the C++ committee has over the C committee, I do
not know. I guess the main reason for including some C++ features into C
is the one I stated above: if C is going to get new features that are
similar to some that already exist in C++, why make them different and
further make the two languages divergent for no good reason?

Now, feel free to give relevant examples of C++ features that found
their way into C and which you think have no place there, with a
rationale. I'm all ears.

Re: C23 (C2x) changes

<sjmdat$j79$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Thu, 7 Oct 2021 11:06:36 +0200
Organization: A noiseless patient Spider
Lines: 81
Message-ID: <sjmdat$j79$1@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
<sjkl48$1aun$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Oct 2021 09:06:37 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="55281b3a43b6465c57b90b8b0e28904a";
logging-data="19689"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ySFrqSQlTu8/MWeAve8kHtZwS8kk720o="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:Zq23bgrlxQQVX09ycQySII9p27Y=
In-Reply-To: <sjkl48$1aun$1@gioia.aioe.org>
Content-Language: en-GB
 by: David Brown - Thu, 7 Oct 2021 09:06 UTC

On 06/10/2021 19:07, Guillaume wrote:
> Le 06/10/2021 à 13:01, Tim Rentsch a écrit :
>> Mehdi Amini <atorrses@gmail.com> writes:
>>
>>> It seems these are some of changes for C23(C2x) standard taken from
>>> draft documents:
>>>
>>> https://en.cppreference.com/w/c/23
>>> https://thephd.dev/c-the-improvements-june-september-virtual-c-meeting
>>>
>>> What do you think of changes ?
>>
>> My impression is that as time goes on C is looking more and more like
>> C++ and less and less like C.  That's a bad trend.
>
> It's really far from it.
>
> What makes you say that is probably that C borrows some "features" from
> C++ at each new revision, but it's not a new trend.
>
> The "features" it borrows from C++ are nothing that inherently makes C++
> though, and IMO the majority of them are just things that were
> long-awaited in C, without breaking the essence of C at all, and there's
> no good reason to reinvent the wheel if those are already defined in C++.
>

That is absolutely the case, as I see it. There are several good
reasons for it. The C committee don't like adding new things to the
language unless they are /really/ sure they are a good idea. One way to
do that is to look at the practice from C++. Another is to look at
current C implementations with extensions - tools like gcc and clang
have a long history of letting some features flow between C and C++, if
they can be done without conflict. So in many cases, stretching back to
C99, the C committee have merely standardised C++ features that gcc had
already supported in C compilation. Low risk, low effort, and useful in
practice - what's not to like?

There are some people who stubbornly insist that C and C++ are
completely separate, and should progress independently. In reality,
mixes occur on a regular basis. Libraries or code gets written in C and
used in C++ projects - it's vital that most of what could reasonably be
expected to be in a C header, should also be valid and usable with C++
(possibly with an extern "C" wrapper). Real-world projects can often
start as C, and migrate towards C++ for new code - or they can be
started in C++ and borrow old C code. Toolchains support both
languages, and arbitrary differences just means more work. The same
applies to things like syntax highlighting editors. And in the MSVC
world, people writing C code generally use the C++ compiler because it
is (or has traditionally been) better than compiling as C.

> With that said, from the C++ perspective, Bjarne Stroustrup (and
> probably followed by the C++ committee) has always been, and still is, a
> vehement proponent of fusing C into C++, making it a strict subset of
> C++, instead of the current situation, with two different languages. Now
> what kind of influence the C++ committee has over the C committee, I do
> not know. I guess the main reason for including some C++ features into C
> is the one I stated above: if C is going to get new features that are
> similar to some that already exist in C++, why make them different and
> further make the two languages divergent for no good reason?
>
> Now, feel free to give relevant examples of C++ features that found
> their way into C and which you think have no place there, with a
> rationale. I'm all ears.
>

One proposal that I can think of is lambdas - there have been proposals
to add these to C, and these really don't seem a good fit to me. One
source of many of these ideas is Jens Gustedt, who is one of the few C
standards committee members who has a significant public internet
presence with his blog, and is quite prolific with his ideas and
proposals. Some of his ideas come from C++, others are new to both
languages. (Most C committee members are more anonymous, at least
compared to the C++ committee. That is quite appropriate for a language
that changes slowly and values stability so highly.) Of course Jens is
free to bring up his ideas - that does not mean that they will be
accepted by the committee as a whole.

As to features that C has already copied from C++, rather than just
proposals, which don't fit the style and philosophy of C - I can't think
of any off-hand. Tim will have to give examples himself.

Re: C23 (C2x) changes

<sjnau9$ljp$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!feeder5.feed.usenet.farm!feeder1.feed.usenet.farm!feed.usenet.farm!aioe.org!NJJ6ei27EbDQKiLTt6V8IA.user.46.165.242.75.POSTED!not-for-mail
From: mess...@bottle.org (Guillaume)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Thu, 7 Oct 2021 19:31:51 +0200
Organization: Aioe.org NNTP Server
Message-ID: <sjnau9$ljp$1@gioia.aioe.org>
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
<sjkl48$1aun$1@gioia.aioe.org> <sjmdat$j79$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="22137"; posting-host="NJJ6ei27EbDQKiLTt6V8IA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: fr
 by: Guillaume - Thu, 7 Oct 2021 17:31 UTC

Le 07/10/2021 à 11:06, David Brown a écrit :
> One proposal that I can think of is lambdas - there have been proposals
> to add these to C, and these really don't seem a good fit to me.

Yeah. Absolutely. I'm already not sure they are a good fit for C++, but
then again, C++ is this kind of all-you-can-eat buffet, so... sadly, I
think it's eventually going to collapse under its own weight.

Jens Gustedt has a lot of interesting ideas from what I've read, but
he's a researcher. I'll take the practicality of his proposals with a
pinch of salt.

Re: C23 (C2x) changes

<sjnkfp$p5i$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Thu, 7 Oct 2021 22:14:48 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <sjnkfp$p5i$1@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
<sjkl48$1aun$1@gioia.aioe.org> <sjmdat$j79$1@dont-email.me>
<sjnau9$ljp$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Oct 2021 20:14:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="97e7585a624c44ee9e2a0c6dccdb8439";
logging-data="25778"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+qOqF1ec/cYnvIaZbYfLo4bUI+j2T7MgI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:c4hQ5k+TSYXoXdxnQK0cNsEQMvE=
In-Reply-To: <sjnau9$ljp$1@gioia.aioe.org>
Content-Language: en-GB
 by: David Brown - Thu, 7 Oct 2021 20:14 UTC

On 07/10/2021 19:31, Guillaume wrote:
> Le 07/10/2021 à 11:06, David Brown a écrit :
>> One proposal that I can think of is lambdas - there have been proposals
>> to add these to C, and these really don't seem a good fit to me.
>
> Yeah. Absolutely. I'm already not sure they are a good fit for C++, but
> then again, C++ is this kind of all-you-can-eat buffet, so... sadly, I
> think it's eventually going to collapse under its own weight.
>

I like lambdas, and I'm glad C++ supports them.

But I agree that there are risks in the feature growth of C++ - while
individual programmers are usually going to be happy with just a subset
of the features, different programmers are going to pick different
subsets, and people are inevitably going to find themselves faced with
code that is written in the language they "know" while still being alien
to them.

> Jens Gustedt has a lot of interesting ideas from what I've read, but
> he's a researcher. I'll take the practicality of his proposals with a
> pinch of salt.
>

I think it is important for a language to have many people involved -
including more theoretical researcher types and more practical types.

Re: C23 (C2x) changes

<69b9e5c9-b7bc-4ff7-8bf0-d4fec16abee5n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:283:: with SMTP id z3mr11581908qtw.324.1633699099871;
Fri, 08 Oct 2021 06:18:19 -0700 (PDT)
X-Received: by 2002:ac8:4308:: with SMTP id z8mr11685358qtm.121.1633699099115;
Fri, 08 Oct 2021 06:18:19 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 8 Oct 2021 06:18:18 -0700 (PDT)
In-Reply-To: <sjnkfp$p5i$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=189.6.249.78; posting-account=xFcAQAoAAAAoWlfpQ6Hz2n-MU9fthxbY
NNTP-Posting-Host: 189.6.249.78
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
<sjkl48$1aun$1@gioia.aioe.org> <sjmdat$j79$1@dont-email.me>
<sjnau9$ljp$1@gioia.aioe.org> <sjnkfp$p5i$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <69b9e5c9-b7bc-4ff7-8bf0-d4fec16abee5n@googlegroups.com>
Subject: Re: C23 (C2x) changes
From: thiago.a...@gmail.com (Thiago Adams)
Injection-Date: Fri, 08 Oct 2021 13:18:19 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 44
 by: Thiago Adams - Fri, 8 Oct 2021 13:18 UTC

On Thursday, October 7, 2021 at 5:14:56 PM UTC-3, David Brown wrote:
> On 07/10/2021 19:31, Guillaume wrote:
> > Le 07/10/2021 à 11:06, David Brown a écrit :
> >> One proposal that I can think of is lambdas - there have been proposals
> >> to add these to C, and these really don't seem a good fit to me.
> >
> > Yeah. Absolutely. I'm already not sure they are a good fit for C++, but
> > then again, C++ is this kind of all-you-can-eat buffet, so... sadly, I
> > think it's eventually going to collapse under its own weight.
> >
> I like lambdas, and I'm glad C++ supports them.

The difficult (and I believe controversial) part in C is capture and how to store
lambda on heap for instance. It also requires the feature "auto" to work.

Here we can find how it is suppose to work in c here:
https://thephd.dev/lambdas-nested-functions-block-expressions-oh-my

The amount of code to create a lambda and store on heap is similar of
the amount of the code we have today without this feature.
So, I am not convinced yet that C needs lambda capture.

I miss Lambdas a lot in my C code. Lambdas without capture would be fine for me.
The syntax and feature I would be happy is:

(void (void* data) ) { printf("hi!"); }

It if very similar of compound literal of function pointer.

(void (void (*) data) ) { 0 }

The difference it creates a compound literal that is a function itself.

I have implemented this at my transpiler

Select "Function Literal"
http://thradams.com/web2/cprime.html

Re: C23 (C2x) changes

<4019bddc-163a-453e-8497-02b9996a4dbbn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:b087:: with SMTP id z129mr2786539qke.357.1633699282468;
Fri, 08 Oct 2021 06:21:22 -0700 (PDT)
X-Received: by 2002:a0c:c983:: with SMTP id b3mr1556430qvk.26.1633699282302;
Fri, 08 Oct 2021 06:21:22 -0700 (PDT)
Path: rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 8 Oct 2021 06:21:22 -0700 (PDT)
In-Reply-To: <69b9e5c9-b7bc-4ff7-8bf0-d4fec16abee5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=189.6.249.78; posting-account=xFcAQAoAAAAoWlfpQ6Hz2n-MU9fthxbY
NNTP-Posting-Host: 189.6.249.78
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
<sjkl48$1aun$1@gioia.aioe.org> <sjmdat$j79$1@dont-email.me>
<sjnau9$ljp$1@gioia.aioe.org> <sjnkfp$p5i$1@dont-email.me> <69b9e5c9-b7bc-4ff7-8bf0-d4fec16abee5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4019bddc-163a-453e-8497-02b9996a4dbbn@googlegroups.com>
Subject: Re: C23 (C2x) changes
From: thiago.a...@gmail.com (Thiago Adams)
Injection-Date: Fri, 08 Oct 2021 13:21:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 54
 by: Thiago Adams - Fri, 8 Oct 2021 13:21 UTC

On Friday, October 8, 2021 at 10:18:29 AM UTC-3, Thiago Adams wrote:
> On Thursday, October 7, 2021 at 5:14:56 PM UTC-3, David Brown wrote:
> > On 07/10/2021 19:31, Guillaume wrote:
> > > Le 07/10/2021 à 11:06, David Brown a écrit :
> > >> One proposal that I can think of is lambdas - there have been proposals
> > >> to add these to C, and these really don't seem a good fit to me.
> > >
> > > Yeah. Absolutely. I'm already not sure they are a good fit for C++, but
> > > then again, C++ is this kind of all-you-can-eat buffet, so... sadly, I
> > > think it's eventually going to collapse under its own weight.
> > >
> > I like lambdas, and I'm glad C++ supports them.
> The difficult (and I believe controversial) part in C is capture and how to store
> lambda on heap for instance. It also requires the feature "auto" to work.
>
> Here we can find how it is suppose to work in c here:
> https://thephd.dev/lambdas-nested-functions-block-expressions-oh-my
>
> The amount of code to create a lambda and store on heap is similar of
> the amount of the code we have today without this feature.
> So, I am not convinced yet that C needs lambda capture.
>
> I miss Lambdas a lot in my C code. Lambdas without capture would be fine for me.
> The syntax and feature I would be happy is:
>
> (void (void* data) ) { printf("hi!"); }
>
> It if very similar of compound literal of function pointer.
>
> (void (void (*) data) ) { 0 }
>
> The difference it creates a compound literal that is a function itself.
>
> I have implemented this at my transpiler
>
> Select "Function Literal"
> http://thradams.com/web2/cprime.html

I forgot to mention that lambdas in C++ also required addition of
return type.

[] (void) -> int

and mutable.

So lambdas with capture is a good example of how things can go bad in C.

Re: C23 (C2x) changes

<skbli6$d3p$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Fri, 15 Oct 2021 11:35:19 +0100
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <skbli6$d3p$1@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Oct 2021 10:35:50 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3737a5232dde076e1a261c3fa5718ce1";
logging-data="13433"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/TiZOG6idNGMk9dHsBAL1L885QQ8EZgj4="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:sQ0EMsDj5VDZoqlyweeo3Myr7Qc=
In-Reply-To: <siac7m$8r0$1@dont-email.me>
X-Antivirus-Status: Clean
Content-Language: en-GB
X-Antivirus: AVG (VPS 211015-0, 15/10/2021), Outbound message
 by: Bart - Fri, 15 Oct 2021 10:35 UTC

On 20/09/2021 17:17, David Brown wrote:
> On 20/09/2021 17:41, John Bode wrote:

>> If signed integer representations other than two's complement will
>> no longer be supported, does this mean signed integer overflow can
>> have a well-defined behavior?  Or will it still be left undefined
>> to allow for optimizations?  Or could that be controlled with one
>> of these newfangled attribute thingies?
>
>
> No, signed integer overflow is still undefined behaviour - for which I
> am very glad. Defining it is terrible, IMHO, since any definition you
> give will be the wrong answer. Some would want it defined as wrapping
> ($DEITY knows why, since it is the silliest of all definitions despite
> being fairly efficient to implement), some would want it as an error or
> a trap, some would want saturation, some would want a NaN, some would
> want errno to be set.

Here's an example where signed wrapping came in useful. I wanted to do
this in a language (not C nor one of mine), where I knew integer
literals had int64 type, and need the largest value it could represent.

writeln(2**63-1)

It failed because it trapped integer overflow. So I couldn't do it.

If I tried it mine (I'd use C but it doesn't have a pow() op for integers):

println 2**63-1

it gave the expected answer. This briefly wraps one way (to int64.min),
then wraps the other way (to int64.max) to get the right answer.

Exactly the same thing that happens with unsigned:

println 2**64-1

This one wraps to 0 (uint64.min) then other way to uint.max. It is
useful behaviour for uint64; it is useful for int64.

But in both cases, you need to be aware of those temporary out-of-range
excursions, and not use the intermediate results as though they
represented natural arithmetic.

Re: C23 (C2x) changes

<skbmtm$33h$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Fri, 15 Oct 2021 12:59:03 +0200
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <skbmtm$33h$1@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 15 Oct 2021 10:59:02 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="0e439fb3274e9063b2c08613e40fd6f5";
logging-data="3185"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199NGpkjmBjGyVwIqcQ13H98eh3YKKxZNk="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:sz5ML4wERIV/BTVsGxtF4e6PHTU=
In-Reply-To: <86r1cyquwk.fsf@linuxsc.com>
Content-Language: de-DE
 by: Bonita Montero - Fri, 15 Oct 2021 10:59 UTC

> My impression is that as time goes on C is looking more and
> more like C++ and less and less like C. That's a bad trend.

C should be dropped in favour of C++ for almost any project. With C
you have a dramatic less development-performance and make much more
bugs. If Chrome f.e. would be developed in C, it would be at least
five times the code and ten times the number of bugs.

Re: C23 (C2x) changes

<slrnsmjcan.8iv.jj@iridium.wf32df>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jj...@franjam.org.uk (Jim Jackson)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Fri, 15 Oct 2021 16:50:31 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <slrnsmjcan.8iv.jj@iridium.wf32df>
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
<skbmtm$33h$1@dont-email.me>
Injection-Date: Fri, 15 Oct 2021 16:50:31 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1b88a1dd994ad7bef61a1073a43d2643";
logging-data="17996"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qmxGF7oAo8nxEdrUojk6LBKhtcFirpCs="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:LWiFhjX9Gj+xdf7pZgJYddJUZ8U=
 by: Jim Jackson - Fri, 15 Oct 2021 16:50 UTC

On 2021-10-15, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> My impression is that as time goes on C is looking more and
>> more like C++ and less and less like C. That's a bad trend.
>
> C should be dropped in favour of C++ for almost any project. With C
> you have a dramatic less development-performance and make much more
> bugs. If Chrome f.e. would be developed in C, it would be at least
> five times the code and ten times the number of bugs.

So you reckon if you re-code the linux kernel in C++ it would be 5 times
less code and 10 times less buggy?

sssshhhh....

Re: C23 (C2x) changes

<skch7f$qgf$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!news.niel.me!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Fri, 15 Oct 2021 18:27:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <skch7f$qgf$1@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me> <skbli6$d3p$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Oct 2021 18:27:59 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8b5bb3a3d003e7a9c4330e9cc737cfe1";
logging-data="27151"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0wdbFBJDYSCOXkJbrA3/yeMY5Kht1lTE="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:8KZTp8uq+gBtxM2bwXqwTsmtuYk=
 by: Lew Pitcher - Fri, 15 Oct 2021 18:27 UTC

On Fri, 15 Oct 2021 11:35:19 +0100, Bart wrote:
[snip]
> If I tried it mine (I'd use C but it doesn't have a pow() op for
> integers):

That's a lame excuse, if I've ever heard one

>
> println 2**63-1

You /don't need/ "pow() for integers" to express 2^63 - 1 in C.

You could either hand expand 2^63 -1 into an integer, or, given an
integral type of 64 bits or larger, you simply use
(2ul<<63) - 1

as in
printf("%ul\n",(2ul<<63)-1);

[snip]
--
Lew Pitcher
"In Skills, We Trust"

Re: C23 (C2x) changes

<skcjk5$onq$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Fri, 15 Oct 2021 20:08:24 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <skcjk5$onq$1@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me> <skbli6$d3p$1@dont-email.me>
<skch7f$qgf$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 15 Oct 2021 19:08:53 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3737a5232dde076e1a261c3fa5718ce1";
logging-data="25338"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JrRZ0zJ0c6xTPisu46kaRgtcRB1LaGMM="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:79rA7VCQ9w6pYGfYDB+H+MvR60w=
In-Reply-To: <skch7f$qgf$1@dont-email.me>
X-Antivirus-Status: Clean
Content-Language: en-GB
X-Antivirus: AVG (VPS 211015-4, 15/10/2021), Outbound message
 by: Bart - Fri, 15 Oct 2021 19:08 UTC

On 15/10/2021 19:27, Lew Pitcher wrote:
> On Fri, 15 Oct 2021 11:35:19 +0100, Bart wrote:
> [snip]
>> If I tried it mine (I'd use C but it doesn't have a pow() op for
>> integers):
>
> That's a lame excuse, if I've ever heard one
>
>>
>> println 2**63-1
>
> You /don't need/ "pow() for integers" to express 2^63 - 1 in C.

Yes, there are any number of ways of avoiding doing the work, namely
/working out/ 2**63-1 using signed integers and exponentiation or at
least multiplication.

I wanted the language to do it.

> You could either hand expand 2^63 -1 into an integer, or, given an
> integral type of 64 bits or larger, you simply use
> (2ul<<63) - 1

Now try that method for a ternary computer, using 39 bits (max
representable within int64).

Re: C23 (C2x) changes

<skck90$qgf$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: lew.pitc...@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Fri, 15 Oct 2021 19:20:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <skck90$qgf$2@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me> <skbli6$d3p$1@dont-email.me>
<skch7f$qgf$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 15 Oct 2021 19:20:00 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="8b5bb3a3d003e7a9c4330e9cc737cfe1";
logging-data="27151"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9tfax4uGPfgbVPF/l+7WrAd6Zef5MZ5o="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:ODPYitFmZzF2IH6U/8OKNeXLZcA=
 by: Lew Pitcher - Fri, 15 Oct 2021 19:20 UTC

On Fri, 15 Oct 2021 18:27:59 +0000, Lew Pitcher wrote:

> On Fri, 15 Oct 2021 11:35:19 +0100, Bart wrote:
> [snip]
>> If I tried it mine (I'd use C but it doesn't have a pow() op for
>> integers):
>
> That's a lame excuse, if I've ever heard one
>
>
>> println 2**63-1
>
> You /don't need/ "pow() for integers" to express 2^63 - 1 in C.
>
> You could either hand expand 2^63 -1 into an integer, or, given an
> integral type of 64 bits or larger, you simply use
> (2ul<<63) - 1

Yah, I know. A thinko
I meant
(1ul<<63) - 1

>
> as in
> printf("%ul\n",(2ul<<63)-1);

printf("%ul\n",(1ul<<63)-1);

> [snip]

--
Lew Pitcher
"In Skills, We Trust"

Re: C23 (C2x) changes

<skcpjv$dsl$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Fri, 15 Oct 2021 21:50:41 +0100
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <skcpjv$dsl$1@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <siaa3b$t76$1@dont-email.me>
<siac7m$8r0$1@dont-email.me> <skbli6$d3p$1@dont-email.me>
<skch7f$qgf$1@dont-email.me> <skck90$qgf$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 15 Oct 2021 20:51:11 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3737a5232dde076e1a261c3fa5718ce1";
logging-data="14229"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IEOdaNF/7laOtfWoQ5tNCCYGpsqOZjDI="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:JZDFjK5p4L8mQ0saSsj5uiUK67s=
In-Reply-To: <skck90$qgf$2@dont-email.me>
X-Antivirus-Status: Clean
Content-Language: en-GB
X-Antivirus: AVG (VPS 211015-4, 15/10/2021), Outbound message
 by: Bart - Fri, 15 Oct 2021 20:50 UTC

On 15/10/2021 20:20, Lew Pitcher wrote:
> On Fri, 15 Oct 2021 18:27:59 +0000, Lew Pitcher wrote:
>
>> On Fri, 15 Oct 2021 11:35:19 +0100, Bart wrote:
>> [snip]
>>> If I tried it mine (I'd use C but it doesn't have a pow() op for
>>> integers):
>>
>> That's a lame excuse, if I've ever heard one
>>
>>
>>> println 2**63-1
>>
>> You /don't need/ "pow() for integers" to express 2^63 - 1 in C.
>>
>> You could either hand expand 2^63 -1 into an integer, or, given an
>> integral type of 64 bits or larger, you simply use
>> (2ul<<63) - 1
>
> Yah, I know. A thinko
> I meant
> (1ul<<63) - 1
>

I was going to say that I don't like using shifts because I tend to get
it wrong.

And actually, this is still not right: it will only work when 'long'
happens to be 64 bits. It's likely to be 32 bits on Windows and 32-bit OSes.

1ULL is a better bet (together with a %lld format).

>> as in
>> printf("%ul\n",(2ul<<63)-1);
>
> printf("%ul\n",(1ul<<63)-1);
>
>> [snip]

Re: C23 (C2x) changes

<skdp9s$i4b$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Sat, 16 Oct 2021 07:51:58 +0200
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <skdp9s$i4b$1@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
<skbmtm$33h$1@dont-email.me> <slrnsmjcan.8iv.jj@iridium.wf32df>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 16 Oct 2021 05:51:56 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f128a1d387ad3790870edd0186464859";
logging-data="18571"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qD4Nmc1M1Ynhs36qj+A/sgqZSYlX651o="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:ERIL4sNbJXqrO5T28tZsuDNl5ZE=
In-Reply-To: <slrnsmjcan.8iv.jj@iridium.wf32df>
Content-Language: de-DE
 by: Bonita Montero - Sat, 16 Oct 2021 05:51 UTC

Am 15.10.2021 um 18:50 schrieb Jim Jackson:
> On 2021-10-15, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>> My impression is that as time goes on C is looking more and
>>> more like C++ and less and less like C. That's a bad trend.
>>
>> C should be dropped in favour of C++ for almost any project. With C
>> you have a dramatic less development-performance and make much more
>> bugs. If Chrome f.e. would be developed in C, it would be at least
>> five times the code and ten times the number of bugs.
>
> So you reckon if you re-code the linux kernel in C++ it would be 5 times
> less code and 10 times less buggy?

I think the Linux-kernel isn't such complex as Chrome.
But the code-size would be a fraction in C++.

Re: C23 (C2x) changes

<skf6to$fqs$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Sat, 16 Oct 2021 11:50:32 -0700
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <skf6to$fqs$1@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
<skbmtm$33h$1@dont-email.me> <slrnsmjcan.8iv.jj@iridium.wf32df>
<skdp9s$i4b$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 16 Oct 2021 18:50:32 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e2b3ca9df63d65923c1d4cadf018da58";
logging-data="16220"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183zYmj/sg31Grc9mxaXWPfvrTewxlErxY="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:nzfWy55Wv2UGeKh08MemLpEImRI=
In-Reply-To: <skdp9s$i4b$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Sat, 16 Oct 2021 18:50 UTC

On 10/15/2021 10:51 PM, Bonita Montero wrote:
> Am 15.10.2021 um 18:50 schrieb Jim Jackson:
>> On 2021-10-15, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>>>> My impression is that as time goes on C is looking more and
>>>> more like C++ and less and less like C.  That's a bad trend.
>>>
>>> C should be dropped in favour of C++ for almost any project. With C
>>> you have a dramatic less development-performance and make much more
>>> bugs. If Chrome f.e. would be developed in C, it would be at least
>>> five times the code and ten times the number of bugs.
>>
>> So you reckon if you re-code the linux kernel in C++ it would be 5 times
>> less code and 10 times less buggy?
>
> I think the Linux-kernel isn't such complex as Chrome.

Really?

> But the code-size would be a fraction in C++.
>

Pages:12345
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor