Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

A year spent in artificial intelligence is enough to make one believe in God.


devel / comp.lang.c / 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

<skf94f$v13$1@dont-email.me>

  copy mid

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

  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 21:28:16 +0200
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <skf94f$v13$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> <skf6to$fqs$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 19:28:15 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f128a1d387ad3790870edd0186464859";
logging-data="31779"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18J2m5kjsXd6EnONLftuSxL/IpuHA1KDMk="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:Y52904D670iKb+pphvlEoOlqv0I=
In-Reply-To: <skf6to$fqs$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Sat, 16 Oct 2021 19:28 UTC

Am 16.10.2021 um 20:50 schrieb Chris M. Thomasson:
> 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?

Think that Chrome would be at least five times the line-count if it
would be written in C. I bet it would be impossible to write stl like
Chrome in C. Look at the Oracle DB server: 25 mio lines of C and lots
of bugs fixed regulary. Such complex softare would be handled much
easier in C++.

Re: C23 (C2x) changes

<skf94t$11fp$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!news.neodome.net!news.mixmin.net!aioe.org!HhbPR29oxh70fgjPiPplRg.user.46.165.242.75.POSTED!not-for-mail
From: mess...@bottle.org (Guillaume)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Sat, 16 Oct 2021 21:28:18 +0200
Organization: Aioe.org NNTP Server
Message-ID: <skf94t$11fp$1@gioia.aioe.org>
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-Info: gioia.aioe.org; logging-data="34297"; posting-host="HhbPR29oxh70fgjPiPplRg.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 - Sat, 16 Oct 2021 19:28 UTC

Le 16/10/2021 à 07:51, Bonita Montero a écrit :
> I think the Linux-kernel isn't such complex as Chrome.
> But the code-size would be a fraction in C++.

First you need to tell us what you mean by code size.
To many people, "code size" is actually the size of the binary code. But
I suppose you are talking about source code here? (If we were talking
about binary code size, I'd venture that the opposite would be true. The
size would be likely to be significantly bigger.)

Anyway, this is a very common statement, regardless of the project, that
using C++ would invariably lead to fewer lines of code. But except for
small examples tailored just to show that, I have yet to see a formal
study clearly showing the point. And I have seen a lot of C++ projects
that were horribly bloated, unnecessarily complex and with a un
unreasonablme mess of class hierarchies.

But beyond that, does fewer lines of code always mean less coding effort
and easier maintenance? Not necessarily.

Feel free to rewrite the Linux kernel in C++ though. Or write your own
kernel with equivalent functionality. Don't forget to write it such that
it can survive 30 years without major rewrites every couple of years.
And we'll talk.

Re: C23 (C2x) changes

<skg7bg$57r$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!aioe.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: Sun, 17 Oct 2021 06:04:02 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <skg7bg$57r$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> <skf94t$11fp$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 17 Oct 2021 04:04:00 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="37fd49d48d4aeca3e1e74e0dad0f5442";
logging-data="5371"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cs/uXs2ycZT17YfJs6XNJF4GPXR11zV0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:Iuj43jvAsg2vmIuhm/dfUgH7XD8=
In-Reply-To: <skf94t$11fp$1@gioia.aioe.org>
Content-Language: de-DE
 by: Bonita Montero - Sun, 17 Oct 2021 04:04 UTC

Am 16.10.2021 um 21:28 schrieb Guillaume:
> Le 16/10/2021 à 07:51, Bonita Montero a écrit :
>> I think the Linux-kernel isn't such complex as Chrome.
>> But the code-size would be a fraction in C++.
>
> First you need to tell us what you mean by code size.
> To many people, "code size" is actually the size of the binary code. But
> I suppose you are talking about source code here? (If we were talking
> about binary code size, I'd venture that the opposite would be true. The
> size would be likely to be significantly bigger.)

Yes, I'm talking about the LOCs.

> Anyway, this is a very common statement, regardless of the project, that
> using C++ would invariably lead to fewer lines of code. But except for
> small examples tailored just to show that, I have yet to see a formal
> study clearly showing the point. And I have seen a lot of C++ projects
> that were horribly bloated, unnecessarily complex and with a un
> unreasonablme mess of class hierarchies.

With C++ you've usually much less complexity.

Re: C23 (C2x) changes

<slrnsmommo.fm5.jj@iridium.wf32df>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!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: Sun, 17 Oct 2021 17:18:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <slrnsmommo.fm5.jj@iridium.wf32df>
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> <skf6to$fqs$1@dont-email.me>
<skf94f$v13$1@dont-email.me>
Injection-Date: Sun, 17 Oct 2021 17:18:16 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="01c0d20e13a4f3e358c4a365c69f89f3";
logging-data="20050"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191mQTWfUZzo5/LeBlyAsvVr0EKewyOoPA="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:JK3oSIz76BguJPn5tpELzXcpbJ0=
 by: Jim Jackson - Sun, 17 Oct 2021 17:18 UTC

On 2021-10-16, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 16.10.2021 um 20:50 schrieb Chris M. Thomasson:
>> 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?
>
> Think that Chrome would be at least five times the line-count if it
> would be written in C. I bet it would be impossible to write stl like
> Chrome in C. Look at the Oracle DB server: 25 mio lines of C and lots
> of bugs fixed regulary. Such complex softare would be handled much
> easier in C++.

Linux currently has about 27 million lines of code.

I think you may be right about C++ for many userland graphical programs.
Can you name an OS written in C++?

Re: C23 (C2x) changes

<skhmtq$1ghs$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: rocksolid2!i2pn.org!aioe.org!Puiiztk9lHEEQC0y3uUjRA.user.46.165.242.75.POSTED!not-for-mail
From: non...@add.invalid (Manfred)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Sun, 17 Oct 2021 19:35:54 +0200
Organization: Aioe.org NNTP Server
Message-ID: <skhmtq$1ghs$1@gioia.aioe.org>
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> <skf94t$11fp$1@gioia.aioe.org>
<skg7bg$57r$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="49724"; posting-host="Puiiztk9lHEEQC0y3uUjRA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Manfred - Sun, 17 Oct 2021 17:35 UTC

On 10/17/2021 6:04 AM, Bonita Montero wrote:
> Am 16.10.2021 um 21:28 schrieb Guillaume:
>> Le 16/10/2021 à 07:51, Bonita Montero a écrit :
>>> I think the Linux-kernel isn't such complex as Chrome.
>>> But the code-size would be a fraction in C++.
>>
>> First you need to tell us what you mean by code size.
>> To many people, "code size" is actually the size of the binary code.
>> But I suppose you are talking about source code here? (If we were
>> talking about binary code size, I'd venture that the opposite would be
>> true. The size would be likely to be significantly bigger.)
>
> Yes, I'm talking about the LOCs.

As Guillame said, this is not really a measure of code efficiency:

> But beyond that, does fewer lines of code always mean less coding effort and easier maintenance? Not necessarily.

>
>> Anyway, this is a very common statement, regardless of the project,
>> that using C++ would invariably lead to fewer lines of code. But
>> except for small examples tailored just to show that, I have yet to
>> see a formal study clearly showing the point. And I have seen a lot of
>> C++ projects that were horribly bloated, unnecessarily complex and
>> with a un unreasonablme mess of class hierarchies.
>
> With C++ you've usually much less complexity.

That is not properly accurate, I'd rephrase:

C++ is better equipped for managing complexity, yes.

But, depending on the problem domain, many problems get a simpler and
more efficient solution from C than C++.

Which is no surprise, it is in fact the reason for which C code can be
compiled by C++ compilers - in other words, the reason why C++ has been
thought of as a superset of C.

(If you limit yourself to Windows application programming then yes, C++
makes life easier than C does)

Re: C23 (C2x) changes

<skhoc0$arv$1@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Sun, 17 Oct 2021 20:00:32 +0200
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <skhoc0$arv$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> <skf6to$fqs$1@dont-email.me>
<skf94f$v13$1@dont-email.me> <slrnsmommo.fm5.jj@iridium.wf32df>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Oct 2021 18:00:32 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="37fd49d48d4aeca3e1e74e0dad0f5442";
logging-data="11135"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/iZJBYYqq97B6XUaMKoGI1cChJAUgjkAA="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:xR1XYKQKT2c9gC0Y73M+RjEQypw=
In-Reply-To: <slrnsmommo.fm5.jj@iridium.wf32df>
Content-Language: de-DE
 by: Bonita Montero - Sun, 17 Oct 2021 18:00 UTC

> Linux currently has about 27 million lines of code.
> I think you may be right about C++ for many userland graphical programs.
> Can you name an OS written in C++?

Symbian and Haiku.
That's not a matter of necesities that most operating systems are
written in C, that's just a matter of the writer's mindeset. Writing
an operating system in C++ would result in much less code and much
less bugs - if you use the language properly.

Re: C23 (C2x) changes

<skhoe5$arv$2@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Sun, 17 Oct 2021 20:01:41 +0200
Organization: A noiseless patient Spider
Lines: 6
Message-ID: <skhoe5$arv$2@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> <skf94t$11fp$1@gioia.aioe.org>
<skg7bg$57r$1@dont-email.me> <skhmtq$1ghs$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Oct 2021 18:01:41 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="37fd49d48d4aeca3e1e74e0dad0f5442";
logging-data="11135"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eseRqk33EzrW2CDo3ZtoD8KRbFFkuLek="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:/2IQO680BBqiFaWsyPLeBDt5Fpc=
In-Reply-To: <skhmtq$1ghs$1@gioia.aioe.org>
Content-Language: de-DE
 by: Bonita Montero - Sun, 17 Oct 2021 18:01 UTC

> But, depending on the problem domain, many problems get a simpler and
> more efficient solution from C than C++.

That's wrong. Its easier to structure all complex data-structures and
algorithms in C++.

Re: C23 (C2x) changes

<skhpce$jbs$1@dont-email.me>

  copy mid

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

  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: Sun, 17 Oct 2021 19:17:49 +0100
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <skhpce$jbs$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> <skf6to$fqs$1@dont-email.me>
<skf94f$v13$1@dont-email.me> <slrnsmommo.fm5.jj@iridium.wf32df>
<skhoc0$arv$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Oct 2021 18:17:50 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="de733b56dee91b5ac99e2c12cd9037cd";
logging-data="19836"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196AWtkxddANX4OKA1dMELGJHraObDFs2k="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:DKIAclNWhVjPIaaYf+cWqmdqAXE=
In-Reply-To: <skhoc0$arv$1@dont-email.me>
X-Antivirus-Status: Clean
Content-Language: en-GB
X-Antivirus: AVG (VPS 211017-6, 17/10/2021), Outbound message
 by: Bart - Sun, 17 Oct 2021 18:17 UTC

On 17/10/2021 19:00, Bonita Montero wrote:
>> Linux currently has about 27 million lines of code.
>> I think you may be right about C++ for many userland graphical programs.
>> Can you name an OS written in C++?
>
> Symbian and Haiku.
> That's not a matter of necesities that most operating systems are
> written in C, that's just a matter of the writer's mindeset. Writing
> an operating system in C++ would result in much less code

Less code that /you/ have to write. Until you expand all those
templates. Overall, it might be a different picture.

That's assuming you make use of that ability to keep user-code shorter.

The examples I've seen of yours, is to take advantage of all those toys
to make user-code /more/ complicated.

Re: C23 (C2x) changes

<ski3pr$puc$1@dont-email.me>

  copy mid

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

  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: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Sun, 17 Oct 2021 14:15:36 -0700
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <ski3pr$puc$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> <skf94t$11fp$1@gioia.aioe.org>
<skg7bg$57r$1@dont-email.me> <skhmtq$1ghs$1@gioia.aioe.org>
<skhoe5$arv$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 17 Oct 2021 21:15:39 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="cabdb5ccb0170602492e5aa4eb37909b";
logging-data="26572"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SXjOqL6CVUM6wPQFPzpwFnxdLFrHQyxo="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:HWN+cLNPeLeaHBnmHOb/bzSu73w=
In-Reply-To: <skhoe5$arv$2@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Sun, 17 Oct 2021 21:15 UTC

On 10/17/2021 11:01 AM, Bonita Montero wrote:
>> But, depending on the problem domain, many problems get a simpler and
>> more efficient solution from C than C++.
>
> That's wrong. Its easier to structure all complex data-structures and
> algorithms in C++.
>

Its a lot easier to export a stable API in C. However, writing a kernel
in C++ is doable, but a bit tricky because you have to be extra careful.
Check this code out, NT 4.0 kernel, C galore... ;^)

https://github.com/ZoloZiak/WinNT4/tree/master/private/ntos

I wonder what this would look like in C++. Humm... I wonder if they are
using C++ for Win11? Anybody know?

Re: C23 (C2x) changes

<skiucf$s55$1@dont-email.me>

  copy mid

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

  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: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c
Subject: Re: C23 (C2x) changes
Date: Mon, 18 Oct 2021 06:49:20 +0200
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <skiucf$s55$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> <skf6to$fqs$1@dont-email.me>
<skf94f$v13$1@dont-email.me> <slrnsmommo.fm5.jj@iridium.wf32df>
<skhoc0$arv$1@dont-email.me> <skhpce$jbs$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Oct 2021 04:49:19 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f5a77e1b9f86a5502f1e9e1f37f325c9";
logging-data="28837"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KkDgNKWvYee3FP56ZaVLA5SSXtvJjEGU="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:tbBEsINdiEntlJ1uAe0sDwBeOEQ=
In-Reply-To: <skhpce$jbs$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Mon, 18 Oct 2021 04:49 UTC

> Less code that /you/ have to write. Until you expand all
> those templates. Overall, it might be a different picture.

Do you think someone inspects the code expanded through templates ?
No one does that.

> The examples I've seen of yours, is to take advantage of all those
> toys to make user-code /more/ complicated.

That's wrong. C++ almost always results in simpler code.

Re: C23 (C2x) changes

<skjhuk$u9n$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!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: Mon, 18 Oct 2021 11:23:12 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <skjhuk$u9n$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> <skf6to$fqs$1@dont-email.me>
<skf94f$v13$1@dont-email.me> <slrnsmommo.fm5.jj@iridium.wf32df>
<skhoc0$arv$1@dont-email.me> <skhpce$jbs$1@dont-email.me>
<skiucf$s55$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 18 Oct 2021 10:23:16 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5b385cac1b7c3d9e22cea5490e35ed35";
logging-data="31031"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JDIoWFbW3vYvEbnxAZiuLAY9XjZRpnlU="
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:L22HIlUDyxW6oXza2EidH1Mnt8w=
In-Reply-To: <skiucf$s55$1@dont-email.me>
X-Antivirus-Status: Clean
Content-Language: en-GB
X-Antivirus: AVG (VPS 211018-0, 18/10/2021), Outbound message
 by: Bart - Mon, 18 Oct 2021 10:23 UTC

On 18/10/2021 05:49, Bonita Montero wrote:
>> Less code that /you/ have to write. Until you expand all
>> those  templates. Overall, it might be a different picture.
>
> Do you think someone inspects the code expanded through templates ?
> No one does that.

It might be an issue if the resulting binary is several times the size
of the C equivalent.

>> The examples I've seen of yours, is to take advantage of all those
>> toys  to make user-code /more/ complicated.
>
> That's wrong. C++ almost always results in simpler code.

That was my point. It /could/ do (setting aside C++'s busy syntax). But
all examples of yours look like gobbledygook, even making use of those
libraries. It seems like you're just pulling in all those extra features
because you can.

Re: C23 (C2x) changes

<skjo69$pvd$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!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: Mon, 18 Oct 2021 14:09:45 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <skjo69$pvd$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> <skf6to$fqs$1@dont-email.me>
<skf94f$v13$1@dont-email.me> <slrnsmommo.fm5.jj@iridium.wf32df>
<skhoc0$arv$1@dont-email.me> <skhpce$jbs$1@dont-email.me>
<skiucf$s55$1@dont-email.me> <skjhuk$u9n$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 18 Oct 2021 12:09:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="f5a77e1b9f86a5502f1e9e1f37f325c9";
logging-data="26605"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19A2s7oU+8aLb6qTXlviG3/AgSjRD0D4IY="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:IlZQGBPclX59kxuz4jewV0z68dY=
In-Reply-To: <skjhuk$u9n$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Mon, 18 Oct 2021 12:09 UTC

>> Do you think someone inspects the code expanded through templates ?
>> No one does that.

> It might be an issue if the resulting binary is several times the size
> of the C equivalent.

Why should that be so ? The only thing that takes more space are the
tables for table-driven exception-handling, but this code isn't usually
executed. The other code is the same as you would write it manually in
C, but it takes much less time to write.

>> That's wrong. C++ almost always results in simpler code.

> That was my point. It /could/ do (setting aside C++'s busy syntax). But
> all examples of yours look like gobbledygook, ...

That's not true.
I've always received a lot of praise for my coding-style.

Re: C23 (C2x) changes

<d_2cJ.2542$oo4.2056@fx02.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx02.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> <86r1cyquwk.fsf@linuxsc.com>
<skbmtm$33h$1@dont-email.me> <slrnsmjcan.8iv.jj@iridium.wf32df>
<skdp9s$i4b$1@dont-email.me> <skf94t$11fp$1@gioia.aioe.org>
<skg7bg$57r$1@dont-email.me>
User-Agent: slrn/1.0.3 (Darwin)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Lines: 30
Message-ID: <d_2cJ.2542$oo4.2056@fx02.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Thu, 21 Oct 2021 01:02:01 UTC
Organization: usenet-news.net
Date: Thu, 21 Oct 2021 01:02:01 GMT
X-Received-Bytes: 2185
 by: Branimir Maksimovic - Thu, 21 Oct 2021 01:02 UTC

On 2021-10-17, Bonita Montero <Bonita.Montero@gmail.com> wrote:
> Am 16.10.2021 um 21:28 schrieb Guillaume:
>> Le 16/10/2021 à 07:51, Bonita Montero a écrit :
>>> I think the Linux-kernel isn't such complex as Chrome.
>>> But the code-size would be a fraction in C++.
>>
>> First you need to tell us what you mean by code size.
>> To many people, "code size" is actually the size of the binary code. But
>> I suppose you are talking about source code here? (If we were talking
>> about binary code size, I'd venture that the opposite would be true. The
>> size would be likely to be significantly bigger.)
>
> Yes, I'm talking about the LOCs.
>
>> Anyway, this is a very common statement, regardless of the project, that
>> using C++ would invariably lead to fewer lines of code. But except for
>> small examples tailored just to show that, I have yet to see a formal
>> study clearly showing the point. And I have seen a lot of C++ projects
>> that were horribly bloated, unnecessarily complex and with a un
>> unreasonablme mess of class hierarchies.
>
> With C++ you've usually much less complexity.
Yes, but you have to be carefull with C++ as it is not readable
and complex. Few people can understand it ...

--

7-77-777
Evil Sinner!
with software, you repeat same experiment, expecting different results...

Re: C23 (C2x) changes

<7%2cJ.2543$oo4.566@fx02.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx02.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> <86r1cyquwk.fsf@linuxsc.com>
<skbmtm$33h$1@dont-email.me> <slrnsmjcan.8iv.jj@iridium.wf32df>
<skdp9s$i4b$1@dont-email.me> <skf6to$fqs$1@dont-email.me>
<skf94f$v13$1@dont-email.me> <slrnsmommo.fm5.jj@iridium.wf32df>
User-Agent: slrn/1.0.3 (Darwin)
Lines: 42
Message-ID: <7%2cJ.2543$oo4.566@fx02.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Thu, 21 Oct 2021 01:02:59 UTC
Organization: usenet-news.net
Date: Thu, 21 Oct 2021 01:02:59 GMT
X-Received-Bytes: 2415
 by: Branimir Maksimovic - Thu, 21 Oct 2021 01:02 UTC

On 2021-10-17, Jim Jackson <jj@franjam.org.uk> wrote:
> On 2021-10-16, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 16.10.2021 um 20:50 schrieb Chris M. Thomasson:
>>> 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?
>>
>> Think that Chrome would be at least five times the line-count if it
>> would be written in C. I bet it would be impossible to write stl like
>> Chrome in C. Look at the Oracle DB server: 25 mio lines of C and lots
>> of bugs fixed regulary. Such complex softare would be handled much
>> easier in C++.
>
> Linux currently has about 27 million lines of code.
>
> I think you may be right about C++ for many userland graphical programs.
> Can you name an OS written in C++?
>

That would be interresting venture :P
>

--

7-77-777
Evil Sinner!
with software, you repeat same experiment, expecting different results...

Re: C23 (C2x) changes

<533cJ.2310$1n1.194@fx48.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx48.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> <86r1cyquwk.fsf@linuxsc.com>
<skbmtm$33h$1@dont-email.me> <slrnsmjcan.8iv.jj@iridium.wf32df>
<skdp9s$i4b$1@dont-email.me> <skf6to$fqs$1@dont-email.me>
<skf94f$v13$1@dont-email.me> <slrnsmommo.fm5.jj@iridium.wf32df>
<skhoc0$arv$1@dont-email.me>
User-Agent: slrn/1.0.3 (Darwin)
Lines: 15
Message-ID: <533cJ.2310$1n1.194@fx48.iad>
X-Complaints-To: abuse@usenet-news.net
NNTP-Posting-Date: Thu, 21 Oct 2021 01:07:13 UTC
Organization: usenet-news.net
Date: Thu, 21 Oct 2021 01:07:13 GMT
X-Received-Bytes: 1214
 by: Branimir Maksimovic - Thu, 21 Oct 2021 01:07 UTC

On 2021-10-17, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Linux currently has about 27 million lines of code.
>> I think you may be right about C++ for many userland graphical programs.
>> Can you name an OS written in C++?
>
> Symbian and Haiku.
True Symbian is DEAD, let LIVE "Haiku :P

--

7-77-777
Evil Sinner!
with software, you repeat same experiment, expecting different results...

Re: C23 (C2x) changes

<skri4e$4qd$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!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: Thu, 21 Oct 2021 13:15:26 +0200
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <skri4e$4qd$2@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> <skf94t$11fp$1@gioia.aioe.org>
<skg7bg$57r$1@dont-email.me> <d_2cJ.2542$oo4.2056@fx02.iad>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Oct 2021 11:15:26 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="fa63fb3caf1aa7fe5aa7e240b95d5ef0";
logging-data="4941"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LtLgqxCrHYBWfcLGMDeftxXATZ7nwlNc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.2.0
Cancel-Lock: sha1:aZeuUlLxBOVsxXH/6nT5m8pIQIY=
In-Reply-To: <d_2cJ.2542$oo4.2056@fx02.iad>
Content-Language: de-DE
 by: Bonita Montero - Thu, 21 Oct 2021 11:15 UTC

Am 21.10.2021 um 03:02 schrieb Branimir Maksimovic:
> On 2021-10-17, Bonita Montero <Bonita.Montero@gmail.com> wrote:
>> Am 16.10.2021 um 21:28 schrieb Guillaume:
>>> Le 16/10/2021 à 07:51, Bonita Montero a écrit :
>>>> I think the Linux-kernel isn't such complex as Chrome.
>>>> But the code-size would be a fraction in C++.
>>>
>>> First you need to tell us what you mean by code size.
>>> To many people, "code size" is actually the size of the binary code. But
>>> I suppose you are talking about source code here? (If we were talking
>>> about binary code size, I'd venture that the opposite would be true. The
>>> size would be likely to be significantly bigger.)
>>
>> Yes, I'm talking about the LOCs.
>>
>>> Anyway, this is a very common statement, regardless of the project, that
>>> using C++ would invariably lead to fewer lines of code. But except for
>>> small examples tailored just to show that, I have yet to see a formal
>>> study clearly showing the point. And I have seen a lot of C++ projects
>>> that were horribly bloated, unnecessarily complex and with a un
>>> unreasonablme mess of class hierarchies.
>>
>> With C++ you've usually much less complexity.
> Yes, but you have to be carefull with C++ as it is not readable
> and complex. Few people can understand it ...

That depends on how you use it. But usually it's more
readable and if you use it properly it's impossible to
get the same readability in C.

Re: C23 (C2x) changes

<86a6isf62y.fsf@linuxsc.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!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: Fri, 29 Oct 2021 04:01:09 -0700
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <86a6isf62y.fsf@linuxsc.com>
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=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="b7f56eff5ad6c7d9130605d054ce58ef";
logging-data="21911"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BUrRBTM9JK+aE+VY+66WFDlAKn3HZlwA="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:U7AtmnK3frFQmcPwIU22//Bp1rg=
sha1:2UdmW9uZvlO9NJEJGr6LG3ikl94=
 by: Tim Rentsch - Fri, 29 Oct 2021 11:01 UTC

Guillaume <message@bottle.org> writes:

> Le 06/10/2021 at 13:01, Tim Rentsch a ecrit:
>
>> 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?

None of the foregoing comments changes my reaction to the
proposal summary or my assessment of the trend.

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

Given your statements above, what is my incentive for doing that?

Re: C23 (C2x) changes

<865ytgf5xb.fsf@linuxsc.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!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: Fri, 29 Oct 2021 04:04:32 -0700
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <865ytgf5xb.fsf@linuxsc.com>
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com> <84beca66-cddd-4b7b-a155-444890ea8fd9n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="b7f56eff5ad6c7d9130605d054ce58ef";
logging-data="21911"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JiTFDftRIlQj8hZYDOpUw00t38zWy3Po="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:LeYrHlvVSmdRC5xGTULPYGWfj+M=
sha1:sf8rr2MsF0vg2dYhZ2Go3ZhVdO4=
 by: Tim Rentsch - Fri, 29 Oct 2021 11:04 UTC

Thiago Adams <thiago.adams@gmail.com> writes:

> 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? [...]

Forgive me for being blunt, but I find your postings idiotic.
I don't see any value in participating in that idiocy.

Re: C23 (C2x) changes

<slh0qe$6ak$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.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: Fri, 29 Oct 2021 16:34:53 +0200
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <slh0qe$6ak$1@dont-email.me>
References: <si99fr$ma4$1@dont-email.me> <86r1cyquwk.fsf@linuxsc.com>
<84beca66-cddd-4b7b-a155-444890ea8fd9n@googlegroups.com>
<865ytgf5xb.fsf@linuxsc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 29 Oct 2021 14:34:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="044730f83b8df4b517f7b640a2035a1b";
logging-data="6484"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/E0tlQOUEX6x91M3QXisxzxOvv3bs0oRE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:U11+0iHUx7EwZHWa0DeRVO9AI3o=
In-Reply-To: <865ytgf5xb.fsf@linuxsc.com>
Content-Language: en-GB
 by: David Brown - Fri, 29 Oct 2021 14:34 UTC

On 29/10/2021 13:04, Tim Rentsch wrote:
> Thiago Adams <thiago.adams@gmail.com> writes:
>
>> 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? [...]
>
> Forgive me for being blunt, but I find your postings idiotic.
> I don't see any value in participating in that idiocy.
>

Disagreeing with your out-of-the-blue statement and asking for examples
and justification is being "idiotic" ? Even by your usual low
standards, Tim, that is unreasonable.

Pages:12345
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor