Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

panic: can't find /


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

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

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

<uatjcp$3ec7b$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 16:27:36 +0200
Organization: A noiseless patient Spider
Lines: 142
Message-ID: <uatjcp$3ec7b$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<878rbaqch6.fsf@nosuchdomain.example.com> <u9dm6t$370v3$1@dont-email.me>
<u9dv2c$38ir2$1@dont-email.me> <u9e7bp$3a1ug$1@dont-email.me>
<u9h055$3s62g$7@dont-email.me> <87351foebi.fsf@bsb.me.uk>
<86tttts1g2.fsf@linuxsc.com> <87351dm210.fsf@nosuchdomain.example.com>
<789db599-e078-485f-bf16-32865c1eb970n@googlegroups.com>
<u9rcgd$1h7l5$1@dont-email.me> <WRawM.202896$TPw2.151582@fx17.iad>
<u9rnnv$1iftl$1@dont-email.me> <WNdwM.224816$GMN3.36273@fx16.iad>
<u9s1v2$1jhg7$1@dont-email.me> <u9tko8$1s9cs$1@dont-email.me>
<u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me>
<u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me>
<uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me>
<uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me>
<uajaqg$1bc41$4@dont-email.me> <uajfq3$1cesi$1@dont-email.me>
<uat7t4$3cco6$1@dont-email.me> <uat9ca$3cjmt$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 8 Aug 2023 14:27:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="512f07d8c41584f35ecc4f03b0b34350";
logging-data="3617003"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184/085MA8jAlv6hThYcRnK6qTv0PMHNGA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
Cancel-Lock: sha1:BQF3/3BMRMjeLbzoy/B686OQVLI=
Content-Language: en-GB
In-Reply-To: <uat9ca$3cjmt$1@dont-email.me>
 by: David Brown - Tue, 8 Aug 2023 14:27 UTC

On 08/08/2023 13:36, Bart wrote:
> On 08/08/2023 12:11, David Brown wrote:
> > On 04/08/2023 20:25, Bart wrote:
> >> Besides, with pretty much every other language with a command-line
> >> build process, if you submit a single source file 'fred.lang', it will
> >> produce a matching executable 'fred.exe` without needing to be told
> how.
> >
> > Pretty much every other language is not C, and does not have the history
> > of C or the history of C compilers.
>
> That is irrelevant. C compilers like Pelles C, lccwin32, DMC, Tiny C
> (Windows), MSVC plus mine of course manage to do it properly, despite
> that history.
>

Equally, you could argue that all these tools do it wrong - because they
don't do it the way users of certain other compilers expect.

As I have said repeatedly, I don't disagree that it could be convenient
to have an executable name generated automatically from the name of the
first C file on the list. I just disagree with the idea that such
behaviour is somehow the only correct or rational choice, or that tools
that do something different from what /you/ personally prefer are "wrong".

One difference that may be significant is that most of the tools you
mention are compilers. The program "gcc" is a driver program - a
front-end - for a range of tools including compilers for different
languages and third-party tools such as assemblers and linkers.

I would expect that only a small proportion of invocations of "gcc" are
actually producing an executable - more will be generating object files,
and some are for other uses (generating assembly or listing files,
dependency files, or other odd use-cases). If I were changing the
default, I would have "gcc prog.c" default to compiling "prog.o", rather
than an executable of any name.

> It is one stupid decision in one compiler that nobody has bothered to
> fix. At least give it an option to override, but in a form where you
> don't need to provide a file name. Example:
>
>     gcc -new prog.c
>
> will use the rule that the name of the executable is taken from the
> first or only submitted C file. Would that have been too hard?
>

I would imagine it would not be particularly hard. But would it be
particularly useful or popular? I doubt it. After all, it is not
easier to use than "gcc -o prog prog.c" would be.

> No. It is just plain stubbornness, because we WANT to still be doing
> -ofile.exe and -lm even into the next millenium.
>

The gcc developers are quite good at implementing features or changes
that make the tool better or easier to use - many of them are paid to do
exactly that. But they do not change defaults just because someone says
they think it is "obviously" better to do things differently - they need
good reason, especially if there is simple to use the tool as it is, and
some existing build scripts might rely on the existing behaviour. It is
not stubbornness that guides them - it is professionalism in maintaining
a project with a vast number of users with many different needs and
preferences.

>
> > And for pretty much every compiled language, you can type "make fred"
> > and get the executable "fred" from the source C, C++, Fortran, D, or
> > whatever.
> >
> > And pretty much every serious programmer uses build tools, regardless of
> > the language - whether it be make, ant, bake, their own batch files,
> > IDEs, or whatever suits them.  I no of no one else who goes so far out
> > of their way to make life difficult for themselves just so that they can
> > complain about how hard it all is.
>
> No so much hard; it just doesn't work. I've seen too many failures of
> 'make' on Windows; I /have/ given it a chance.
>

You have worked long and hard to make things fail, and to find new ways
to get things wrong. I've used "make" on Windows (and DOS before it)
for 30 years or more, and have not seen anything like the trouble you
seem to have. (I don't think "make" is perfect - there's plenty that
can get very messy when you have complex setups, and everyone, including
the original author of make, agrees that the distinction between tabs
and spaces was a really bad design decision.)

But if you don't like make, try one of the dozens of alternatives. Or
write a batch file. Or make your own build program - it's not hard, at
least for a simple arrangement.

> People over-complicate build systems for little reason.

You are always blaming other people. If you want a simple makefile,
write a simple makefile. If you want a simple build system, write a ten
line batch file.

> And ones that
> originate on Linux travel poorly.
>

I am sure that is correct - you wouldn't have said so without solid
evidence. And I am sure you are aware that "make" did not originate on
Linux, and that "make" is not the only build tool around.

> Don't forget that build systems are usually intended for developers,
> where incremental compilation, or organising files into dozens of nested
> files might be important for them.

Don't forget that compilers are also usually intended for developers.

>
> But all that is utterly irrelevant for anyone just wanting to build a
> finished, working program from source.
>

Yes, that's why people use build tools.

Pretty much all software provided as source code will be build using
build tools. The user will type "install.sh", or "setup.py", or
"cmake", or "./configure && make && make install", or whatever the
instructions are for the software. What they will almost /never/ do is
typing in a series of compiler commands and flags.

> That is why when I used to provide distributions as source code, there
> where just two things needed:
>
> (1) The source code
> (2) A compiler
>
> I provided (1) as a single file. If I provided (2), that would be a
> single file too. Otherwise, it would be a single command, like 'gcc
> source.c'.
>

Yes, and how many people use your code? How many have told you that
they had wanted to use gcc for their programming, but found it so hard
to write "gcc -o prog prog.c" that they switched to your compiler so
they could type "bcc prog.c" ?

Re: you think rust may *DE*throne c?

<uatjjb$3ec5e$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.network!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: you think rust may *DE*throne c?
Date: Tue, 8 Aug 2023 15:31:08 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <uatjjb$3ec5e$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9s1v2$1jhg7$1@dont-email.me> <u9tko8$1s9cs$1@dont-email.me>
<u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me>
<u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me>
<uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me>
<uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me>
<uajaqg$1bc41$4@dont-email.me> <uajfq3$1cesi$1@dont-email.me>
<uat7t4$3cco6$1@dont-email.me> <uat9ca$3cjmt$1@dont-email.me>
<1ZrAM.325526$U3w1.65892@fx09.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Aug 2023 14:31:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="115b4274f90776d5149306232e7f09b9";
logging-data="3616942"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ogcyj/Aguy/Ilkc4ZMzAcGbe12emgXJQ="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:C+yEI0zvqa4S5G8y+npI2QPNe3A=
In-Reply-To: <1ZrAM.325526$U3w1.65892@fx09.iad>
 by: Bart - Tue, 8 Aug 2023 14:31 UTC

On 08/08/2023 15:05, Scott Lurndal wrote:
> Bart <bc@freeuk.com> writes:
>> On 08/08/2023 12:11, David Brown wrote:
>
>> It is one stupid decision in one compiler that nobody has bothered to
>> fix. At least give it an option to override, but in a form where you
>> don't need to provide a file name. Example:
>>
>> gcc -new prog.c
>
> This would violate the POSIX option guidelines.
>
> gcc -o new prog.c
>
> is far superior in every way.

That doesn't do the same thing. I want the output to be prog.exe, but I
don't want to have to write 'prog' twice.

Your command line will create an output file called 'new'.

'new' refers to 'new rules'.

Re: you think rust may outthrone c?

<uatjjl$3ec5e$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 15:31:18 +0100
Organization: A noiseless patient Spider
Lines: 38
Message-ID: <uatjjl$3ec5e$2@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9tko8$1s9cs$1@dont-email.me> <u9trgp$1stmg$1@dont-email.me>
<u9u040$1tbdh$1@dont-email.me> <u9u5cd$1tqc9$1@dont-email.me>
<uaavm0$3ln4f$1@dont-email.me> <uab5ja$3mc91$1@dont-email.me>
<uabeq1$3nigh$1@dont-email.me> <uabobj$3oias$1@dont-email.me>
<uaduf0$54pp$1@dont-email.me> <uaeul9$b81t$1@dont-email.me>
<uah700$u4lr$1@dont-email.me> <87wmybkapt.fsf@nosuchdomain.example.com>
<uai383$15l5r$1@dont-email.me> <xs7zM.474554$GMN3.196055@fx16.iad>
<uaj1o2$1a70n$1@dont-email.me> <mKdzM.481384$AsA.322316@fx18.iad>
<86wmyafbid.fsf@linuxsc.com> <uali5e$1ogan$1@dont-email.me>
<86leelbsqo.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Aug 2023 14:31:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="115b4274f90776d5149306232e7f09b9";
logging-data="3616942"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18loYFC01a57aMXaV6uVYkFXK0a9YiYLzo="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:kHwSfHKpmKlMzAa/ugjCA5kydPA=
In-Reply-To: <86leelbsqo.fsf@linuxsc.com>
 by: Bart - Tue, 8 Aug 2023 14:31 UTC

On 08/08/2023 13:53, Tim Rentsch wrote:
> Bart <bc@freeuk.com> writes:
>
>> All I'm hearing is excuses.
>
> I don't think you're hearing anything. Probably the most
> prominent mode seen in your postings is not listening to
> what the other person is saying, and then changing the
> subject.

On 08/08/2023 13:53, Tim Rentsch wrote:
> Bart <bc@freeuk.com> writes:
>
>> All I'm hearing is excuses.
>
> I don't think you're hearing anything. Probably the most
> prominent mode seen in your postings is not listening to
> what the other person is saying, and then changing the
> subject.

I get exactly the same feeling.

People will defend a bad C feature to the death, no matter what.
Everything is apparently solved by 'understanding'.

Understanding why that big pile of ugly conditional code exists
/doesn't/ make it all right.

But all anyone here cares about is whether something is right or wrong
according to some section, subsection and paragraph in the C standard.

Unless the subject shifts to tools such as compilers. Then it's a little
bit different:

Whatever gcc does is right. Every other way of doing it is wrong.

Re: you think rust may *DE*throne c?

<JnsAM.481171$SuUf.8783@fx14.iad>

  copy mid

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

  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!fx14.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: you think rust may *DE*throne c?
Newsgroups: comp.lang.c
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com> <u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me> <u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me> <uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me> <uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me> <uajaqg$1bc41$4@dont-email.me> <uajfq3$1cesi$1@dont-email.me> <uat7t4$3cco6$1@dont-email.me> <uat9ca$3cjmt$1@dont-email.me> <1ZrAM.325526$U3w1.65892@fx09.iad> <uatjjb$3ec5e$1@dont-email.me>
Lines: 25
Message-ID: <JnsAM.481171$SuUf.8783@fx14.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Tue, 08 Aug 2023 14:34:17 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 08 Aug 2023 14:34:17 GMT
X-Received-Bytes: 1839
 by: Scott Lurndal - Tue, 8 Aug 2023 14:34 UTC

Bart <bc@freeuk.com> writes:
>On 08/08/2023 15:05, Scott Lurndal wrote:
>> Bart <bc@freeuk.com> writes:
>>> On 08/08/2023 12:11, David Brown wrote:
>>
>>> It is one stupid decision in one compiler that nobody has bothered to
>>> fix. At least give it an option to override, but in a form where you
>>> don't need to provide a file name. Example:
>>>
>>> gcc -new prog.c
>>
>> This would violate the POSIX option guidelines.
>>
>> gcc -o new prog.c
>>
>> is far superior in every way.
>
>That doesn't do the same thing. I want the output to be prog.exe, but I
>don't want to have to write 'prog' twice.

That's your problem, not ours.

Besides, filename suffixes for executables is silly.

Re: you think rust may outthrone c?

<871qgdiool.fsf@bsb.me.uk>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 08 Aug 2023 15:39:06 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <871qgdiool.fsf@bsb.me.uk>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<87351dm210.fsf@nosuchdomain.example.com>
<789db599-e078-485f-bf16-32865c1eb970n@googlegroups.com>
<u9rcgd$1h7l5$1@dont-email.me> <WRawM.202896$TPw2.151582@fx17.iad>
<u9rnnv$1iftl$1@dont-email.me> <WNdwM.224816$GMN3.36273@fx16.iad>
<u9s1v2$1jhg7$1@dont-email.me> <u9tko8$1s9cs$1@dont-email.me>
<u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me>
<u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me>
<uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me>
<uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me>
<uajaqg$1bc41$4@dont-email.me> <uajfq3$1cesi$1@dont-email.me>
<uat7t4$3cco6$1@dont-email.me>
<44ca14e8-6fa7-44ff-811d-b598171a9302n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="945523f5e3d1954d075c7466baf93133";
logging-data="3616867"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19McGrogvISdWICRCNwSjCo+70DFizkSTs="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:feGpK9AdvVXD2SOEpxGLTgWELiQ=
sha1:kPKWgKkIXQz8kT6r1czBmH+4YwE=
X-BSB-Auth: 1.7a48a35a70131f4d9b08.20230808153906BST.871qgdiool.fsf@bsb.me.uk
 by: Ben Bacarisse - Tue, 8 Aug 2023 14:39 UTC

Malcolm McLean <malcolm.arthur.mclean@gmail.com> writes:

> I used CMake for the Baby X resource compiler. It worked on Windows
> and Mac. But it broke on Linux when Ben tested it.

Maybe you were able to conclude that, but I only reported compile
errors. That may have been the fault of CMake, but you never said what
the problem was, only to say that "linux" included <stdint.h>.

> Because it wasn't
> actually passing the "-lm" option to link the math library.

That can't be anything to do with the compile errors that I reported.

--
Ben.

Re: you think rust may outthrone c?

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

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 08 Aug 2023 15:56:59 +0100
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <87v8dph9ac.fsf@bsb.me.uk>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<uag05n$nmu5$1@dont-email.me> <uagcgc$ppbn$1@dont-email.me>
<87fs50ulog.fsf@bsb.me.uk> <uagpni$rt71$1@dont-email.me>
<87r0ohrvg0.fsf@bsb.me.uk> <uamlh1$1tr9i$1@dont-email.me>
<875y5tkptn.fsf@bsb.me.uk> <uans1e$26toe$1@dont-email.me>
<87cyzzkfxh.fsf@nosuchdomain.example.com>
<uap5e6$2gd8e$1@dont-email.me>
<87350vke4n.fsf@nosuchdomain.example.com>
<uap73l$2gktp$1@dont-email.me>
<87y1initxx.fsf@nosuchdomain.example.com>
<uapf90$2ht0t$1@dont-email.me>
<87leenirja.fsf@nosuchdomain.example.com>
<uaqdst$2q82c$1@dont-email.me> <8M4AM.510037$TPw2.337804@fx17.iad>
<uaqqou$2sa5t$1@dont-email.me> <87wmy6j37n.fsf@bsb.me.uk>
<86a5v1brhz.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="945523f5e3d1954d075c7466baf93133";
logging-data="3627080"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JYkp6gTdQNHyV4H7wn/mcSifnswstOGY="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:lQ3rfRFeJuDwYnmMB8INlkcWmAY=
sha1:/n1zh+6HhEMAw5r0Gq7EKxWLpNE=
X-BSB-Auth: 1.e5d4368add6d59acc68a.20230808155659BST.87v8dph9ac.fsf@bsb.me.uk
 by: Ben Bacarisse - Tue, 8 Aug 2023 14:56 UTC

Tim Rentsch <tr.17687@z991.linuxsc.com> writes:

> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>
>> Bart <bc@freeuk.com> writes:
>>
>>> The problem with the hex-binary form of C is that the representation
>>> of the significant figures varies according to exponent.
>>
>> No necessarily. An implementation can choose to be consistent. In
>> fact, it would take some effort not to be consistent in this regard.
>> Different implementation may choose different representations of the
>> same number, but for a single implementation I would expect the
>> digits to be the same regardless of the exponent.
>
> I understand what you're saying here, and agree with it.
>
> However, there is a subtle point that deserves mentioning. If a
> 'double' value is printed using %a, and the same value is
> converted to a 'long double' and printed using %La, in most cases
> the digits (and exponents) of the outputs will be different.

That does indeed happen in the libc printf I'm using. I am almost
tempted to look at the code to see why that is done. Maybe there is an
obvious reason for it, but I can't think of one off the top of my head.

> This behavior can be confusing when it is first encountered (at
> least, it was confusing for me, until I thought about what's
> going on).

--
Ben.

Re: you think rust may outthrone c?

<uatlrr$3epln$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 16:09:47 +0100
Organization: A noiseless patient Spider
Lines: 115
Message-ID: <uatlrr$3epln$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<878rbaqch6.fsf@nosuchdomain.example.com> <u9dm6t$370v3$1@dont-email.me>
<u9dv2c$38ir2$1@dont-email.me> <u9e7bp$3a1ug$1@dont-email.me>
<u9h055$3s62g$7@dont-email.me> <87351foebi.fsf@bsb.me.uk>
<86tttts1g2.fsf@linuxsc.com> <87351dm210.fsf@nosuchdomain.example.com>
<789db599-e078-485f-bf16-32865c1eb970n@googlegroups.com>
<u9rcgd$1h7l5$1@dont-email.me> <WRawM.202896$TPw2.151582@fx17.iad>
<u9rnnv$1iftl$1@dont-email.me> <WNdwM.224816$GMN3.36273@fx16.iad>
<u9s1v2$1jhg7$1@dont-email.me> <u9tko8$1s9cs$1@dont-email.me>
<u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me>
<u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me>
<uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me>
<uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me>
<uajaqg$1bc41$4@dont-email.me> <uajfq3$1cesi$1@dont-email.me>
<uat7t4$3cco6$1@dont-email.me> <uat9ca$3cjmt$1@dont-email.me>
<uatjcp$3ec7b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Aug 2023 15:09:47 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="115b4274f90776d5149306232e7f09b9";
logging-data="3630775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+jL5lK+L4sSFF9kE9ibTc+TZbqSGlxYKQ="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:d6DzdAYo3ORMyX4PxrSIEE1hiu0=
In-Reply-To: <uatjcp$3ec7b$1@dont-email.me>
 by: Bart - Tue, 8 Aug 2023 15:09 UTC

On 08/08/2023 15:27, David Brown wrote:
> On 08/08/2023 13:36, Bart wrote:
>> On 08/08/2023 12:11, David Brown wrote:
>> > On 04/08/2023 20:25, Bart wrote:
>> >> Besides, with pretty much every other language with a command-line
>> >> build process, if you submit a single source file 'fred.lang', it
>> will
>> >> produce a matching executable 'fred.exe` without needing to be
>> told how.
>> >
>> > Pretty much every other language is not C, and does not have the
>> history
>> > of C or the history of C compilers.
>>
>> That is irrelevant. C compilers like Pelles C, lccwin32, DMC, Tiny C
>> (Windows), MSVC plus mine of course manage to do it properly, despite
>> that history.
>>
>
> Equally, you could argue that all these tools do it wrong - because they
> don't do it the way users of certain other compilers expect.
> As I have said repeatedly, I don't disagree that it could be convenient
> to have an executable name generated automatically from the name of the
> first C file on the list. I just disagree with the idea that such
> behaviour is somehow the only correct or rational choice, or that tools
> that do something different from what /you/ personally prefer are
"wrong".
>
> One difference that may be significant is that most of the tools you
> mention are compilers. The program "gcc" is a driver program - a
> front-end - for a range of tools including compilers for different
> languages and third-party tools such as assemblers and linkers.

'lcc' is also a driver, as is the Pelles C equivalent. But their
internal organisation should not be relevant. Input is a C file, output
is an EXE file, but should that EXE file be called 'silly.ext' (no typo)
in every case unless overridden?

That is obviously silly.

> But if you don't like make, try one of the dozens of alternatives. Or
> write a batch file. Or make your own build program - it's not hard, at
> least for a simple arrangement.

You're misunderstanding something - I don't need nor want 'make'. It's
is just an obstacle to building any software that others use without
thinking.

> Don't forget that compilers are also usually intended for developers.

But you must agree that the needs of an end-user are different? And
simpler. No real need to do tons of testing or analysis: that has
already been done.

So a streamlined build process and a streamlined compiler will work
better with fewer failure points.

>
> Pretty much all software provided as source code will be build using
> build tools. The user will type "install.sh", or "setup.py", or
> "cmake", or "./configure && make && make install", or whatever the
> instructions are for the software. What they will almost /never/ do is
> typing in a series of compiler commands and flags.

I've devised a language with a built-in build system for managing
program source and support files. No external tool is needed.

For more complex requirements beyond that, then yes simple scripting can
be used. But most build processes seem to be about stuff that the
language design should take care of.

> Yes, and how many people use your code? How many have told you that
> they had wanted to use gcc for their programming, but found it so hard
> to write "gcc -o prog prog.c" that they switched to your compiler so
> they could type "bcc prog.c" ?

Doesn't matter.

I have tried to build CPython on Windows. But it doesn't use gcc in that
case, it used MSVC.

The process involved first updating .NET, then downloading VS 2017 (a
90-minute install), then GIT, then SVN, then MS Build Tools, and then it
failed on something else, by which time, several hours and 10GB of
downloads later, I gave up.

Over-complex build systems GO WRONG.

The first obstacle in using 'make' with gcc 10.3.0 is, there IS no
make.exe! (There is mingw32-make.exe which you have to rename or copy.)

gcc 13.2 comes with make.exe, so they learnt something! (I wonder at
what point they decided that actually providing 'make.exe' was a good idea?)

The next one is, how does 'make' know what C compiler I want to use? At
one point I had half a dozen.

The next one is that in most projects, it will fail at some point before
it gets to the end.

You remember the SQLite project? That is 100 files, but supplied as a
single amalgamated C file, plus 2-3 support files, to simplify embedding
it into an application.

Notice that word 'simplify' - not many seem to bother! After all, how
hard can be be it to manage 100 different source file, the make file
will do all the work!

Presumable some difficulty was noticed with doing it the long way. But
your attitude would be that it is the fault of the people having that
difficulty - work harder to understand.

Whether anyone uses my programs or not, I don't care. I get enough of a
kick out of doing it right.

Re: you think rust may *DE*throne c?

<uatlvb$3epln$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: you think rust may *DE*throne c?
Date: Tue, 8 Aug 2023 16:11:40 +0100
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <uatlvb$3epln$2@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me>
<u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me>
<uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me>
<uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me>
<uajaqg$1bc41$4@dont-email.me> <uajfq3$1cesi$1@dont-email.me>
<uat7t4$3cco6$1@dont-email.me> <uat9ca$3cjmt$1@dont-email.me>
<1ZrAM.325526$U3w1.65892@fx09.iad> <uatjjb$3ec5e$1@dont-email.me>
<JnsAM.481171$SuUf.8783@fx14.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Aug 2023 15:11:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="115b4274f90776d5149306232e7f09b9";
logging-data="3630775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/THR9IZo3PrQ9kB0NOXusl7ICvGFJOFaM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:19MCCxBG7+kz9QvO91M/NmjkNAU=
In-Reply-To: <JnsAM.481171$SuUf.8783@fx14.iad>
 by: Bart - Tue, 8 Aug 2023 15:11 UTC

On 08/08/2023 15:34, Scott Lurndal wrote:
> Bart <bc@freeuk.com> writes:
>> On 08/08/2023 15:05, Scott Lurndal wrote:
>>> Bart <bc@freeuk.com> writes:
>>>> On 08/08/2023 12:11, David Brown wrote:
>>>
>>>> It is one stupid decision in one compiler that nobody has bothered to
>>>> fix. At least give it an option to override, but in a form where you
>>>> don't need to provide a file name. Example:
>>>>
>>>> gcc -new prog.c
>>>
>>> This would violate the POSIX option guidelines.
>>>
>>> gcc -o new prog.c
>>>
>>> is far superior in every way.
>>
>> That doesn't do the same thing. I want the output to be prog.exe, but I
>> don't want to have to write 'prog' twice.
>
> That's your problem, not ours.
>
> Besides, filename suffixes for executables is silly.

It would certainly be a problem for Linux, since it would mean typing it
every time:

gcc.exe hello.c -hello

So, OF COURSE you will claim that they are silly anyway!

Re: you think rust may outthrone c?

<uatmcb$3eti9$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 17:18:34 +0200
Organization: A noiseless patient Spider
Lines: 117
Message-ID: <uatmcb$3eti9$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9s1v2$1jhg7$1@dont-email.me> <u9tko8$1s9cs$1@dont-email.me>
<u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me>
<u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me>
<uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me>
<uabobj$3oias$1@dont-email.me>
<d124c512-5586-444e-9252-72e601502eaen@googlegroups.com>
<uaddgc$1lf7$1@dont-email.me>
<d7fcd0d6-c5a5-4229-87d5-98f3129c9572n@googlegroups.com>
<87wmydv39y.fsf@bsb.me.uk>
<c707dddd-c94e-47bf-9ae6-a8537d245ac1n@googlegroups.com>
<uaeivj$9urb$1@dont-email.me>
<27a833dc-67b7-4195-a3f5-8d8c60ad3d2fn@googlegroups.com>
<uafsqe$mtv7$1@dont-email.me> <X=vUTZgAAVQwBn6et@bongo-ra.co>
<uaj4gk$1alq7$1@dont-email.me>
<cbe7d004-e90b-41d7-9a34-c711ef9c3949n@googlegroups.com>
<uaj7iv$1b5h7$1@dont-email.me>
<2caab55a-f70e-457f-a4d2-ee912c27b681n@googlegroups.com>
<ualceb$1nnq7$1@dont-email.me>
<1aceef78-a719-424e-9234-63bc7531105cn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Aug 2023 15:18:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="512f07d8c41584f35ecc4f03b0b34350";
logging-data="3634761"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5ixgCh3njs51OslFPXC5RcNQNRD15rHg="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
Cancel-Lock: sha1:Uwq75t6wNs6PqPhhIKZzZPHZVww=
Content-Language: en-GB
In-Reply-To: <1aceef78-a719-424e-9234-63bc7531105cn@googlegroups.com>
 by: David Brown - Tue, 8 Aug 2023 15:18 UTC

On 05/08/2023 14:08, Malcolm McLean wrote:
> On Saturday, 5 August 2023 at 12:40:10 UTC+1, David Brown wrote:
>> On 04/08/2023 18:17, Malcolm McLean wrote:
>>> On Friday, 4 August 2023 at 17:05:05 UTC+1, David Brown wrote:
>>>> On 04/08/2023 17:20, Malcolm McLean wrote:
>>>>> On Friday, 4 August 2023 at 16:12:39 UTC+1, David Brown wrote:
>>>>>> On 04/08/2023 16:20, Spiros Bousbouras wrote:
>>>>>>> On Thu, 3 Aug 2023 11:42:36 +0200
>>>>>>> David Brown <david...@hesbynett.no> wrote:
>>>>>>>> When I
>>>>>>>> am looking for software, if I find a possible option and see it is
>>>>>>>> written in ANSI C90, I assume it is some ancient and outdated tool. It
>>>>>>>> /might/ still be useful, but I start with a big negative bias.
>>>>>>>
>>>>>>> That's a strange attitude. If it is written in "old" C then likely it
>>>>>>> was written a long time ago but it certainly doesn't follow that it is
>>>>>>> outdated.
>>>>>> True, of course. For some things, old software is just as good as new
>>>>>> software - if the task hasn't changed, the software does not need to
>>>>>> change. But for other kinds of software you want to be sure that it is
>>>>>> relatively modern, or at least well maintained. That might be for
>>>>>> supporting newer formats (in the case of a "resource compiler"), or
>>>>>> perhaps it is software for which security is a concern. The software
>>>>>> might also be written for older and weaker compilers - using "tricks"
>>>>>> that were popular before, but are undefined behaviour in C and can fail
>>>>>> with modern compilers. Being in an ancient C dialect does not guarantee
>>>>>> that it is outdated, but it is a pointer in that direction.
>>>>>>
>>>>>> I would also have no interest in a "resource compiler" that generated C
>>>>>> files that did not use <stdint.h> or <stdbool.h> types when appropriate,
>>>>>> but perpetuated the inconvenience of home-made types.
>>>>>>
>>>>> It doesn't output homemade types like "u8" for a char. But it doesn't use
>>>>> <stdint.h> or <stdbool.h> types either. It outputs the basic C types.
>>>> That would be useless. Few people doing embedded work have any interest
>>>> in something that turns resources (such as files to be embedded) into
>>>> arrays of "short" or "unsigned long". Use "int16_t", "uint32_t", or
>>>> whatever matches the resource type.
>>>>
>>>> This can be done in a dozen lines of Python scripting, and I get exactly
>>>> what I need. I do so regularly for embedded bitmaps, or static files
>>>> for an embedded webserver, and that kind of thing.
>>>>
>>> Yes, pretty much every C programmer has written a scratch program
>>> to read in a binary and output C source. I can't find a tool that allows you
>>> to get away from that, except the Baby X resource compiler. Whether that
>>> is bad thing, meaning there's no demand for such a tool, or a good thing,
>>> meaning it has a niche no-one else has thought of, I don't know.
>> I think most cases need nothing more than converting a single file into
>> a const array of uint8_t (or unsigned char if you prefer). Anything
>> other than that, and I would not expect a pre-written tool to support
>> what you want because you are likely to have particular needs at the
>> time. When I have embedded fonts, image sequences, directory
>> structures, etc., they have always been targeting a particular format
>> for the application - general purpose or third-party conversion tools
>> would be of no use at all.
>>
> This is the problem of course. The Baby X API expects data in a certain format.
> So all the API functions which operate on images take a 32 bit RGBA buffer
> as an "unsigned char *", and the dimensions as two ints. But another API might
> use an opaque "IMAGE" structure. Or another system might have 16 bit r5g5b5a1
> images.

It would make a lot of sense to have a program that took data in common
standardised uncompressed forms (like .wav, .bmp) and generated data in
whatever format suits Baby X.

> Of course I could put in a flexible format specifier. But it would rapidly turn into
> a scripting laugage in its onw right. In which case you might as well use Python.

Indeed. You program already looks like that.

>>
>> Some graphics libraries come with "resource compilers" generating
>> results in the format needed for the library. So if your "Baby X" has
>> its own graphics format (or audio format), then a "resource compiler"
>> turning standard formats into this internal format would make sense.
>> But I fail to see how useful it would be for those not using "Baby X".
>>
> Reality is that the resouce compiler is more popular than Baby X. But
> exactly how people are using it, I don't know
>>
>> I also can't imagine why anyone would want to put strings in an xml file
>> instead of just putting them in the source code directly - it gives you
>> no advantages. (If it organised strings and formats for
>> internationalisation and translation, that would be a different matter.)
>>
> There is an "international" tag so you can do this
> <international name = "hello">
> <string language = "english">Hello</string>
> <string language = "french">Bonjour</string>
> <utf8 language = "chinese"> [utf8 here] </utf8>
> </international>
>
> Then it creates a C-callable function which is passed the languafe and returns
> thr right string.
>

That's a horrendous interface for everyone involved. It is hideous for
the programmer writing the XML (like all XML is). It is terrible for
the translators, who want to work with strings in the common language
(usually English) and their own language. It is horrible to use in the
application code. It would be a mess to maintain in source code
repositories.

Seriously, I'm not sure how you could make it worse. Perhaps you could
insist that the translation strings are all held in a MS Excel format
spreadsheet?

Did you even think about how people were supposed to use it, or how
international programs are developed?

I appreciate what you are trying to do with the tool, I just don't think
you have considered what might be the best way for people to use it.

Re: you think rust may outthrone c?

<uatnc5$3f2cj$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 16:35:34 +0100
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <uatnc5$3f2cj$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9tko8$1s9cs$1@dont-email.me> <u9trgp$1stmg$1@dont-email.me>
<u9u040$1tbdh$1@dont-email.me> <u9u5cd$1tqc9$1@dont-email.me>
<uaavm0$3ln4f$1@dont-email.me> <uab5ja$3mc91$1@dont-email.me>
<uabeq1$3nigh$1@dont-email.me> <uabobj$3oias$1@dont-email.me>
<d124c512-5586-444e-9252-72e601502eaen@googlegroups.com>
<uaddgc$1lf7$1@dont-email.me>
<d7fcd0d6-c5a5-4229-87d5-98f3129c9572n@googlegroups.com>
<87wmydv39y.fsf@bsb.me.uk>
<c707dddd-c94e-47bf-9ae6-a8537d245ac1n@googlegroups.com>
<uaeivj$9urb$1@dont-email.me>
<27a833dc-67b7-4195-a3f5-8d8c60ad3d2fn@googlegroups.com>
<uafsqe$mtv7$1@dont-email.me> <X=vUTZgAAVQwBn6et@bongo-ra.co>
<uaj4gk$1alq7$1@dont-email.me>
<cbe7d004-e90b-41d7-9a34-c711ef9c3949n@googlegroups.com>
<uaj7iv$1b5h7$1@dont-email.me>
<2caab55a-f70e-457f-a4d2-ee912c27b681n@googlegroups.com>
<ualceb$1nnq7$1@dont-email.me>
<1aceef78-a719-424e-9234-63bc7531105cn@googlegroups.com>
<uatmcb$3eti9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Aug 2023 15:35:33 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="115b4274f90776d5149306232e7f09b9";
logging-data="3639699"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rDFkkBVRt6lpOFTMJ2715DhNaqvT+jlA="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:/MPEVQfA6tDlgS4VEtsT2DJNxpg=
In-Reply-To: <uatmcb$3eti9$1@dont-email.me>
 by: Bart - Tue, 8 Aug 2023 15:35 UTC

On 08/08/2023 16:18, David Brown wrote:
> On 05/08/2023 14:08, Malcolm McLean wrote:
>> Then it creates a C-callable function which is passed the languafe and
>> returns
>> thr right string.
>
> That's a horrendous interface for everyone involved. It is hideous for
> the programmer writing the XML (like all XML is). It is terrible for
> the translators, who want to work with strings in the common language
> (usually English) and their own language. It is horrible to use in the
> application code. It would be a mess to maintain in source code
> repositories.
>
> Seriously, I'm not sure how you could make it worse. Perhaps you could
> insist that the translation strings are all held in a MS Excel format
> spreadsheet?
>
> Did you even think about how people were supposed to use it, or how
> international programs are developed?
>
>
> I appreciate what you are trying to do with the tool, I just don't think
> you have considered what might be the best way for people to use it.

I didn't understand all the purposes of the tool (I'm not going to use
Baby X).

It just looked like something that takes a media file and turns it into
a block of C code suitable for embedding.

When I tested it, it turned out I needed an XML file (as you say, truly
horrible to work with). I had to use the example provided and tweak it.

A simpler interface is just to accept the name of one media file, and
turn that into a .c file (with the same name!). Any resizing options etc
can be provided on the command line.

Or that can be done via an alternate front-end module built into its own
executable, keeping the Baby X functionality separate.

Re: you think rust may outthrone c?

<865y5pbl7q.fsf@linuxsc.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 08 Aug 2023 08:35:53 -0700
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <865y5pbl7q.fsf@linuxsc.com>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com> <uagcgc$ppbn$1@dont-email.me> <87fs50ulog.fsf@bsb.me.uk> <uagpni$rt71$1@dont-email.me> <87r0ohrvg0.fsf@bsb.me.uk> <uamlh1$1tr9i$1@dont-email.me> <875y5tkptn.fsf@bsb.me.uk> <uans1e$26toe$1@dont-email.me> <87cyzzkfxh.fsf@nosuchdomain.example.com> <uap5e6$2gd8e$1@dont-email.me> <87350vke4n.fsf@nosuchdomain.example.com> <uap73l$2gktp$1@dont-email.me> <87y1initxx.fsf@nosuchdomain.example.com> <uapf90$2ht0t$1@dont-email.me> <87leenirja.fsf@nosuchdomain.example.com> <uaqdst$2q82c$1@dont-email.me> <8M4AM.510037$TPw2.337804@fx17.iad> <uaqqou$2sa5t$1@dont-email.me> <87wmy6j37n.fsf@bsb.me.uk> <86a5v1brhz.fsf@linuxsc.com> <87v8dph9ac.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="996336b78d58b8cbe9ae682ecb3e6882";
logging-data="3640016"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19u1xjM2zhmOlgpDq0tydl8oQRqvdOF2dw="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:feHBby5xvtYRGBmxAC6VBSpH624=
sha1:wI40n4jZQJDsqTo4xTRtpgXtnJI=
 by: Tim Rentsch - Tue, 8 Aug 2023 15:35 UTC

Ben Bacarisse <ben.usenet@bsb.me.uk> writes:

> Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>
>> Ben Bacarisse <ben.usenet@bsb.me.uk> writes:
>>
>>> Bart <bc@freeuk.com> writes:
>>>
>>>> The problem with the hex-binary form of C is that the representation
>>>> of the significant figures varies according to exponent.
>>>
>>> No necessarily. An implementation can choose to be consistent. In
>>> fact, it would take some effort not to be consistent in this regard.
>>> Different implementation may choose different representations of the
>>> same number, but for a single implementation I would expect the
>>> digits to be the same regardless of the exponent.
>>
>> I understand what you're saying here, and agree with it.
>>
>> However, there is a subtle point that deserves mentioning. If a
>> 'double' value is printed using %a, and the same value is
>> converted to a 'long double' and printed using %La, in most cases
>> the digits (and exponents) of the outputs will be different.
>
> That does indeed happen in the libc printf I'm using. I am almost
> tempted to look at the code to see why that is done. Maybe there is an
> obvious reason for it, but I can't think of one off the top of my head.

It happens because of the formats of double and long double. For
most non-zero values (and not inf or NaN), a double has 52 bits
of significand plus an implied '1' at the top, giving 53 bits
overall. Converting to long double gives 64 bits of significand
only now the high-order '1' is explicit (ie, 64 bits overall).
So double has one bit for the leading digit (always 1) plus 13
groups of four bits, whereas long double has four bits for the
leading digit (always between 8 and F) plus 15 groups of four
bits.

If you see a %a output whose leading digit is between 8 and F,
probably what was done is the double value was converted to a
long double, so the long double value could just be funneled
through the code for the long double case.

Re: you think rust may outthrone c?

<220063cb-d1cb-4c3e-a127-c8f08acf7b9bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:b8c3:0:b0:767:e807:e4fe with SMTP id i186-20020a37b8c3000000b00767e807e4femr140qkf.4.1691509009048;
Tue, 08 Aug 2023 08:36:49 -0700 (PDT)
X-Received: by 2002:a4a:520c:0:b0:56c:58a0:302f with SMTP id
d12-20020a4a520c000000b0056c58a0302fmr74664oob.0.1691509008685; Tue, 08 Aug
2023 08:36:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.1d4.us!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 8 Aug 2023 08:36:48 -0700 (PDT)
In-Reply-To: <871qgdiool.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:3061:372d:59ca:e7b2;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:3061:372d:59ca:e7b2
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<87351dm210.fsf@nosuchdomain.example.com> <789db599-e078-485f-bf16-32865c1eb970n@googlegroups.com>
<u9rcgd$1h7l5$1@dont-email.me> <WRawM.202896$TPw2.151582@fx17.iad>
<u9rnnv$1iftl$1@dont-email.me> <WNdwM.224816$GMN3.36273@fx16.iad>
<u9s1v2$1jhg7$1@dont-email.me> <u9tko8$1s9cs$1@dont-email.me>
<u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me>
<u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me>
<uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me>
<uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me>
<uajaqg$1bc41$4@dont-email.me> <uajfq3$1cesi$1@dont-email.me>
<uat7t4$3cco6$1@dont-email.me> <44ca14e8-6fa7-44ff-811d-b598171a9302n@googlegroups.com>
<871qgdiool.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <220063cb-d1cb-4c3e-a127-c8f08acf7b9bn@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Tue, 08 Aug 2023 15:36:49 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2965
 by: Malcolm McLean - Tue, 8 Aug 2023 15:36 UTC

On Tuesday, 8 August 2023 at 15:39:21 UTC+1, Ben Bacarisse wrote:
> Malcolm McLean <malcolm.ar...@gmail.com> writes:
>
> > I used CMake for the Baby X resource compiler. It worked on Windows
> > and Mac. But it broke on Linux when Ben tested it.
> Maybe you were able to conclude that, but I only reported compile
> errors. That may have been the fault of CMake, but you never said what
> the problem was, only to say that "linux" included <stdint.h>.
>
The MP3 decoder included a few standard headers, then typedefed
types like uint8_t, to match <stdint.h>. It works fine on Windows and Mac
because the standard headers don't define those types. But on Linux,
they obviously include <stdint.h>, whch I believe they are allowed to
do, and so the code broke.
> > Because it wasn't
> > actually passing the "-lm" option to link the math library.
> That can't be anything to do with the compile errors that I reported.
>
So the link error came out in the wash. Many thanks anyway for drawing my
attention to the problem. It's genuinely appreciated.

Re: you think rust may outthrone c?

<uatnjo$3f3pb$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 17:39:35 +0200
Organization: A noiseless patient Spider
Lines: 103
Message-ID: <uatnjo$3f3pb$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<uaeul9$b81t$1@dont-email.me> <87r0okvrht.fsf@bsb.me.uk>
<uag05n$nmu5$1@dont-email.me> <uagcgc$ppbn$1@dont-email.me>
<87fs50ulog.fsf@bsb.me.uk> <uagpni$rt71$1@dont-email.me>
<87r0ohrvg0.fsf@bsb.me.uk> <uamlh1$1tr9i$1@dont-email.me>
<875y5tkptn.fsf@bsb.me.uk> <uans1e$26toe$1@dont-email.me>
<87cyzzkfxh.fsf@nosuchdomain.example.com> <uap5e6$2gd8e$1@dont-email.me>
<87350vke4n.fsf@nosuchdomain.example.com> <uap73l$2gktp$1@dont-email.me>
<87y1initxx.fsf@nosuchdomain.example.com> <uapf90$2ht0t$1@dont-email.me>
<87leenirja.fsf@nosuchdomain.example.com> <uaqdst$2q82c$1@dont-email.me>
<8M4AM.510037$TPw2.337804@fx17.iad> <uaqqou$2sa5t$1@dont-email.me>
<87wmy6j37n.fsf@bsb.me.uk>
<ad304448-30f9-4630-83c2-7d19c026fa31n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Aug 2023 15:39:36 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="512f07d8c41584f35ecc4f03b0b34350";
logging-data="3641131"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PZhgq1NHTtMsXu/EIoX7IrW7L9YOelkQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
Cancel-Lock: sha1:aq4uhLGUO4LuruuLQxt0pU0qgxY=
Content-Language: en-GB
In-Reply-To: <ad304448-30f9-4630-83c2-7d19c026fa31n@googlegroups.com>
 by: David Brown - Tue, 8 Aug 2023 15:39 UTC

On 07/08/2023 17:40, Malcolm McLean wrote:
> On Monday, 7 August 2023 at 16:13:16 UTC+1, Ben Bacarisse wrote:
>> Bart <b...@freeuk.com> writes:
>>
>>> On 07/08/2023 12:41, Richard Damon wrote:
>>>> On 8/7/23 5:35 AM, Bart wrote:
>>
>>>>> Do you not see the problem of a hex format, which is already confusing
>>>>> because it is hex, representing the same value in different ways?
>>>>>
>>>>> In decimal, pi is always going to involve the digits 314159... with
>>>>> the decimal position depending on the exponent.
>>>>>
>>>>> With %A format (I've made 0x and p lower case for clarity; another
>>>>> issue), I can get either:
>>>>>
>>>>> 0xC.90FDAA22168Cp-2
>>>>>
>>>>> or:
>>>>>
>>>>> 0x1.921FB5p+1
>>>>>
>>>>> That's perfectly alright!
>>>>
>>>> Yes, it just like you can represent 0.5 as 5/10, 1/2, or even 2/4ths.
>>>
>>> We're not talking about fractions or rationals.
>> That's exactly what we are talking about. What do you think
>> 0x1.921FB5p+1 is if not a rational number?
>>
>> Floating point numbers are rationals, but since they are usually
>> represented internally in binary, they are hard to represent exactly in
>> base 10. The %a format is there to solve that problem. Humans don't
>> read the output except in rare cases. I used to when I was working with
>> interval arithmetic, but that was for debugging.
>>> The problem with the hex-binary form of C is that the representation of the
>>> significant figures varies according to exponent.
>> No necessarily. An implementation can choose to be consistent. In
>> fact, it would take some effort not to be consistent in this regard.
>> Different implementation may choose different representations of the
>> same number, but for a single implementation I would expect the digits
>> to be the same regardless of the exponent.
>>>> Your problem with the Hex representation is that you don't understand
>>>> what its purpose is. IT isn't to allow you to compare two numbers, but
>>>> to EXACTLY (and faiy efficiently) represent a floating point number.
>>>
>>> Why is not possible to do that if the exponent represents hex digits
>>> rather than binary ones?
>> That's a confused remark. Representing the exponent in hex digits makes
>> no difference. Different implementations could still choose different
>> ways to write the same number. Your suggestion is, I think, to write
>> the convert the binary exponent into a power of 16. That could be done
>> even if the resulting exponent is written in decimal, but I think you
>> advocate for both: writing the binary exponent as a poser of 16 and to
>> represent that power in hex digits.
>>
>> But I agree with the underlying point of your remark -- I don't think
>> there is any reason why your alternative representation could not be
>> exact and fairly efficient on most hardware.
>>> For example, I want to call the printf() function from the C runtime via an
>>> FFI; what format code do I use: is it %d, %ld or %lld?
>>>
>>> But those 'l' modifiers are in terms of C types, which are meaningless in
>>> my language;
>> That is not C's fault; they are intended for C's types, not yours.
>>> (Try and print int64_t, it will be either %ld or %lld!)
>> You should print an int64_t using the PRId64 macro or by converting it
>> to long long and using %lld. After so many years here how can you still
>> be having trouble knowing how to print a value from your language?
>>
> The advantage of C is that it is very flexible.
> What you can do is this.
>
> /*
> questionformat - a printf-style format string with %? escapes for unknown
> formats.
> ... - the unknown types, in pairs giving type and size.
> types: QFMT_REAL, QFMT_SIGNEDINTEGER, QFMT_UNSIGNEDINTEGER.
> sizes - sizeof() value of type
>
> e.g
> char *fmt = formatstring("Hello %s your salary is %?, ycur payrollid %?\n"
> QFMT_REAL, sizeof(salary_t),
> QFMT_UNSIGNEDINTEGER, sizeof(payrollid_t));
> printf(fmt, employee.name, employee.salary, employee.payrollid);
> */
> char *getformatstring(const char *questionformat, ....)
>
>

Surely a smarter way (if you want this kind of thing) would be to
combine _Generic and variadic macros, so that you can write:

Print("Hello ", employee.name, " your salary is ", employee.salary);

Or perhaps you could just have your variadic macro convert all
parameters to a common 64-bit union type (combining uint64_t, double and
const void*) before passing it on to your alternative printf-style
function. There are many possibilities that would not be as clumsy as this.

They might involve some ugly macros in the implementation, but you only
need to make these once, and it's the appearance in user code that matters.

Re: you think rust may outthrone c?

<uatnod$3f2cj$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 16:42:06 +0100
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <uatnod$3f2cj$2@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9dm6t$370v3$1@dont-email.me> <u9dv2c$38ir2$1@dont-email.me>
<u9e7bp$3a1ug$1@dont-email.me> <u9h055$3s62g$7@dont-email.me>
<87351foebi.fsf@bsb.me.uk> <86tttts1g2.fsf@linuxsc.com>
<87351dm210.fsf@nosuchdomain.example.com>
<789db599-e078-485f-bf16-32865c1eb970n@googlegroups.com>
<u9rcgd$1h7l5$1@dont-email.me> <WRawM.202896$TPw2.151582@fx17.iad>
<u9rnnv$1iftl$1@dont-email.me> <WNdwM.224816$GMN3.36273@fx16.iad>
<u9s1v2$1jhg7$1@dont-email.me> <u9tko8$1s9cs$1@dont-email.me>
<u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me>
<u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me>
<uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me>
<uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me>
<uajaqg$1bc41$4@dont-email.me> <uajfq3$1cesi$1@dont-email.me>
<uat7t4$3cco6$1@dont-email.me> <uat9ca$3cjmt$1@dont-email.me>
<uatjcp$3ec7b$1@dont-email.me> <uatlrr$3epln$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 8 Aug 2023 15:42:05 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="115b4274f90776d5149306232e7f09b9";
logging-data="3639699"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pJDsLNxyjy8Or2Hul+QKMpJlIYAnrn6U="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:yrFAqbqSsOu5yKdCFJbstqvZ+ZM=
In-Reply-To: <uatlrr$3epln$1@dont-email.me>
 by: Bart - Tue, 8 Aug 2023 15:42 UTC

On 08/08/2023 16:09, Bart wrote:
> On 08/08/2023 15:27, David Brown wrote:

> I've devised a language with a built-in build system for managing
> program source and support files. No external tool is needed.
>
> For more complex requirements beyond that, then yes simple scripting can
> be used. But most build processes seem to be about stuff that the
> language design should take care of.

I should say that if I was writing an original C program with multiple
modules, and was supplying it with those separate modules, the build
process I'd choose is something that seems to be neglected: @ files.

These are files of options that most C compiles seem to accept. An @
file is basically a list of module names.

They can contain options too, but for portability it should be ones
shared across compilers. Then building a project looks like this:

gcc @project

where 'project' contains all the inputs needed.

This will build all modules, which is what is needed for a one-time
build anyway.

Re: you think rust may *DE*throne c?

<vutAM.103868$X02a.15000@fx46.iad>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx46.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: you think rust may *DE*throne c?
Newsgroups: comp.lang.c
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com> <u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me> <uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me> <uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me> <uajaqg$1bc41$4@dont-email.me> <uajfq3$1cesi$1@dont-email.me> <uat7t4$3cco6$1@dont-email.me> <uat9ca$3cjmt$1@dont-email.me> <1ZrAM.325526$U3w1.65892@fx09.iad> <uatjjb$3ec5e$1@dont-email.me> <JnsAM.481171$SuUf.8783@fx14.iad> <uatlvb$3epln$2@dont-email.me>
Lines: 49
Message-ID: <vutAM.103868$X02a.15000@fx46.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Tue, 08 Aug 2023 15:49:47 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Tue, 08 Aug 2023 15:49:47 GMT
X-Received-Bytes: 2634
 by: Scott Lurndal - Tue, 8 Aug 2023 15:49 UTC

Bart <bc@freeuk.com> writes:
>On 08/08/2023 15:34, Scott Lurndal wrote:
>> Bart <bc@freeuk.com> writes:
>>> On 08/08/2023 15:05, Scott Lurndal wrote:
>>>> Bart <bc@freeuk.com> writes:
>>>>> On 08/08/2023 12:11, David Brown wrote:
>>>>
>>>>> It is one stupid decision in one compiler that nobody has bothered to
>>>>> fix. At least give it an option to override, but in a form where you
>>>>> don't need to provide a file name. Example:
>>>>>
>>>>> gcc -new prog.c
>>>>
>>>> This would violate the POSIX option guidelines.
>>>>
>>>> gcc -o new prog.c
>>>>
>>>> is far superior in every way.
>>>
>>> That doesn't do the same thing. I want the output to be prog.exe, but I
>>> don't want to have to write 'prog' twice.
>>
>> That's your problem, not ours.
>>
>> Besides, filename suffixes for executables is silly.
>
>It would certainly be a problem for Linux, since it would mean typing it
>every time:
>
> gcc.exe hello.c -hello
>
>So, OF COURSE you will claim that they are silly anyway!

Actually, they (file suffixes) have been a security problem since day one
on Windows.

I've been using C since 1979,

$ cc -o ls ls.c

has been a useful paradigm for a half century; if you don't like it, that's
your problem.

Note that the vast majority of real production C code consists of multiple
source files (hundreds in some cases, often in multiple languages and
sometimes compiling C code generated (e.g. lex, yacc) by other utilities);
it is unlikely that even you would manually type a compilation command line
with hundreds of source files.

Re: you think rust may outthrone c?

<4da4e2e0-7bee-4a6a-a597-3771d049f227n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:18a9:b0:40f:e0dd:8050 with SMTP id v41-20020a05622a18a900b0040fe0dd8050mr1065qtc.5.1691510136503; Tue, 08 Aug 2023 08:55:36 -0700 (PDT)
X-Received: by 2002:a4a:49ce:0:b0:56c:99c3:1ffa with SMTP id z197-20020a4a49ce000000b0056c99c31ffamr137272ooa.0.1691510136293; Tue, 08 Aug 2023 08:55:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.11.MISMATCH!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 8 Aug 2023 08:55:36 -0700 (PDT)
In-Reply-To: <uat7ht$3camf$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=199.203.251.52; posting-account=ow8VOgoAAAAfiGNvoH__Y4ADRwQF1hZW
NNTP-Posting-Host: 199.203.251.52
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com> <uaeul9$b81t$1@dont-email.me> <87r0okvrht.fsf@bsb.me.uk> <uag05n$nmu5$1@dont-email.me> <uagcgc$ppbn$1@dont-email.me> <87fs50ulog.fsf@bsb.me.uk> <uagpni$rt71$1@dont-email.me> <87r0ohrvg0.fsf@bsb.me.uk> <uamlh1$1tr9i$1@dont-email.me> <875y5tkptn.fsf@bsb.me.uk> <uans1e$26toe$1@dont-email.me> <87cyzzkfxh.fsf@nosuchdomain.example.com> <uap5e6$2gd8e$1@dont-email.me> <87350vke4n.fsf@nosuchdomain.example.com> <uap73l$2gktp$1@dont-email.me> <87y1initxx.fsf@nosuchdomain.example.com> <uapf90$2ht0t$1@dont-email.me> <87leenirja.fsf@nosuchdomain.example.com> <uaqdst$2q82c$1@dont-email.me> <8M4AM.510037$TPw2.337804@fx17.iad> <uaqqou$2sa5t$1@dont-email.me> <87wmy6j37n.fsf@bsb.me.uk> <uara1m$2uq73$1@dont-email.me> <20230807125815.939@kylheku.com> <uas273$32k64$1@dont-email.me> <2FhAM.351580$xMqa.250758@fx12.iad> <uat7ht$3camf$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4da4e2e0-7bee-4a6a-a597-3771d049f227n@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: already5...@yahoo.com (Michael S)
Injection-Date: Tue, 08 Aug 2023 15:55:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 110
 by: Michael S - Tue, 8 Aug 2023 15:55 UTC

On Tuesday, August 8, 2023 at 2:05:48 PM UTC+3, Bart wrote:
> On 08/08/2023 03:21, Richard Damon wrote:
> > On 8/7/23 8:28 PM, Bart wrote:
> >> My view is that C's print-format system is not fit for purpose. The
> >> formatting is OK, it is needing to specify types that is the problem.
> >
> > which is EXACTLY the arguement that got us the C++ stream << operator.
> That feature is so bad it makes using printf preferable! Is it really
> that hard to just be able to write 'print x' ?
> > If you want to do that in C, you can, just define a generic "print"
> > function that defines version for each fundamental type, and call that.
> >
> > You don't seem to understand that C is based on the assumption that the
> > programmer actually knows what he is doing, not hiding behind a mass of
> > abstractions.
> You don't get my point. The programmer might not know for sure the type
> of a complex expression, and certainly does not want to keep updating
> dozens of printf formats across the codebase as global declarations change.
>
> Right now I don't know how to print a clock() result for example, and to
> keep inventing special formats like %zu is crass.
>
> *I* can just write:
>
> println a, b, c
>
> So can a dozen other languages (even from the 1960s!). I can change the
> types of a, b, c, and it still works. I can print c, b, a and it still
> works.
>

What does it do?
I'd guess, it prints a, b and c, each in default format corresponding to respective
types, each on the separate line?
In theory it's nice to have something like that in the language. But in practice I very
rarely need thing printed like that, one per line and in default format. One number
instead of three would be a little more common, by just a little.

> I can even just do 'print clock()'!

Now you hit a real point.
But on the second thought I realize that I don't know what default format I'd
want in this case.

>
> In C YOU CAN'T DO THAT. You need to dig up the types of each expression
> and apply the right format. In this VERY simple case, it MIGHT be:
>
> printf("%lld " PRId64 " %s", a, b, c);
>
> But now you have an extra maintenance headache.
>
> (In all cases, printing gets untidy when you need to do necessary
> formatting, but only C incorporates types into the formatting.)
> >> It gets tricky when using sprintf say from another language, which is
> >> then transpiled to actual C.
> >
> > And why doesn't that other language implement a better print
> > functionality itself?
> It does, but ultimately it needs to do I/O, and I've been using C's
> printf for that since the mid-90s, because it was simpler than using
> WinAPI. I've since forgotten how do it with WinAPI.
>
> For that purpose, I only need to use %c and %s. (For floats, I use
> sprintf with %e %f %g, do any formatting, then use printf with %s if I
> need output.)
>
> So most of the time it is not an issue (other than, if using C
> transpilation, there is still the problem of C's char* type not existing
> in my language, nor any other).
>
> Sometimes however, during bootstrapping or developing a new compiler, it
> might not yet support the 1000 lines of code needed to implement my
> Print routines, or there are codegen bugs, or I'm trying to keep test
> code absolutely minimal, then I will use printf.
>
> Or I might use it from my dynamic scripting language. I just use %ll
> since everything is 64 bits. Or I can test that other matter:
>
> printf("%A", pi) # interpreted code
>
> shows:
>
> 0X1.921FB5P+1
> > You are using C as a "portable assembler", but you don't actually seem
> > to want to understand the assembly language and are complaining because
> > the machine doesn't implement the fancy instructions you want to use.
> Exactly. C *IS* used extensively as a portable assembler, as an
> intermediate or target language, and there you don't want its UBs,
> foibles and quirky type system to get in the way, because source
> language and final targets are better defined than in C.
>
> This is an important use-case which should not be forgotten.

Re: you think rust may *DE*throne c?

<048225d2-13eb-4216-b746-a8883b5a5f2dn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:250:b0:76c:da44:d05c with SMTP id q16-20020a05620a025000b0076cda44d05cmr176qkn.10.1691510530313;
Tue, 08 Aug 2023 09:02:10 -0700 (PDT)
X-Received: by 2002:a05:6870:d88b:b0:1bf:ffc3:252f with SMTP id
dv11-20020a056870d88b00b001bfffc3252fmr6958145oab.6.1691510529852; Tue, 08
Aug 2023 09:02:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 8 Aug 2023 09:02:09 -0700 (PDT)
In-Reply-To: <1ZrAM.325526$U3w1.65892@fx09.iad>
Injection-Info: google-groups.googlegroups.com; posting-host=199.203.251.52; posting-account=ow8VOgoAAAAfiGNvoH__Y4ADRwQF1hZW
NNTP-Posting-Host: 199.203.251.52
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9s1v2$1jhg7$1@dont-email.me> <u9tko8$1s9cs$1@dont-email.me>
<u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me>
<u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me>
<uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me>
<uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me>
<uajaqg$1bc41$4@dont-email.me> <uajfq3$1cesi$1@dont-email.me>
<uat7t4$3cco6$1@dont-email.me> <uat9ca$3cjmt$1@dont-email.me> <1ZrAM.325526$U3w1.65892@fx09.iad>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <048225d2-13eb-4216-b746-a8883b5a5f2dn@googlegroups.com>
Subject: Re: you think rust may *DE*throne c?
From: already5...@yahoo.com (Michael S)
Injection-Date: Tue, 08 Aug 2023 16:02:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2373
 by: Michael S - Tue, 8 Aug 2023 16:02 UTC

On Tuesday, August 8, 2023 at 5:06:04 PM UTC+3, Scott Lurndal wrote:
> Bart <b...@freeuk.com> writes:
> >On 08/08/2023 12:11, David Brown wrote:
>
> >It is one stupid decision in one compiler that nobody has bothered to
> >fix. At least give it an option to override, but in a form where you
> >don't need to provide a file name. Example:
> >
> > gcc -new prog.c
> This would violate the POSIX option guidelines.
>
> gcc -o new prog.c
>
> is far superior in every way.

Longer.
Less of obvious, at least for persons that didn't read
"POSIX option guidelines" which to the first level of approximation
includes all potential users.
So even if superior then *not* in every way.

Re: you think rust may outthrone c?

<a33ce226-3826-4b0c-97fc-585105018304n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:10a:b0:403:b014:538f with SMTP id u10-20020a05622a010a00b00403b014538fmr594qtw.10.1691510675026;
Tue, 08 Aug 2023 09:04:35 -0700 (PDT)
X-Received: by 2002:a05:6808:1920:b0:3a7:adb0:6056 with SMTP id
bf32-20020a056808192000b003a7adb06056mr141064oib.0.1691510674748; Tue, 08 Aug
2023 09:04:34 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 8 Aug 2023 09:04:34 -0700 (PDT)
In-Reply-To: <uatmcb$3eti9$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:3061:372d:59ca:e7b2;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:3061:372d:59ca:e7b2
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9s1v2$1jhg7$1@dont-email.me> <u9tko8$1s9cs$1@dont-email.me>
<u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me>
<u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me>
<uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me>
<uabobj$3oias$1@dont-email.me> <d124c512-5586-444e-9252-72e601502eaen@googlegroups.com>
<uaddgc$1lf7$1@dont-email.me> <d7fcd0d6-c5a5-4229-87d5-98f3129c9572n@googlegroups.com>
<87wmydv39y.fsf@bsb.me.uk> <c707dddd-c94e-47bf-9ae6-a8537d245ac1n@googlegroups.com>
<uaeivj$9urb$1@dont-email.me> <27a833dc-67b7-4195-a3f5-8d8c60ad3d2fn@googlegroups.com>
<uafsqe$mtv7$1@dont-email.me> <X=vUTZgAAVQwBn6et@bongo-ra.co>
<uaj4gk$1alq7$1@dont-email.me> <cbe7d004-e90b-41d7-9a34-c711ef9c3949n@googlegroups.com>
<uaj7iv$1b5h7$1@dont-email.me> <2caab55a-f70e-457f-a4d2-ee912c27b681n@googlegroups.com>
<ualceb$1nnq7$1@dont-email.me> <1aceef78-a719-424e-9234-63bc7531105cn@googlegroups.com>
<uatmcb$3eti9$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a33ce226-3826-4b0c-97fc-585105018304n@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Tue, 08 Aug 2023 16:04:35 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Malcolm McLean - Tue, 8 Aug 2023 16:04 UTC

On Tuesday, 8 August 2023 at 16:18:49 UTC+1, David Brown wrote:
> On 05/08/2023 14:08, Malcolm McLean wrote:
>
> > This is the problem of course. The Baby X API expects data in a certain format.
> > So all the API functions which operate on images take a 32 bit RGBA buffer
> > as an "unsigned char *", and the dimensions as two ints. But another API might
> > use an opaque "IMAGE" structure. Or another system might have 16 bit r5g5b5a1
> > images.
>
> It would make a lot of sense to have a program that took data in common
> standardised uncompressed forms (like .wav, .bmp) and generated data in
> whatever format suits Baby X.
>
"Data" means, "that which is given". People programming applications are given
resources in many formats. They might steal a PNG from the web, get a JPEG
commissioned from a paid artist, knock up their own SVG.
Now of course it's possible to convert all these into a common format like PNG
which is powerful enough to hold all thse formats without loss. But you've lost
the link with the original data. So when the artist comes back with a second
version of the JPEG, you've got to run ImageMagick again. And I don't have
ImageMagick installed on the Mac I'm writing this on (there's a program called
sips which does similar things).
A resouce pipeline with lots of stages, each one requiring a separate third party
program, is quite fragile. It works for as long as your Linux machine is all set up
with the dependencies, which will be the case for the duration of the project.
But if you archive it, and dust it off years later, will things still be intact? And
will you know which are the intermediate files, and which are the original data?
>
> > Of course I could put in a flexible format specifier. But it would rapidly turn into
> > a scripting laugage in its onw right. In which case you might as well use Python.
>
> Indeed. You program already looks like that.
>
No it doesn't. There's a very simple xml list of resources, and one or two attributes
to control the output. It's nothing like a script. However to be fair I do suggest diving
into the source if you want to customise it. The users will be C programmers, after
all.
> >
> > There is an "international" tag so you can do this
> > <international name = "hello">
> > <string language = "english">Hello</string>
> > <string language = "french">Bonjour</string>
> > <utf8 language = "chinese"> [utf8 here] </utf8>
> > </international>
> >
> > Then it creates a C-callable function which is passed the languafe and returns
> > thr right string.
> >
>
> That's a horrendous interface for everyone involved. It is hideous for
> the programmer writing the XML (like all XML is). It is terrible for
> the translators, who want to work with strings in the common language
> (usually English) and their own language. It is horrible to use in the
> application code. It would be a mess to maintain in source code
> repositories.
>
> Seriously, I'm not sure how you could make it worse. Perhaps you could
> insist that the translation strings are all held in a MS Excel format
> spreadsheet?
>
> Did you even think about how people were supposed to use it, or how
> international programs are developed?
>
You might be right about that. We considered internationalisation at
work (we make tools for artists), but the customers said they were
happy with English, and it was such a bag of worms that we rejected
the idea. So I've no experience. Part of the reason for discussing it here
is that other people might have such experience.
You can't really support Unicode but not support internationalisation,
however.
>
> I appreciate what you are trying to do with the tool, I just don't think
> you have considered what might be the best way for people to use it.
>
It's a resource compiler for Baby X. There's no good way of getting images and
fonts into Baby X programs, other than using the resource compiler. Just as
there's no good way of getting images and fonts into Windows programs without
using the Windows resource compiler. But because the Baby X resource compiler
produces C source instead of a binary blob, you don't have to use it with Baby X.

But I'm not deliberately targetting non-Baby X users with v1.2, though the <utf16>
tag is maybe a concession to non-Baby X use (Baby X uses UTF-8 throughout).
As you have pointed out, there are a whole host of issues to consider before
doing this properly. So it's something for a future version, not v1.2.

Re: you think rust may outthrone c?

<uatp8p$3fc88$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 18:07:52 +0200
Organization: A noiseless patient Spider
Lines: 67
Message-ID: <uatp8p$3fc88$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9tko8$1s9cs$1@dont-email.me> <u9trgp$1stmg$1@dont-email.me>
<u9u040$1tbdh$1@dont-email.me> <u9u5cd$1tqc9$1@dont-email.me>
<uaavm0$3ln4f$1@dont-email.me> <uab5ja$3mc91$1@dont-email.me>
<uabeq1$3nigh$1@dont-email.me> <uabobj$3oias$1@dont-email.me>
<uaduf0$54pp$1@dont-email.me> <uaeul9$b81t$1@dont-email.me>
<uah700$u4lr$1@dont-email.me> <87wmybkapt.fsf@nosuchdomain.example.com>
<uai383$15l5r$1@dont-email.me> <xs7zM.474554$GMN3.196055@fx16.iad>
<uaj1o2$1a70n$1@dont-email.me> <mKdzM.481384$AsA.322316@fx18.iad>
<86wmyafbid.fsf@linuxsc.com> <uali5e$1ogan$1@dont-email.me>
<uaqna2$2rnl0$1@dont-email.me> <uarn1e$310q6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 8 Aug 2023 16:07:53 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="512f07d8c41584f35ecc4f03b0b34350";
logging-data="3649800"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+v/cJ5vIchSKZzoaSVPf0J2tGIcZwMbPo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
Cancel-Lock: sha1:0W5ZrU/QLrgVl3U5PKCTbbVHQds=
Content-Language: en-GB
In-Reply-To: <uarn1e$310q6$1@dont-email.me>
 by: David Brown - Tue, 8 Aug 2023 16:07 UTC

On 07/08/2023 23:17, Bart wrote:
> On 07/08/2023 13:16, David Brown wrote:
> > On 05/08/2023 15:17, Bart wrote:
> >> On 05/08/2023 03:50, Tim Rentsch wrote:
> >>> Richard Damon <Richard@Damon-Family.org> writes:
> >>>
> >>>> On 8/4/23 10:25 AM, Bart wrote:
> >>>>
> >>>>> [...]
> >>>>
> >>>> Maybe your problem is you dont understand [...]
> >>>
> >>> Bart's problem isn't that he doesn't understand.  Bart's
> >>> problem is that he doesn't _want_ to understand.
> >>
> >> Bart is the kid who questions the Emperor's new clothes.
> >>
> >
> > No, that (like so much else) is just in your imagination.
>
> You've heard of the term 'code smell'? Well stuff like that just
> completely stinks.
>
> 50 years' plus and a /systems/ program language is incapable of
> describing a simple machine type without making a dog's dinner of it?
>
> (It doesn't even create the type; it's making it possible for some other
> code to create the type!)
>
>
> > Everyone in this thread is perfectly aware of the short-comings of C.
> > Everyone knows that plenty of the parts of C standard library headers is
> > a mess (it's not just Newlib, though that might be one of the messiest).
> >   The rest of us understand why, and understand that it doesn't matter
> > for people using C.
> >
> > You are not telling anyone anything new, nor exposing hidden secrets.
>
> OK. So you don't think there is, right now, any other shorter solution
> to that set-up code which uses an #if-#else ladder to define __int32_t?
> Bear in mind there might be 7 more lots of code like that to cover all 8
> types!
>

I really don't get why you insist on making stuff up. I haven't said
anything like that. Maybe there is a shorter and neater way to achieve
the needs of Newlib in its headers - maybe there isn't. I haven't
studied the code or the targets of Newlib.

> And you don't think that C99 could have been done any differently to
> make such code shorter, or unnecessary?

Again, I have said nothing of the kind. I know that if /I/ had been
designing C99 (or any other part of C) for my own personal use, I'd have
done many things differently. Is that what you'd like to hear?

Just like the original C standards, C99 was somewhat of a compromise,
with an emphasis on supporting existing code (written to C90 or K&R
standards, or using extensions from existing compilers), taking into
account existing compilers and their extensions and uses, and also
considering C++ usage when it fitted with C. Ease of implementation in
compilers and libraries was very low down the list of priorities.

Of course the priorities and trade-offs could certainly have been made
differently, and you'd have different results. Who knows if that would
have been a good idea or a bad idea? Certainly the number of lines and
type handling in the headers of one particular C library is no way to judge.

Re: you think rust may outthrone c?

<45c8abb5-ed2a-4cc6-93db-85e205801896n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:1a0d:b0:767:f7a3:81b4 with SMTP id bk13-20020a05620a1a0d00b00767f7a381b4mr996qkb.4.1691511328232;
Tue, 08 Aug 2023 09:15:28 -0700 (PDT)
X-Received: by 2002:a05:6830:1309:b0:6b9:b8fd:9ebb with SMTP id
p9-20020a056830130900b006b9b8fd9ebbmr9167otq.4.1691511327917; Tue, 08 Aug
2023 09:15:27 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 8 Aug 2023 09:15:27 -0700 (PDT)
In-Reply-To: <uatimv$3e73n$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=199.203.251.52; posting-account=ow8VOgoAAAAfiGNvoH__Y4ADRwQF1hZW
NNTP-Posting-Host: 199.203.251.52
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<uaeul9$b81t$1@dont-email.me> <87r0okvrht.fsf@bsb.me.uk> <uag05n$nmu5$1@dont-email.me>
<uagcgc$ppbn$1@dont-email.me> <87fs50ulog.fsf@bsb.me.uk> <uagpni$rt71$1@dont-email.me>
<87r0ohrvg0.fsf@bsb.me.uk> <uamlh1$1tr9i$1@dont-email.me> <875y5tkptn.fsf@bsb.me.uk>
<uans1e$26toe$1@dont-email.me> <87cyzzkfxh.fsf@nosuchdomain.example.com>
<uap5e6$2gd8e$1@dont-email.me> <87350vke4n.fsf@nosuchdomain.example.com>
<uap73l$2gktp$1@dont-email.me> <87y1initxx.fsf@nosuchdomain.example.com>
<uapf90$2ht0t$1@dont-email.me> <87leenirja.fsf@nosuchdomain.example.com>
<uaqdst$2q82c$1@dont-email.me> <8M4AM.510037$TPw2.337804@fx17.iad>
<uaqqou$2sa5t$1@dont-email.me> <87wmy6j37n.fsf@bsb.me.uk> <uara1m$2uq73$1@dont-email.me>
<20230807125815.939@kylheku.com> <uas273$32k64$1@dont-email.me>
<2FhAM.351580$xMqa.250758@fx12.iad> <uat7ht$3camf$1@dont-email.me>
<qsqAM.133251$f7Ub.122358@fx47.iad> <uatimv$3e73n$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <45c8abb5-ed2a-4cc6-93db-85e205801896n@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: already5...@yahoo.com (Michael S)
Injection-Date: Tue, 08 Aug 2023 16:15:28 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 8900
 by: Michael S - Tue, 8 Aug 2023 16:15 UTC

On Tuesday, August 8, 2023 at 5:16:14 PM UTC+3, Bart wrote:
> On 08/08/2023 13:22, Richard Damon wrote:
> > On 8/8/23 7:05 AM, Bart wrote:
> >> On 08/08/2023 03:21, Richard Damon wrote:
> >> > On 8/7/23 8:28 PM, Bart wrote:
> >> >> My view is that C's print-format system is not fit for purpose. The
> >> >> formatting is OK, it is needing to specify types that is the
> problem.
> >> >
> >> > which is EXACTLY the arguement that got us the C++ stream <<
> operator.
> >> That feature is so bad it makes using printf preferable! Is it really
> >> that hard to just be able to write 'print x' ?
> >>
> >> > If you want to do that in C, you can, just define a generic "print"
> >> > function that defines version for each fundamental type, and call
> >> that.
> >> >
> >> > You don't seem to understand that C is based on the assumption that
> >> the
> >> > programmer actually knows what he is doing, not hiding behind a
> >> mass of
> >> > abstractions.
> >>
> >> You don't get my point. The programmer might not know for sure the
> >> type of a complex expression, and certainly does not want to keep
> >> updating dozens of printf formats across the codebase as global
> >> declarations change.
> >
> > Then they are using the wrong tool.
> What tool did you have in mind? Do you mean that an IDE will tell you
> the types of the expressions, or write the format codes for you?
>
> That strikes me as the same argument that you can use CDECL to get round
> abstruse C type specs. If the tool can do it, why doesn't the compiler?
> Or the language.
> > C is designed to be used when you know, at least in general, what you
> > are working with.
> >
> >>
> >> Right now I don't know how to print a clock() result for example, and
> >> to keep inventing special formats like %zu is crass.
> >>
> >> *I* can just write:
> >>
> >> println a, b, c
> >
> > So, why don't you?
> I do. It's lovely. The question is, why are a million users of C denied
> that?
> > is the problem that you don't know how to translate that into C?
> >
> >>
> >> So can a dozen other languages (even from the 1960s!). I can change
> >> the types of a, b, c, and it still works. I can print c, b, a and it
> >> still works.
> >>
> >> I can even just do 'print clock()'!
> >>
> >> In C YOU CAN'T DO THAT. You need to dig up the types of each
> >> expression and apply the right format. In this VERY simple case, it
> >> MIGHT be:
> >
> > Because C is a lower level, and targeted to be more efficiet, than those
> > other languages.
>
> Sorry, but that is rubbish. My 'M' language is also low level, but
> somehow manages to have a proper print. And it's not dead slow either:
>
> A loop which prints the numbers up to 10 million (redirected to a file
> to remove display overheads), takes 1.8 seconds in my language, and 3.2
> seconds using gcc 13.2 -O3. bcc/tcc take 2.4 seconds.
>
> (My library is faster, despite the int->text code being unoptimised,
> because of buffering. But then maybe gcc's printf is also buffered
> internally. Which one is cheating more? I know mine won in this case!)

Sounds like gcc under mingw64/msys64.
It uses old Microsoft's DLLs (from Visulat Studio 2013 or something like that)
for C RTL. For many tasks it's o.k. but for few others slow or problematic
in a different ways.
So, you can't blame 'C' or gcc for this particular slowness.
You can't even blame Microsoft, because C RTL supplied with their less
ancient compilers prints integers much faster.
And you can't blame mingw64 maintainers because they are mostly
volunteering.

> >>
> >> printf("%lld " PRId64 " %s", a, b, c);
> >>
> >> But now you have an extra maintenance headache.
> >>
> >> (In all cases, printing gets untidy when you need to do necessary
> >> formatting, but only C incorporates types into the formatting.)
> >>
> >>
> >> >> It gets tricky when using sprintf say from another language,
> which is
> >> >> then transpiled to actual C.
> >> >
> >> > And why doesn't that other language implement a better print
> >> > functionality itself?
> >>
> >> It does, but ultimately it needs to do I/O, and I've been using C's
> >> printf for that since the mid-90s, because it was simpler than using
> >> WinAPI. I've since forgotten how do it with WinAPI.
> >
> > So, your problem is that you aren't willing to do the work yourself.
> What problem is this? I've been implementing 'proper' PRINT in languages
> since as far back as 1981.
>
> At some point, nearly 20 years later, I switched from OS to C functions
> for low-level I/O, for consoles or files. For Printing to printers,
> images, windows and strings, I still handled that.
> > So again, the problem is you are using the wrong tool or your language
> > is incomplete.
> The problem is that you don't have a clue what the problem is.
>
> There is no tool, and no feature in my language (other than turning it
> into C), that will fix the problem that C's 'char*' is so unique.
>
> Usually you can ignore that if using C's library purely via a binary
> interface, but if generating C code, you will see issues. The solutions
> are ugly and ungainly.
>
> Try it and see!
> > But to use C as a portable assembler, you need to use it as an
> > assembler, and that means understanding the nature of the "assembly
> > language".
> An assembly language which has a million more rules, special cases and
> UBs than any real assembler!
>
> In x64 assembly, I can write a floating point value to a 64-bit memory
> location, and read it back as an integer, with no issues:
>
> movq [fred], xmm0
> mov rax, [fred]
>
> C makes that undefined - maybe.
> > IF you are concerned about efficient outputing of valuse, you build a
> > family of generic "print" functions that use the right version for the
> > type given, and let the complier figure it out. Just means you can't put
> > everything in one statement. (but this is intermediary code, so doesn't
> > really need to be totally readable).
> This is exactly what I do behind the scenes of my language. And another
> reason why I sometimes use 'printf', since it produces long sequences of
> function calls which obscure minimal test code.
>
> The advantage of printf also is that it is outside my language, so its
> implementation code doesn't intrude.

Re: you think rust may outthrone c?

<uatprj$3ffb1$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 18:17:55 +0200
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <uatprj$3ffb1$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9tko8$1s9cs$1@dont-email.me> <u9trgp$1stmg$1@dont-email.me>
<u9u040$1tbdh$1@dont-email.me> <u9u5cd$1tqc9$1@dont-email.me>
<uaavm0$3ln4f$1@dont-email.me> <uab5ja$3mc91$1@dont-email.me>
<uabeq1$3nigh$1@dont-email.me> <uabobj$3oias$1@dont-email.me>
<uaduf0$54pp$1@dont-email.me> <uaeul9$b81t$1@dont-email.me>
<uah700$u4lr$1@dont-email.me> <87wmybkapt.fsf@nosuchdomain.example.com>
<uai383$15l5r$1@dont-email.me> <xs7zM.474554$GMN3.196055@fx16.iad>
<uaj1o2$1a70n$1@dont-email.me> <mKdzM.481384$AsA.322316@fx18.iad>
<86wmyafbid.fsf@linuxsc.com> <uali5e$1ogan$1@dont-email.me>
<86leelbsqo.fsf@linuxsc.com> <uatjjl$3ec5e$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 8 Aug 2023 16:17:56 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="512f07d8c41584f35ecc4f03b0b34350";
logging-data="3652961"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gWm5zexIheBM8cli2oIbQRoAISMwdotQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
Cancel-Lock: sha1:EGNP2feADz+yFN7figLcbWwRRWk=
Content-Language: en-GB
In-Reply-To: <uatjjl$3ec5e$2@dont-email.me>
 by: David Brown - Tue, 8 Aug 2023 16:17 UTC

On 08/08/2023 16:31, Bart wrote:
> On 08/08/2023 13:53, Tim Rentsch wrote:
>> Bart <bc@freeuk.com> writes:
>>
>>> All I'm hearing is excuses.
>>
>> I don't think you're hearing anything.  Probably the most
>> prominent mode seen in your postings is not listening to
>> what the other person is saying, and then changing the
>> subject.
>
> On 08/08/2023 13:53, Tim Rentsch wrote:
> > Bart <bc@freeuk.com> writes:
> >
> >> All I'm hearing is excuses.
> >
> > I don't think you're hearing anything.  Probably the most
> > prominent mode seen in your postings is not listening to
> > what the other person is saying, and then changing the
> > subject.
>
> I get exactly the same feeling.
>
> People will defend a bad C feature to the death, no matter what.
> Everything is apparently solved by 'understanding'.
>
> Understanding why that big pile of ugly conditional code exists
> /doesn't/ make it all right.
>
> But all anyone here cares about is whether something is right or wrong
> according to some section, subsection and paragraph in the C standard.
>
> Unless the subject shifts to tools such as compilers. Then it's a little
> bit different:
>
> Whatever gcc does is right. Every other way of doing it is wrong.
>

If you want to program in C, understanding the language is vital. If
you want to use a compiler, understanding how to use it is vital.

Your posts are a mix of misunderstandings and hatred - most of it
blaming the wrong thing. No one here particularly cares about your
personal opinions, and certainly no one can change them, but we do try
to help clear up your misunderstandings.

It is rare for others to express personal opinions directly here - only
occasionally do you see people writing "I'd prefer it if C were defined
like this...". We are mostly much more concerned about how C is
specified, and how it can be used. Similarly, people want to know how
compilers can be used - that is much more important that /why/ they work
in a particular way. Sometimes, however, it is also interesting to look
at the historical prospective to see why particular decisions were made
in the design of C (or compilers).

But do not mistake an understanding of the language and tools for an
unbridled fanboy love of all aspects of C. Most of us have things we
dislike about the language and common tools - though most of us enjoy
using C, or we'd probably not be in this group.

Re: you think rust may outthrone c?

<bddc1d5c-cabe-4281-b0e7-40e1acf16caen@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:6403:b0:76d:473:2e74 with SMTP id pz3-20020a05620a640300b0076d04732e74mr38900qkn.6.1691512315643; Tue, 08 Aug 2023 09:31:55 -0700 (PDT)
X-Received: by 2002:a05:6808:189e:b0:3a7:56ad:cb98 with SMTP id bi30-20020a056808189e00b003a756adcb98mr185834oib.9.1691512315465; Tue, 08 Aug 2023 09:31:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!69.80.99.18.MISMATCH!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 8 Aug 2023 09:31:55 -0700 (PDT)
In-Reply-To: <uatprj$3ffb1$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:3061:372d:59ca:e7b2; posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:3061:372d:59ca:e7b2
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com> <u9tko8$1s9cs$1@dont-email.me> <u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me> <u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me> <uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me> <uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me> <uaeul9$b81t$1@dont-email.me> <uah700$u4lr$1@dont-email.me> <87wmybkapt.fsf@nosuchdomain.example.com> <uai383$15l5r$1@dont-email.me> <xs7zM.474554$GMN3.196055@fx16.iad> <uaj1o2$1a70n$1@dont-email.me> <mKdzM.481384$AsA.322316@fx18.iad> <86wmyafbid.fsf@linuxsc.com> <uali5e$1ogan$1@dont-email.me> <86leelbsqo.fsf@linuxsc.com> <uatjjl$3ec5e$2@dont-email.me> <uatprj$3ffb1$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bddc1d5c-cabe-4281-b0e7-40e1acf16caen@googlegroups.com>
Subject: Re: you think rust may outthrone c?
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Tue, 08 Aug 2023 16:31:55 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 20
 by: Malcolm McLean - Tue, 8 Aug 2023 16:31 UTC

On Tuesday, 8 August 2023 at 17:18:10 UTC+1, David Brown wrote:
>
> But do not mistake an understanding of the language and tools for an
> unbridled fanboy love of all aspects of C. Most of us have things we
> dislike about the language and common tools - though most of us enjoy
> using C, or we'd probably not be in this group.
>
Yes. I'm a great fan. I woke up at about 4.00 last night and spent the
whole early morning chasing memory leaks. (I finally managed to
get valgrind working on a virtual Linux machine). Half of them were
due to failure to free a string holding a file extension, usually only of
five bytes (I included the dot, and the null, and three for the extension
itself). I did think, why didnt I just use C++ and an std::string. Or even
just knock up some Python scripts.

But the thing is, the C code will likely last practically forever. The C++
code won't. The CMake script I wrote a few days ago has already been
deprecated, by the way. It contains a minimum version, and the CMake
people plan to break compatibility with that version. So it's a good job
the program can be compiled with a single simple commandline call to gcc.

Re: you think rust may outthrone c?

<uatr2m$3fla4$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 18:38:45 +0200
Organization: A noiseless patient Spider
Lines: 89
Message-ID: <uatr2m$3fla4$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9dm6t$370v3$1@dont-email.me> <u9dv2c$38ir2$1@dont-email.me>
<u9e7bp$3a1ug$1@dont-email.me> <u9h055$3s62g$7@dont-email.me>
<87351foebi.fsf@bsb.me.uk> <86tttts1g2.fsf@linuxsc.com>
<87351dm210.fsf@nosuchdomain.example.com>
<789db599-e078-485f-bf16-32865c1eb970n@googlegroups.com>
<u9rcgd$1h7l5$1@dont-email.me> <WRawM.202896$TPw2.151582@fx17.iad>
<u9rnnv$1iftl$1@dont-email.me> <WNdwM.224816$GMN3.36273@fx16.iad>
<u9s1v2$1jhg7$1@dont-email.me> <u9tko8$1s9cs$1@dont-email.me>
<u9trgp$1stmg$1@dont-email.me> <u9u040$1tbdh$1@dont-email.me>
<u9u5cd$1tqc9$1@dont-email.me> <uaavm0$3ln4f$1@dont-email.me>
<uab5ja$3mc91$1@dont-email.me> <uabeq1$3nigh$1@dont-email.me>
<uabobj$3oias$1@dont-email.me> <uaduf0$54pp$1@dont-email.me>
<uajaqg$1bc41$4@dont-email.me> <uajfq3$1cesi$1@dont-email.me>
<uat7t4$3cco6$1@dont-email.me> <uat9ca$3cjmt$1@dont-email.me>
<uatjcp$3ec7b$1@dont-email.me> <uatlrr$3epln$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 8 Aug 2023 16:38:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="512f07d8c41584f35ecc4f03b0b34350";
logging-data="3659076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Ak/qpVJ0S542NddYbaDx8nugA/M4zwVM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
Cancel-Lock: sha1:lVmus4eWX0FbJ/3RKojX4VV9xQ8=
In-Reply-To: <uatlrr$3epln$1@dont-email.me>
Content-Language: en-GB
 by: David Brown - Tue, 8 Aug 2023 16:38 UTC

On 08/08/2023 17:09, Bart wrote:
> On 08/08/2023 15:27, David Brown wrote:

>
> > But if you don't like make, try one of the dozens of alternatives.  Or
> > write a batch file.  Or make your own build program - it's not hard, at
> > least for a simple arrangement.
>
> You're misunderstanding something - I don't need nor want 'make'. It's
> is just an obstacle to building any software that others use without
> thinking.

/You/ are misunderstanding something. If you need to do something, and
there are tools easily available that let you do it, but you refuse to
use those tools, then you can't expect any sympathy from others.

gcc is a compiler (or a driver program, or a collection of compilers,
depending on what part of it you are talking about). It was not built
to spoon-feed lazy or ignorant developers. And it does not contain a
build tool.

>
> > Don't forget that compilers are also usually intended for developers.
>
> But you must agree that the needs of an end-user are different? And
> simpler. No real need to do tons of testing or analysis: that has
> already been done.
>

Yes, I agree.

> So a streamlined build process and a streamlined compiler will work
> better with fewer failure points.
>

Yes. So use a build tool.

>
> I have tried to build CPython on Windows. But it doesn't use gcc in that
> case, it used MSVC.
>
> The process involved first updating .NET, then downloading VS 2017 (a
> 90-minute install), then GIT, then SVN, then MS Build Tools, and then it
> failed on something else, by which time, several hours and 10GB of
> downloads later, I gave up.
>
> Over-complex build systems GO WRONG.
>

CPython is a huge project, unsuitable for amateurs to build. That's why
almost nobody builds it themselves.

Windows is a huge mess, unsuitable for serious development work. That's
why so many people (including lots at Microsoft) prefer *nix systems for
development.

You are combining a massive project with a shitty OS and a totally
incompetent developer, and expecting things to go smoothly. It's hardly
a fair test.

> The first obstacle in using 'make' with gcc 10.3.0 is, there IS no
> make.exe! (There is mingw32-make.exe which you have to rename or copy.)

gcc never has, and never will, ship with any version of "make".

You might have acquired them together from some third-party packaging
system. If you don't like the way that packaging was done, take it up
with them. Maybe ask for a refund.

>
> gcc 13.2 comes with make.exe, so they learnt something! (I wonder at
> what point they decided that actually providing 'make.exe' was a good
> idea?)
>

gcc never has, and never will, ship with any version of "make".

Look, you /know/ this stuff. You've been told countless times. This is
why people call you a troll - you can't be /that/ stupid.

> The next one is, how does 'make' know what C compiler I want to use? At
> one point I had half a dozen.

Clearly these "computah" things are a bit advanced for you. May I
recommend an iPad? Or a TV? Because now I am sure you are trolling.

Re: you think rust may outthrone c?

<20230808093439.399@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 16:39:03 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <20230808093439.399@kylheku.com>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9tko8$1s9cs$1@dont-email.me> <u9trgp$1stmg$1@dont-email.me>
<u9u040$1tbdh$1@dont-email.me> <u9u5cd$1tqc9$1@dont-email.me>
<uaavm0$3ln4f$1@dont-email.me> <uab5ja$3mc91$1@dont-email.me>
<uabeq1$3nigh$1@dont-email.me> <uabobj$3oias$1@dont-email.me>
<uaduf0$54pp$1@dont-email.me> <uaeul9$b81t$1@dont-email.me>
<uah700$u4lr$1@dont-email.me> <87wmybkapt.fsf@nosuchdomain.example.com>
<uai383$15l5r$1@dont-email.me> <xs7zM.474554$GMN3.196055@fx16.iad>
<uaj1o2$1a70n$1@dont-email.me> <mKdzM.481384$AsA.322316@fx18.iad>
<86wmyafbid.fsf@linuxsc.com> <uali5e$1ogan$1@dont-email.me>
<86leelbsqo.fsf@linuxsc.com> <uatjjl$3ec5e$2@dont-email.me>
Injection-Date: Tue, 8 Aug 2023 16:39:03 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e64aa5a28c0801679f7444cde71de51";
logging-data="3657633"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+d4BYXmr6lvJi7waC4seNJLszOkzo+xlo="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:oF8XkhOtdGFSLGHN8JM8qtYTy3g=
 by: Kaz Kylheku - Tue, 8 Aug 2023 16:39 UTC

On 2023-08-08, Bart <bc@freeuk.com> wrote:
> People will defend a bad C feature to the death, no matter what.
> Everything is apparently solved by 'understanding'.

No; people are just defending the correct interpretation and
understanding of the bad C feature, and why you can't just change it
on a whim.

You're obviously not here to follow the newsgroup, otherwise it would be
painfully obvious that it's quite full of language criticism. Not
everyone in this newsgroup, or thread, agrees with every old or new
thing in C.

You've acknowledge that it was very hard to get your C compiler to
just drop an executable for the sqlite3.c source file of over 200
kilobytes.

But you somehow assume that it's easy for the rest of the C world to
turn on a dime with any random improvement dictated by a new spec.

> Understanding why that big pile of ugly conditional code exists
> /doesn't/ make it all right.

Understanding it not making it right doesn't make it all right
to deliberately misunderstand.

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

Re: you think rust may outthrone c?

<20230808093957.910@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 864-117-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: you think rust may outthrone c?
Date: Tue, 8 Aug 2023 16:41:39 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <20230808093957.910@kylheku.com>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<u9u040$1tbdh$1@dont-email.me> <u9u5cd$1tqc9$1@dont-email.me>
<uaavm0$3ln4f$1@dont-email.me> <uab5ja$3mc91$1@dont-email.me>
<uabeq1$3nigh$1@dont-email.me> <uabobj$3oias$1@dont-email.me>
<d124c512-5586-444e-9252-72e601502eaen@googlegroups.com>
<uaddgc$1lf7$1@dont-email.me>
<d7fcd0d6-c5a5-4229-87d5-98f3129c9572n@googlegroups.com>
<87wmydv39y.fsf@bsb.me.uk>
<c707dddd-c94e-47bf-9ae6-a8537d245ac1n@googlegroups.com>
<uaeivj$9urb$1@dont-email.me>
<27a833dc-67b7-4195-a3f5-8d8c60ad3d2fn@googlegroups.com>
<uafsqe$mtv7$1@dont-email.me> <X=vUTZgAAVQwBn6et@bongo-ra.co>
<uaj4gk$1alq7$1@dont-email.me>
<cbe7d004-e90b-41d7-9a34-c711ef9c3949n@googlegroups.com>
<uaj7iv$1b5h7$1@dont-email.me>
<2caab55a-f70e-457f-a4d2-ee912c27b681n@googlegroups.com>
<ualceb$1nnq7$1@dont-email.me>
<1aceef78-a719-424e-9234-63bc7531105cn@googlegroups.com>
<uatmcb$3eti9$1@dont-email.me>
<a33ce226-3826-4b0c-97fc-585105018304n@googlegroups.com>
Injection-Date: Tue, 8 Aug 2023 16:41:39 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e64aa5a28c0801679f7444cde71de51";
logging-data="3657633"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vJTaKN7zdXFDCv+VSV1fy4+jfbunKGts="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:z0dcbWBs7wYyPGszZXzOH/g8iak=
 by: Kaz Kylheku - Tue, 8 Aug 2023 16:41 UTC

On 2023-08-08, Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote:
> "Data" means, "that which is given". People programming applications are given

Or, well, "those which are given", if we are going to be pedantic.

"Datum" is that which is given.

:)


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

Pages:123456789101112131415161718192021222324252627282930313233343536373839
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor