Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Those who can, do; those who can't, simulate.


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

SubjectAuthor
* you think rust may outthrone c?fir
+* you think rust may outthrone c?Ben Bacarisse
|`* you think rust may outthrone c?Bart
| `* you think rust may outthrone c?Ben Bacarisse
|  `* you think rust may outthrone c?Bart
|   +- you think rust may outthrone c?Ben Bacarisse
|   +- you think rust may outthrone c?Ben Bacarisse
|   `* you think rust may outthrone c?Keith Thompson
|    `* you think rust may outthrone c?Bart
|     `* you think rust may outthrone c?Keith Thompson
|      `* you think rust may outthrone c?Bart
|       `* you think rust may outthrone c?Keith Thompson
|        `* you think rust may outthrone c?Bart
|         `* you think rust may outthrone c?Keith Thompson
|          `* you think rust may outthrone c?Bart
|           +* you think rust may outthrone c?Richard Damon
|           |+- you think rust may outthrone c?Malcolm McLean
|           |`* you think rust may outthrone c?Bart
|           | `* you think rust may outthrone c?Ben Bacarisse
|           |  +* you think rust may outthrone c?Malcolm McLean
|           |  |+* you think rust may outthrone c?Ben Bacarisse
|           |  ||+* you think rust may outthrone c?Malcolm McLean
|           |  |||`- you think rust may outthrone c?Ben Bacarisse
|           |  ||`* Making accountants cross (wa Re: you think rust may outthrone c?)Vir Campestris
|           |  || +- Making accountants cross (wa Re: you think rust may outthrone c?)Ben Bacarisse
|           |  || +- Making accountants cross (wa Re: you think rust may outthrone c?)Bart
|           |  || `* Making accountants cross (wa Re: you think rust may outthrone c?)Kaz Kylheku
|           |  ||  `* Making accountants cross (wa Re: you think rust may outthroneLew Pitcher
|           |  ||   +- Making accountants cross (wa Re: you think rust may outthrone c?)Chris M. Thomasson
|           |  ||   `* Making accountants cross (wa Re: you think rust may outthrone c?)Kaz Kylheku
|           |  ||    `- Making accountants cross (wa Re: you think rust may outthrone c?)Chris M. Thomasson
|           |  |`- you think rust may outthrone c?David Brown
|           |  +* you think rust may outthrone c?Bart
|           |  |+* you think rust may outthrone c?Kaz Kylheku
|           |  ||+- you think rust may outthrone c?Ben Bacarisse
|           |  ||`* you think rust may outthrone c?Bart
|           |  || `* you think rust may outthrone c?Richard Damon
|           |  ||  `* you think rust may outthrone c?Bart
|           |  ||   +* you think rust may outthrone c?Malcolm McLean
|           |  ||   |`- you think rust may outthrone c?Keith Thompson
|           |  ||   +* you think rust may outthrone c?Richard Damon
|           |  ||   |`* you think rust may outthrone c?Bart
|           |  ||   | +* you think rust may outthrone c?Michael S
|           |  ||   | |`- you think rust may outthrone c?Bart
|           |  ||   | `* you think rust may outthrone c?Richard Damon
|           |  ||   |  +* you think rust may outthrone c?Bart
|           |  ||   |  |`- you think rust may outthrone c?Bart
|           |  ||   |  `- you think rust may outthrone c?Michael S
|           |  ||   +- you think rust may *DE*throne c?Scott Lurndal
|           |  ||   +* you think rust may outthrone c?Michael S
|           |  ||   |`- you think rust may outthrone c?Bart
|           |  ||   `- you think rust may outthrone c?Keith Thompson
|           |  |+* you think rust may outthrone c?Keith Thompson
|           |  ||`* you think rust may outthrone c?Bart
|           |  || `- you think rust may outthrone c?Keith Thompson
|           |  |`- you think rust may outthrone c?Ben Bacarisse
|           |  `* you think rust may outthrone c?Tim Rentsch
|           |   `* you think rust may outthrone c?Ben Bacarisse
|           |    `* you think rust may outthrone c?Tim Rentsch
|           |     `* you think rust may outthrone c?Ben Bacarisse
|           |      `- you think rust may outthrone c?Tim Rentsch
|           +* you think rust may outthrone c?Kaz Kylheku
|           |`* you think rust may outthrone c?James Kuyper
|           | +- you think rust may outthrone c?Malcolm McLean
|           | `- you think rust may outthrone c?Richard Damon
|           `* you think rust may outthrone c?Keith Thompson
|            `* you think rust may outthrone c?Bart
|             `* you think rust may outthrone c?Keith Thompson
|              `* you think rust may outthrone c?Bart
|               +- you think rust may outthrone c?Richard Damon
|               `* you think rust may outthrone c?Keith Thompson
|                `* you think rust may outthrone c?Bart
|                 `* you think rust may outthrone c?Kaz Kylheku
|                  `* you think rust may outthrone c?Bart
|                   `* you think rust may outthrone c?Kaz Kylheku
|                    `- you think rust may outthrone c?Michael S
+* you think rust may outthrone c?Bart
|+- you think rust may outthrone c?Kaz Kylheku
|+* you think rust may outthrone c?Richard Damon
||+- you think rust may outthrone c?Bart
||`* you think rust may outthrone c?David Brown
|| `* you think rust may outthrone c?Bart
||  `* you think rust may outthrone c?Kaz Kylheku
||   `- you think rust may outthrone c?Bart
|+* you think rust may outthrone c?David Brown
||+- you think rust may outthrone c?Malcolm McLean
||`* you think rust may outthrone c?Bart
|| +* you think rust may outthrone c?Kaz Kylheku
|| |`- you think rust may outthrone c?Richard Damon
|| `- you think rust may outthrone c?David Brown
|`* you think rust may outthrone c?Tim Rentsch
| `* you think rust may outthrone c?Bart
|  +* you think rust may outthrone c?David Brown
|  |`* you think rust may outthrone c?Malcolm McLean
|  | `* you think rust may outthrone c?David Brown
|  |  `- you think rust may outthrone c?Malcolm McLean
|  `- you think rust may outthrone c?Kaz Kylheku
+* you think rust may outthrone c?David Brown
|`* you think rust may outthrone c?Malcolm McLean
| `* you think rust may outthrone c?David Brown
|  +- you think rust may outthrone c?Bart
|  `* you think rust may outthrone c?Malcolm McLean
+* you think rust may outthrone c?Bart
+* you think rust may outthrone c?Bart
+- you think rust may outthrone c?David Brown
`* you think rust may outthrone c?Blue-Maned_Hawk

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

<ub58e9$r6kk$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2&group=comp.lang.c#2

  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: Fri, 11 Aug 2023 13:09:46 +0100
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <ub58e9$r6kk$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<uatr2m$3fla4$1@dont-email.me>
<909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com>
<p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com>
<87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me>
<slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me>
<ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me>
<ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me>
<ub53ov$qit1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Aug 2023 12:09:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e57af83912fa92cd513fea0a1b729ed";
logging-data="891540"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kCevcB4EBLxyk7xURlCtjtTG2a3mk+Wk="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:19aTq3sFQFISR+KSMa1Zj2OK1yc=
In-Reply-To: <ub53ov$qit1$1@dont-email.me>
 by: Bart - Fri, 11 Aug 2023 12:09 UTC

On 11/08/2023 11:50, Kalevi Kolttonen wrote:
> Bart <bc@freeuk.com> wrote:
>>>> So I had to tell it the C files. I can't do *.c, as
>>>> there are 259 other .c files in the folder.
>
> Not related to C programming, but someone might find
> this fascinating: When one of my colleagues died some years
> ago, his Unix home directory had to be examined in order to
> find work related files there.
>
> The top-level directory contained over 10 000 (yes,
> *ten thousand*) unrelated files and there were
> practically no subdirectories.

The Firefox browser on an old PC always seemed very busy when running,
the hard drive was always buzzing.

It turned out that the limit to the number of temporary files it could
create was disabled. By the time I found this out, it had a single
folder with 3.5 million files.

Deleting them took 14 hours.

All the folders I create are specific to one project, but I rarely use
subfolders unless there's a real need, for example to segregate large
inputs.

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

<2KqBM.109942$8_8a.102233@fx48.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=3&group=comp.lang.c#3

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx48.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@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> <p_uAM.489417$mPI2.398490@fx15.iad> <e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me> <87bkffg6qz.fsf@bsb.me.uk> <ub1840$3q1k$1@dont-email.me> <87zg2zej54.fsf@bsb.me.uk> <Hr6BM.359405$xMqa.20823@fx12.iad> <87il9ndiz9.fsf@bsb.me.uk> <HJ7BM.25894$Wk53.19314@fx01.iad> <20230810090521.27@kylheku.com> <UKVPuuMp3KUo8mPWS@bongo-ra.co> <20230810230301.714@kylheku.com>
Lines: 28
Message-ID: <2KqBM.109942$8_8a.102233@fx48.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 11 Aug 2023 13:30:38 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 11 Aug 2023 13:30:38 GMT
X-Received-Bytes: 2343
 by: Scott Lurndal - Fri, 11 Aug 2023 13:30 UTC

Kaz Kylheku <864-117-4973@kylheku.com> writes:
>On 2023-08-11, Spiros Bousbouras <spibou@gmail.com> wrote:
>> On Thu, 10 Aug 2023 16:15:32 -0000 (UTC)
>> Kaz Kylheku <864-117-4973@kylheku.com> wrote:
>>> What we could have is that an executable just dynamically links to
>>> functions in these libraries, and the system automatically finds them at
>>> load time, without the executable having to specify which libraries.
>>
>> And how is your scheme different than how it already works in the Unix
>> world ?
>
>How it differs is that the executable has to nominate the specific
>libraries by indicating the library, which came in via the -l option,
>and then look for specific symbols from specific libraries that it has
>attached.
>
>Under the hood, the semantics is much like dlopen() of specific
>liraries to obtain a handle and then doing dlsym(handle, "name")
>to look for specific names from specific libs.
>
>Imagine it could specify just symbols, without specifying where
>they come from; that's a big difference.

Would this not require that no symbol be present in more than
one library, i.e. that there is a single symbol namespace across the
entire system?

That would seem to be a non-starter.

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

<BLqBM.109943$8_8a.102743@fx48.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=4&group=comp.lang.c#4

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx48.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@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> <uatr2m$3fla4$1@dont-email.me> <909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com> <p_uAM.489417$mPI2.398490@fx15.iad> <e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me> <slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me> <ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me> <ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me>
Lines: 47
Message-ID: <BLqBM.109943$8_8a.102743@fx48.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 11 Aug 2023 13:32:17 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 11 Aug 2023 13:32:17 GMT
X-Received-Bytes: 2726
 by: Scott Lurndal - Fri, 11 Aug 2023 13:32 UTC

Bart <bc@freeuk.com> writes:
>On 11/08/2023 07:43, David Brown wrote:
> > On 09/08/2023 16:07, Bart wrote:
> >> On 09/08/2023 14:32, Richard Harnden wrote:
> >> > On 09/08/2023 13:32, Bart wrote:
> >> >> Yes, that is one reason that it is so complicated. You have to
>define
> >> >> set of dependences between modules (and you may need to do that
> >> >> manually, so it can be error prone).
> >> >
> >> > $ gcc -MM *.c
> >>
> >> I have a small, 3-file project (one of Chris's) comprising files
> >> cipher.c, sha2.c, hmac.c
> >>
> >> gcc -MM cipher.c outputs:
> >>
> >> cipher.o: cipher.c hmac.c sha2.h
> >>
> >> I need to do -MM cipher.c hmac.c sha2.c for it to show:
> >>
> >> cipher.o: cipher.c hmac.h sha2.h
> >> hmac.o: hmac.c hmac.h sha2.h
> >> sha2.o: sha2.c sha2.h
> >>
> >> So I had to tell it the C files. I can't do *.c, as there are 259
> >> other .c files in the folder.
> >>
> >
> > There's this wonderful organisation technique for files called
> > "directories". They even exist in Windows.
> >
> > Put the files of a project in a directory. Delete the junk. Then you
> > can find your files, and you can use "gcc -MM *.c". It even works if
> > you have multiple different programs - it simply generates dependency
> > information so you know which C files need re-compiled when headers are
> > changed.
> >
> > But of course when someone gives you help or answers your questions,
> > you'd rather complain more.
> >
>
>So you're telling people exactly what they're allowed to have in their
>folders and what they're not.

Perhaps it is time to simply stop responding to Bart when he continues
to make such silly statements.

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

<246b0335-9eb8-492c-843a-62d280a27107n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=6&group=comp.lang.c#6

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:5996:0:b0:40f:f509:3a75 with SMTP id e22-20020ac85996000000b0040ff5093a75mr30473qte.7.1691762631906; Fri, 11 Aug 2023 07:03:51 -0700 (PDT)
X-Received: by 2002:a05:6a00:1704:b0:687:41a1:640e with SMTP id h4-20020a056a00170400b0068741a1640emr717142pfc.6.1691762631326; Fri, 11 Aug 2023 07:03:51 -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: Fri, 11 Aug 2023 07:03:50 -0700 (PDT)
In-Reply-To: <ac12cc42-c391-4628-9efa-91ac321e3852n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.246; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.246
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com> <909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com> <p_uAM.489417$mPI2.398490@fx15.iad> <e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me> <87bkffg6qz.fsf@bsb.me.uk> <ub1840$3q1k$1@dont-email.me> <87zg2zej54.fsf@bsb.me.uk> <Hr6BM.359405$xMqa.20823@fx12.iad> <87il9ndiz9.fsf@bsb.me.uk> <HJ7BM.25894$Wk53.19314@fx01.iad> <20230810090521.27@kylheku.com> <yH8BM.430010$TCKc.359327@fx13.iad> <20230810110112.359@kylheku.com> <28fee821-781d-4532-9c53-fb8756a000c0n@googlegroups.com> <ub3nm7$haft$2@dont-email.me> <08e28be9-2867-46be-872c-86bc3418b908n@googlegroups.com> <ub3veb$icj5$1@dont-email.me> <ac12cc42-c391-4628-9efa-91ac321e3852n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <246b0335-9eb8-492c-843a-62d280a27107n@googlegroups.com>
Subject: Re: you think rust may *DE*throne c?
From: profesor.fir@gmail.com (fir)
Injection-Date: Fri, 11 Aug 2023 14:03:51 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 170
 by: fir - Fri, 11 Aug 2023 14:03 UTC

piątek, 11 sierpnia 2023 o 02:58:49 UTC+2 fir napisał(a):
> piątek, 11 sierpnia 2023 o 02:30:18 UTC+2 Bart napisał(a):
> > On 11/08/2023 00:06, fir wrote:
> > > piątek, 11 sierpnia 2023 o 00:17:57 UTC+2 Bart napisał(a):
> > >> On 10/08/2023 22:44, fir wrote:
> > >>> czwartek, 10 sierpnia 2023 o 20:16:49 UTC+2 Kaz Kylheku napisał(a):
> > >>>>
> > >>>> DLLs are lacking in some technology like symbol versioning, linking
> > >>>> in any direction (DLL cannot attach to symbols exported by executable)
> > >>>> and such. Plus the use of clunky .lib files taht SO's don't require,
> > >>>> and __decl(dllexport) and other cruft. (That pragma mechanism by
> > >>>> which a source file indicates a needed DLL doesn't need a .lib file
> > >>>> though, IIRC).
> > >>>>
> > >>>
> > >>> i dont remember as to this exe, though i remember i was testing it and
> > >>> those relative usage - when i was writing more than one dll was making
> > >>> some problems to me.. i dont remember hovever if you cant call
> > functions in exe
> > >>> though - problem was rather that when you want to compile dll using
> > other dll you need to have the other build (becouse compilaton readed
> > binary dll to check if symbols exist even if
> > >>> linking is rruntime - this is in fact stupid but this is a
> > consequence of fact that when
> > >>> you link to a symbol compilers dont know in which of dlls you want
> > to0 link it is,
> > >>> and it need to put not only symbols but their parent module names
> > in output) ..
> > >>> it is mighty stupid bcouse you cant compile code that uses the dll
> > that you dont really get
> > >>> (unles there is some way providing this info on symbold what is the
> > name of the
> > >>> parent module of them, __declspec(dllimport) are not a problem though
> > >>>
> > >>> it should be some other extension too like
> > >>>
> > >>> __something "green fire.dll" //import module name for given symbols
> > >>> {
> > >>> __declspec(dllimport) int foo(int a);
> > >>> __declspec(dllimport) float xx;
> > >>> }
> > >>>
> > >>> but i dont know if there is something like that
> > >>>
> > >>>
> > >>> but besides in practice there are no problems with dlls at least
> > when i use it
> > >>> is a breat with butter
> > >>>
> > >>> dlls are very likeable and i tell not a first time that if someone
> > coded in c on windows he must
> > >>> learn dlls becouse dlls are sorta part of practical c..and its real
> > nice part (ofc it lacks types
> > >>> encoded and call conventions which would allow to just get rid of
> > headers - check my thread/post on it)
> > >>>
> > >>> probably it would allow even normal c to get rid of headers as pif
> > everything would just work without headers people just could not include
> > them and tha wouldnt break codes
> > >> How would that work? To use a function exported from a DLL, you will
> > >> need a function signature, perhaps a set of usertypes, enums and
> > #defines.
> > >>
> > >> All the stuff that normally is provided by a header.
> > >>
> > >> Where would that information come from?
> > >>
> > >> (My own idea was for an interface info to be embedded inside the DLL,
> > >> and accessed by calling a special exported function. For C, that could
> > >> just return a string containing the normal header code.
> > >>
> > >> But it would need cooperation from the people creating the DLL (who
> > >> could be writing in any language, not C).
> > >>
> > >> And from C compilers to delve inside DLL files (and at an early stage
> > >> long before linking). Since C compilers can't even shake off
> > >> anachronisms like -lm and a.out, I can't see that happening.)
> > >>
> > >>
> > >>
> > >> My idea was for my own private use
> > > doi
> > > lern how PE format works coz it is really important - not mucnh
> > pleasant to read but important as hell
> > You really don't need to disect a DLL file to extract some data from it..
> > A regular interface will do.
> >
> > For example, for a DLL that exports one function 'add()', add this extra
> > function:
> >
> > char* header = "int add(int, int);\n";
> > char* getheader(void) { return header;}
> >
> > and create a DLL like 'lib.dll'.
> >
> > Now, in the compiler that wants to import functions from lib.dll, use
> > code like this:
> >
> > #include <stdio.h>
> > #include <windows.h>
> >
> > int main(void) {
> > void* handle;
> > char* (*fnptr)(void);
> >
> > handle=LoadLibrary("lib.dll");
> > if (handle) {
> > fnptr=GetProcAddress(handle, "getheader");
> > if (fnptr)
> > printf("Header = %s\n", fnptr());
> > }
> > }
> >
> > Calling getheader() returns the same string as including a header file
> > like 'lib.h'.
> >
> > No need to be delving inside the PE format.
> >
> > Actually, as written, that 'header' variable is exported also, so you
> > can directly access that, but I prefer to do it via a function.
> >
> > And, PE is a terrible, terrible format. Only get into as last resort.
> you cannot return c code as it must be binary level description language agnostic,
> calling code is weird as it imo should be a normal format that you could open on other system then dll is run on
> adding a section is normal way and is no specially hard, it is to do in few days (first functioning draft of it, but that would be most work)

in fact i must (should) slightly revrite the code in org-asm that builds import section, and i should add one that creates export section too, so maybe i will post detail on this how hard this is or rather is not, its a matter of one evening of easy code (except that little stress that youre not sure if you know enough well the windows demand and if it will run, as you must belive in 'gossips; on it)

i will be writing it soon so i may probably post on it though today i feel mighty sick (health problems)

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

<abb8c99c-ebfb-4cd4-8e65-0e22667354d8n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=7&group=comp.lang.c#7

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:462c:b0:76d:2ec4:7c9e with SMTP id br44-20020a05620a462c00b0076d2ec47c9emr37290qkb.11.1691764125980;
Fri, 11 Aug 2023 07:28:45 -0700 (PDT)
X-Received: by 2002:a63:a74e:0:b0:564:1c39:c022 with SMTP id
w14-20020a63a74e000000b005641c39c022mr342462pgo.5.1691764125535; Fri, 11 Aug
2023 07:28:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 11 Aug 2023 07:28:44 -0700 (PDT)
In-Reply-To: <ac12cc42-c391-4628-9efa-91ac321e3852n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.246; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.246
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com> <p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk>
<uavpcf$3t64r$1@dont-email.me> <87bkffg6qz.fsf@bsb.me.uk> <ub1840$3q1k$1@dont-email.me>
<87zg2zej54.fsf@bsb.me.uk> <Hr6BM.359405$xMqa.20823@fx12.iad>
<87il9ndiz9.fsf@bsb.me.uk> <HJ7BM.25894$Wk53.19314@fx01.iad>
<20230810090521.27@kylheku.com> <yH8BM.430010$TCKc.359327@fx13.iad>
<20230810110112.359@kylheku.com> <28fee821-781d-4532-9c53-fb8756a000c0n@googlegroups.com>
<ub3nm7$haft$2@dont-email.me> <08e28be9-2867-46be-872c-86bc3418b908n@googlegroups.com>
<ub3veb$icj5$1@dont-email.me> <ac12cc42-c391-4628-9efa-91ac321e3852n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <abb8c99c-ebfb-4cd4-8e65-0e22667354d8n@googlegroups.com>
Subject: Re: you think rust may *DE*throne c?
From: profesor.fir@gmail.com (fir)
Injection-Date: Fri, 11 Aug 2023 14:28:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Fri, 11 Aug 2023 14:28 UTC

piątek, 11 sierpnia 2023 o 02:58:49 UTC+2 fir napisał(a):
> piątek, 11 sierpnia 2023 o 02:30:18 UTC+2 Bart napisał(a):
> >
> > Calling getheader() returns the same string as including a header file
> > like 'lib.h'.
> >
> > No need to be delving inside the PE format.
> >
> > Actually, as written, that 'header' variable is exported also, so you
> > can directly access that, but I prefer to do it via a function.
> >
> > And, PE is a terrible, terrible format. Only get into as last resort.
> you cannot return c code as it must be binary level description language agnostic,
> calling code is weird as it imo should be a normal format that you could open on other system then dll is run on
> adding a section is normal way and is no specially hard, it is to do in few days (first functioning draft of it, but that would be most work)

besides if you would make compilers calling modules code to obtain headers you could make that compiler runy any of your code, playing songs for example - that would be funny maybe but...

as i said it must be language agnostic type info do it canyt be header but some binary specification based on registered enumarations (conventions) accepted in binary abi world (see that post i wrote, it gives the description in more detail)

https://groups.google.com/g/comp.lang.c/c/Qniawhtoc7s

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

<f14ccbd8-201f-4aea-9be3-64601766f044n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=8&group=comp.lang.c#8

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:5c0a:0:b0:403:edaf:5b78 with SMTP id i10-20020ac85c0a000000b00403edaf5b78mr25415qti.6.1691764415380;
Fri, 11 Aug 2023 07:33:35 -0700 (PDT)
X-Received: by 2002:a63:3d4b:0:b0:563:8767:d83f with SMTP id
k72-20020a633d4b000000b005638767d83fmr354104pga.7.1691764415051; Fri, 11 Aug
2023 07:33:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 11 Aug 2023 07:33:34 -0700 (PDT)
In-Reply-To: <BLqBM.109943$8_8a.102743@fx48.iad>
Injection-Info: google-groups.googlegroups.com; posting-host=2a0d:6fc2:55b0:ca00:2587:f642:e15c:3f95;
posting-account=ow8VOgoAAAAfiGNvoH__Y4ADRwQF1hZW
NNTP-Posting-Host: 2a0d:6fc2:55b0:ca00:2587:f642:e15c:3f95
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<uatr2m$3fla4$1@dont-email.me> <909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com>
<p_uAM.489417$mPI2.398490@fx15.iad> <e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com>
<87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me> <slrnud6spf.f45.dan@djph.net>
<ub010k$3um69$1@dont-email.me> <ub04i1$3v4p5$2@dont-email.me>
<ub06ih$3vdv6$1@dont-email.me> <ub4lb2$olm3$1@dont-email.me>
<ub51sl$qadl$1@dont-email.me> <BLqBM.109943$8_8a.102743@fx48.iad>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f14ccbd8-201f-4aea-9be3-64601766f044n@googlegroups.com>
Subject: Re: you think rust may *DE*throne c?
From: already5chosen@yahoo.com (Michael S)
Injection-Date: Fri, 11 Aug 2023 14:33:35 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 56
 by: Michael S - Fri, 11 Aug 2023 14:33 UTC

On Friday, August 11, 2023 at 4:33:47 PM UTC+3, Scott Lurndal wrote:
> Bart <b...@freeuk.com> writes:
> >On 11/08/2023 07:43, David Brown wrote:
> > > On 09/08/2023 16:07, Bart wrote:
> > >> On 09/08/2023 14:32, Richard Harnden wrote:
> > >> > On 09/08/2023 13:32, Bart wrote:
> > >> >> Yes, that is one reason that it is so complicated. You have to
> >define
> > >> >> set of dependences between modules (and you may need to do that
> > >> >> manually, so it can be error prone).
> > >> >
> > >> > $ gcc -MM *.c
> > >>
> > >> I have a small, 3-file project (one of Chris's) comprising files
> > >> cipher.c, sha2.c, hmac.c
> > >>
> > >> gcc -MM cipher.c outputs:
> > >>
> > >> cipher.o: cipher.c hmac.c sha2.h
> > >>
> > >> I need to do -MM cipher.c hmac.c sha2.c for it to show:
> > >>
> > >> cipher.o: cipher.c hmac.h sha2.h
> > >> hmac.o: hmac.c hmac.h sha2.h
> > >> sha2.o: sha2.c sha2.h
> > >>
> > >> So I had to tell it the C files. I can't do *.c, as there are 259
> > >> other .c files in the folder.
> > >>
> > >
> > > There's this wonderful organisation technique for files called
> > > "directories". They even exist in Windows.
> > >
> > > Put the files of a project in a directory. Delete the junk. Then you
> > > can find your files, and you can use "gcc -MM *.c". It even works if
> > > you have multiple different programs - it simply generates dependency
> > > information so you know which C files need re-compiled when headers are
> > > changed.
> > >
> > > But of course when someone gives you help or answers your questions,
> > > you'd rather complain more.
> > >
> >
> >So you're telling people exactly what they're allowed to have in their
> >folders and what they're not.
> Perhaps it is time to simply stop responding to Bart when he continues
> to make such silly statements.

On this particular issue I fully agree with Bart.

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

<ub5gt5$sgug$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=9&group=comp.lang.c#9

  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: Fri, 11 Aug 2023 15:34:14 +0100
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <ub5gt5$sgug$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<uatr2m$3fla4$1@dont-email.me>
<909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com>
<p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com>
<87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me>
<slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me>
<ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me>
<ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me>
<BLqBM.109943$8_8a.102743@fx48.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Aug 2023 14:34:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e57af83912fa92cd513fea0a1b729ed";
logging-data="934864"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18aJFJgJREywBWZ7XLiRhXUsBK0zVNWezE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:sWTonDQ3VCD3fQeprf6L6n4oS+s=
In-Reply-To: <BLqBM.109943$8_8a.102743@fx48.iad>
 by: Bart - Fri, 11 Aug 2023 14:34 UTC

On 11/08/2023 14:32, Scott Lurndal wrote:
> Bart <bc@freeuk.com> writes:
>> On 11/08/2023 07:43, David Brown wrote:
>>> On 09/08/2023 16:07, Bart wrote:
>>>> On 09/08/2023 14:32, Richard Harnden wrote:
>>>> > On 09/08/2023 13:32, Bart wrote:
>>>> >> Yes, that is one reason that it is so complicated. You have to
>> define
>>>> >> set of dependences between modules (and you may need to do that
>>>> >> manually, so it can be error prone).
>>>> >
>>>> > $ gcc -MM *.c
>>>>
>>>> I have a small, 3-file project (one of Chris's) comprising files
>>>> cipher.c, sha2.c, hmac.c
>>>>
>>>> gcc -MM cipher.c outputs:
>>>>
>>>> cipher.o: cipher.c hmac.c sha2.h
>>>>
>>>> I need to do -MM cipher.c hmac.c sha2.c for it to show:
>>>>
>>>> cipher.o: cipher.c hmac.h sha2.h
>>>> hmac.o: hmac.c hmac.h sha2.h
>>>> sha2.o: sha2.c sha2.h
>>>>
>>>> So I had to tell it the C files. I can't do *.c, as there are 259
>>>> other .c files in the folder.
>>>>
>>>
>>> There's this wonderful organisation technique for files called
>>> "directories". They even exist in Windows.
>>>
>>> Put the files of a project in a directory. Delete the junk. Then you
>>> can find your files, and you can use "gcc -MM *.c". It even works if
>>> you have multiple different programs - it simply generates dependency
>>> information so you know which C files need re-compiled when headers are
>>> changed.
>>>
>>> But of course when someone gives you help or answers your questions,
>>> you'd rather complain more.
>>>
>>
>> So you're telling people exactly what they're allowed to have in their
>> folders and what they're not.
>
> Perhaps it is time to simply stop responding to Bart when he continues
> to make such silly statements.

What exactly is silly about it? Isn't that what is being said or not?

Perhaps it is time to stop forcing YOUR working practices down other
people's throats, and making out they are so superior.

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

<d804a454-147d-470c-b1b5-6b23b1af0af5n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=10&group=comp.lang.c#10

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:5ce:b0:403:3683:62a2 with SMTP id d14-20020a05622a05ce00b00403368362a2mr25672qtb.11.1691765261180;
Fri, 11 Aug 2023 07:47:41 -0700 (PDT)
X-Received: by 2002:a17:902:c94b:b0:1bc:4753:eddf with SMTP id
i11-20020a170902c94b00b001bc4753eddfmr744259pla.5.1691765260668; Fri, 11 Aug
2023 07:47:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 11 Aug 2023 07:47:39 -0700 (PDT)
In-Reply-To: <abb8c99c-ebfb-4cd4-8e65-0e22667354d8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.246; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.246
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com> <p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk>
<uavpcf$3t64r$1@dont-email.me> <87bkffg6qz.fsf@bsb.me.uk> <ub1840$3q1k$1@dont-email.me>
<87zg2zej54.fsf@bsb.me.uk> <Hr6BM.359405$xMqa.20823@fx12.iad>
<87il9ndiz9.fsf@bsb.me.uk> <HJ7BM.25894$Wk53.19314@fx01.iad>
<20230810090521.27@kylheku.com> <yH8BM.430010$TCKc.359327@fx13.iad>
<20230810110112.359@kylheku.com> <28fee821-781d-4532-9c53-fb8756a000c0n@googlegroups.com>
<ub3nm7$haft$2@dont-email.me> <08e28be9-2867-46be-872c-86bc3418b908n@googlegroups.com>
<ub3veb$icj5$1@dont-email.me> <ac12cc42-c391-4628-9efa-91ac321e3852n@googlegroups.com>
<abb8c99c-ebfb-4cd4-8e65-0e22667354d8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d804a454-147d-470c-b1b5-6b23b1af0af5n@googlegroups.com>
Subject: Re: you think rust may *DE*throne c?
From: profesor.fir@gmail.com (fir)
Injection-Date: Fri, 11 Aug 2023 14:47:41 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Fri, 11 Aug 2023 14:47 UTC

piątek, 11 sierpnia 2023 o 16:28:55 UTC+2 fir napisał(a):
> > piątek, 11 sierpnia 2023 o 02:30:18 UTC+2 Bart napisał(a):
> > >
> > > Actually, as written, that 'header' variable is exported also, so you
> > > can directly access that, but I prefer to do it via a function.
> > >
the ide of kkeping this header as a string is not totally idiotic but its
not optimal (its c specific and thus sorta weird, but theorethically might b used as some additions of what things look like now - but sort athis way you could add whoel source to dll as a string too)

also to remember are efficincy things - i realized it maybe clearer writing
on this swuare complexity that breakc computer down even for 1000 objects, and also those newline counts by fgets that took 300 ms:

computers are still slow today.. reading 1 MB file or its part still takes about 1 ms
(as to rank and saing not precisisely ofc depending on machine but say so)
it is notable amount of time (as things stack)

square algorithms breaks (begin to break) computers runtime in range 1k - 5k simple objects linear breaks (begin to break ) computer in range 1M simple objects... so when talking about runtime and fluid working the machines are still slow...and if you would add that headers, even if ram dont matter so much today
the time is imo still bottleneck imo

still hope the rems would be faster maybe as it would be really nice to have 10x as fast as today - say 100 GB/s or 1 TB/s) at home (this /s is misleading ofc coz important is what you got a t milisecond not on second..so 100 GB/s is 100 MB/ms which is nice but not so much cosmic amount as for today)

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

<5c627e2a-f24e-4f06-9cc3-4b5cce223571n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=11&group=comp.lang.c#11

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:b643:0:b0:76d:d09:bef9 with SMTP id g64-20020a37b643000000b0076d0d09bef9mr32591qkf.3.1691766367763;
Fri, 11 Aug 2023 08:06:07 -0700 (PDT)
X-Received: by 2002:a05:620a:403:b0:763:a2ec:27e7 with SMTP id
3-20020a05620a040300b00763a2ec27e7mr29834qkp.7.1691766367534; Fri, 11 Aug
2023 08:06:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 11 Aug 2023 08:06:07 -0700 (PDT)
In-Reply-To: <d804a454-147d-470c-b1b5-6b23b1af0af5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.154; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.154
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com> <p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk>
<uavpcf$3t64r$1@dont-email.me> <87bkffg6qz.fsf@bsb.me.uk> <ub1840$3q1k$1@dont-email.me>
<87zg2zej54.fsf@bsb.me.uk> <Hr6BM.359405$xMqa.20823@fx12.iad>
<87il9ndiz9.fsf@bsb.me.uk> <HJ7BM.25894$Wk53.19314@fx01.iad>
<20230810090521.27@kylheku.com> <yH8BM.430010$TCKc.359327@fx13.iad>
<20230810110112.359@kylheku.com> <28fee821-781d-4532-9c53-fb8756a000c0n@googlegroups.com>
<ub3nm7$haft$2@dont-email.me> <08e28be9-2867-46be-872c-86bc3418b908n@googlegroups.com>
<ub3veb$icj5$1@dont-email.me> <ac12cc42-c391-4628-9efa-91ac321e3852n@googlegroups.com>
<abb8c99c-ebfb-4cd4-8e65-0e22667354d8n@googlegroups.com> <d804a454-147d-470c-b1b5-6b23b1af0af5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5c627e2a-f24e-4f06-9cc3-4b5cce223571n@googlegroups.com>
Subject: Re: you think rust may *DE*throne c?
From: profesor.fir@gmail.com (fir)
Injection-Date: Fri, 11 Aug 2023 15:06:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Fri, 11 Aug 2023 15:06 UTC

piątek, 11 sierpnia 2023 o 16:47:48 UTC+2 fir napisał(a):
>
> square algorithms breaks (begin to break) computers runtime in range 1k - 5k simple objects linear breaks (begin to break ) computer in range 1M simple objects...

it also dependants what one means simple - if simple means pixel it 'began to
break' 1M or more but if soem means particles with more if logic etc or rasterized triangles (on CPU) it even began to break at 100k... (it then depends on machine as on old it may ba 100k on new it may be 600k)

so i mean those talk is some kind of methafor/estimation but i would say linear things began to break a 1M (or seometimes even less) today (strictly on my old machine it began to break at 100-150k)

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

<ub5j63$sqv6$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=12&group=comp.lang.c#12

  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: Fri, 11 Aug 2023 16:13:08 +0100
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <ub5j63$sqv6$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com>
<p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com>
<87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me>
<87bkffg6qz.fsf@bsb.me.uk> <ub1840$3q1k$1@dont-email.me>
<87zg2zej54.fsf@bsb.me.uk> <Hr6BM.359405$xMqa.20823@fx12.iad>
<87il9ndiz9.fsf@bsb.me.uk> <HJ7BM.25894$Wk53.19314@fx01.iad>
<20230810090521.27@kylheku.com> <yH8BM.430010$TCKc.359327@fx13.iad>
<20230810110112.359@kylheku.com>
<28fee821-781d-4532-9c53-fb8756a000c0n@googlegroups.com>
<ub3nm7$haft$2@dont-email.me>
<08e28be9-2867-46be-872c-86bc3418b908n@googlegroups.com>
<ub3veb$icj5$1@dont-email.me>
<ac12cc42-c391-4628-9efa-91ac321e3852n@googlegroups.com>
<abb8c99c-ebfb-4cd4-8e65-0e22667354d8n@googlegroups.com>
<d804a454-147d-470c-b1b5-6b23b1af0af5n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 11 Aug 2023 15:13:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e57af83912fa92cd513fea0a1b729ed";
logging-data="945126"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rX7cO8ItRKr62RSazXicOIL2/jwittIE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:KqkDcg6kVKZkswvaGW/h1K2uGIU=
In-Reply-To: <d804a454-147d-470c-b1b5-6b23b1af0af5n@googlegroups.com>
 by: Bart - Fri, 11 Aug 2023 15:13 UTC

On 11/08/2023 15:47, fir wrote:
> piątek, 11 sierpnia 2023 o 16:28:55 UTC+2 fir napisał(a):
>>> piątek, 11 sierpnia 2023 o 02:30:18 UTC+2 Bart napisał(a):
>>>>
>>>> Actually, as written, that 'header' variable is exported also, so you
>>>> can directly access that, but I prefer to do it via a function.
>>>>
> the ide of kkeping this header as a string is not totally idiotic but its
> not optimal (its c specific and thus sorta weird, but theorethically might b used as some additions of what things look like now - but sort athis way you could add whoel source to dll as a string too)
>
> also to remember are efficincy things - i realized it maybe clearer writing
> on this swuare complexity that breakc computer down even for 1000 objects, and also those newline counts by fgets that took 300 ms:
>
> computers are still slow today.. reading 1 MB file or its part still takes about 1 ms
> (as to rank and saing not precisisely ofc depending on machine but say so)
> it is notable amount of time (as things stack)
>
> square algorithms breaks (begin to break) computers runtime in range 1k - 5k simple objects linear breaks (begin to break ) computer in range 1M simple objects... so when talking about runtime and fluid working the machines are still slow...and if you would add that headers, even if ram dont matter so much today
> the time is imo still bottleneck imo
>
> still hope the rems would be faster maybe as it would be really nice to have 10x as fast as today - say 100 GB/s or 1 TB/s) at home (this /s is misleading ofc coz important is what you got a t milisecond not on second..so 100 GB/s is 100 MB/ms which is nice but not so much cosmic amount as for today)

Your comment I first replied to was talking about DLLs, and getting rid
of C headers.

I assumed that was about headers needed to access libraries present in
DLLs files.

If talking about a new language however, and headers in general, then of
course they can be eliminated.

I haven't used headers (ie. separate declarations of shared functions
etc) in my own languages for over a decade.

But still, if I want to use a DLL that /someone else has written/, I
need an interface to that library that I can then turn into bindings for
my language.

It is here, also, that binary, language-neutral, API information could
be added to and accessed from a DLL file in the manner I suggested for C
header info.

Then an explicit file of API declarations, in whatever language, is not
needed. Although something will be needed as docs so that you know how
to use the library.

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

<01d69c9e-2b53-4912-93dc-c6d098ef3d3fn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13&group=comp.lang.c#13

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:14d:b0:76c:b6b3:a8d5 with SMTP id e13-20020a05620a014d00b0076cb6b3a8d5mr39787qkn.2.1691767712073;
Fri, 11 Aug 2023 08:28:32 -0700 (PDT)
X-Received: by 2002:a17:903:2452:b0:1b8:5541:9d4d with SMTP id
l18-20020a170903245200b001b855419d4dmr836097pls.6.1691767711809; Fri, 11 Aug
2023 08:28:31 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 11 Aug 2023 08:28:31 -0700 (PDT)
In-Reply-To: <ub5j63$sqv6$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.154; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.154
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com> <p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk>
<uavpcf$3t64r$1@dont-email.me> <87bkffg6qz.fsf@bsb.me.uk> <ub1840$3q1k$1@dont-email.me>
<87zg2zej54.fsf@bsb.me.uk> <Hr6BM.359405$xMqa.20823@fx12.iad>
<87il9ndiz9.fsf@bsb.me.uk> <HJ7BM.25894$Wk53.19314@fx01.iad>
<20230810090521.27@kylheku.com> <yH8BM.430010$TCKc.359327@fx13.iad>
<20230810110112.359@kylheku.com> <28fee821-781d-4532-9c53-fb8756a000c0n@googlegroups.com>
<ub3nm7$haft$2@dont-email.me> <08e28be9-2867-46be-872c-86bc3418b908n@googlegroups.com>
<ub3veb$icj5$1@dont-email.me> <ac12cc42-c391-4628-9efa-91ac321e3852n@googlegroups.com>
<abb8c99c-ebfb-4cd4-8e65-0e22667354d8n@googlegroups.com> <d804a454-147d-470c-b1b5-6b23b1af0af5n@googlegroups.com>
<ub5j63$sqv6$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <01d69c9e-2b53-4912-93dc-c6d098ef3d3fn@googlegroups.com>
Subject: Re: you think rust may *DE*throne c?
From: profesor.fir@gmail.com (fir)
Injection-Date: Fri, 11 Aug 2023 15:28:32 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Fri, 11 Aug 2023 15:28 UTC

piątek, 11 sierpnia 2023 o 17:13:22 UTC+2 Bart napisał(a):
> On 11/08/2023 15:47, fir wrote:
> > piątek, 11 sierpnia 2023 o 16:28:55 UTC+2 fir napisał(a):
> >>> piątek, 11 sierpnia 2023 o 02:30:18 UTC+2 Bart napisał(a):
> >>>>
> >>>> Actually, as written, that 'header' variable is exported also, so you
> >>>> can directly access that, but I prefer to do it via a function.
> >>>>
> > the ide of kkeping this header as a string is not totally idiotic but its
> > not optimal (its c specific and thus sorta weird, but theorethically might b used as some additions of what things look like now - but sort athis way you could add whoel source to dll as a string too)
> >
> > also to remember are efficincy things - i realized it maybe clearer writing
> > on this swuare complexity that breakc computer down even for 1000 objects, and also those newline counts by fgets that took 300 ms:
> >
> > computers are still slow today.. reading 1 MB file or its part still takes about 1 ms
> > (as to rank and saing not precisisely ofc depending on machine but say so)
> > it is notable amount of time (as things stack)
> >
> > square algorithms breaks (begin to break) computers runtime in range 1k - 5k simple objects linear breaks (begin to break ) computer in range 1M simple objects... so when talking about runtime and fluid working the machines are still slow...and if you would add that headers, even if ram dont matter so much today
> > the time is imo still bottleneck imo
> >
> > still hope the rems would be faster maybe as it would be really nice to have 10x as fast as today - say 100 GB/s or 1 TB/s) at home (this /s is misleading ofc coz important is what you got a t milisecond not on second..so 100 GB/s is 100 MB/ms which is nice but not so much cosmic amount as for today)
> Your comment I first replied to was talking about DLLs, and getting rid
> of C headers.
>
> I assumed that was about headers needed to access libraries present in
> DLLs files.
>
> If talking about a new language however, and headers in general, then of
> course they can be eliminated.
>
> I haven't used headers (ie. separate declarations of shared functions
> etc) in my own languages for over a decade.
>
> But still, if I want to use a DLL that /someone else has written/, I
> need an interface to that library that I can then turn into bindings for
> my language.
>
> It is here, also, that binary, language-neutral, API information could
> be added to and accessed from a DLL file in the manner I suggested for C
> header info.
>
> Then an explicit file of API declarations, in whatever language, is not
> needed. Although something will be needed as docs so that you know how
> to use the library.

i wouldnt say i say on new languages i just say on dll's as they are -
they just contain symbol names , and they at least should contain yet calling convention and at least input argument sizes or something but more better
argument list and its types and prefereably even names, and yet preferably even new type definitions encoded , and even more info

it cant be c declarations, it must be language agnostic - but is no problem tod efine this, you simoply need to define lists of namens and enums (liek list of enums with calling convention, list of enums for predefinde types, like int32 int64 float double (and things liek that) (if float is used in ABI at alla as i dont remember if it is not all doubles) etc

better realize it cant be c source header strings couse it cant, it must be binary, enum based convention

its hovever needed so its kinda obvious to say it will be defined and used, maybe i will define it myself when i will be shipping furia compiler more (i got only about half of it written and as i got other things to do it will take me yet at least few years assuming nothing much bad heppen at all)

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

<905d2517-1fa9-4e0a-aaeb-2d35bd1cea9bn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=14&group=comp.lang.c#14

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:14f0:b0:63f:c0b9:e07a with SMTP id k16-20020a05621414f000b0063fc0b9e07amr32658qvw.13.1691768273322;
Fri, 11 Aug 2023 08:37:53 -0700 (PDT)
X-Received: by 2002:a17:902:c44c:b0:1bc:5182:1de2 with SMTP id
m12-20020a170902c44c00b001bc51821de2mr670754plm.1.1691768272836; Fri, 11 Aug
2023 08:37:52 -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: Fri, 11 Aug 2023 08:37:52 -0700 (PDT)
In-Reply-To: <01d69c9e-2b53-4912-93dc-c6d098ef3d3fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.154; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.154
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com> <p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk>
<uavpcf$3t64r$1@dont-email.me> <87bkffg6qz.fsf@bsb.me.uk> <ub1840$3q1k$1@dont-email.me>
<87zg2zej54.fsf@bsb.me.uk> <Hr6BM.359405$xMqa.20823@fx12.iad>
<87il9ndiz9.fsf@bsb.me.uk> <HJ7BM.25894$Wk53.19314@fx01.iad>
<20230810090521.27@kylheku.com> <yH8BM.430010$TCKc.359327@fx13.iad>
<20230810110112.359@kylheku.com> <28fee821-781d-4532-9c53-fb8756a000c0n@googlegroups.com>
<ub3nm7$haft$2@dont-email.me> <08e28be9-2867-46be-872c-86bc3418b908n@googlegroups.com>
<ub3veb$icj5$1@dont-email.me> <ac12cc42-c391-4628-9efa-91ac321e3852n@googlegroups.com>
<abb8c99c-ebfb-4cd4-8e65-0e22667354d8n@googlegroups.com> <d804a454-147d-470c-b1b5-6b23b1af0af5n@googlegroups.com>
<ub5j63$sqv6$1@dont-email.me> <01d69c9e-2b53-4912-93dc-c6d098ef3d3fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <905d2517-1fa9-4e0a-aaeb-2d35bd1cea9bn@googlegroups.com>
Subject: Re: you think rust may *DE*throne c?
From: profesor.fir@gmail.com (fir)
Injection-Date: Fri, 11 Aug 2023 15:37:53 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6448
 by: fir - Fri, 11 Aug 2023 15:37 UTC

piątek, 11 sierpnia 2023 o 17:28:41 UTC+2 fir napisał(a):
> piątek, 11 sierpnia 2023 o 17:13:22 UTC+2 Bart napisał(a):
> > On 11/08/2023 15:47, fir wrote:
> > > piątek, 11 sierpnia 2023 o 16:28:55 UTC+2 fir napisał(a):
> > >>> piątek, 11 sierpnia 2023 o 02:30:18 UTC+2 Bart napisał(a):
> > >>>>
> > >>>> Actually, as written, that 'header' variable is exported also, so you
> > >>>> can directly access that, but I prefer to do it via a function.
> > >>>>
> > > the ide of kkeping this header as a string is not totally idiotic but its
> > > not optimal (its c specific and thus sorta weird, but theorethically might b used as some additions of what things look like now - but sort athis way you could add whoel source to dll as a string too)
> > >
> > > also to remember are efficincy things - i realized it maybe clearer writing
> > > on this swuare complexity that breakc computer down even for 1000 objects, and also those newline counts by fgets that took 300 ms:
> > >
> > > computers are still slow today.. reading 1 MB file or its part still takes about 1 ms
> > > (as to rank and saing not precisisely ofc depending on machine but say so)
> > > it is notable amount of time (as things stack)
> > >
> > > square algorithms breaks (begin to break) computers runtime in range 1k - 5k simple objects linear breaks (begin to break ) computer in range 1M simple objects... so when talking about runtime and fluid working the machines are still slow...and if you would add that headers, even if ram dont matter so much today
> > > the time is imo still bottleneck imo
> > >
> > > still hope the rems would be faster maybe as it would be really nice to have 10x as fast as today - say 100 GB/s or 1 TB/s) at home (this /s is misleading ofc coz important is what you got a t milisecond not on second..so 100 GB/s is 100 MB/ms which is nice but not so much cosmic amount as for today)
> > Your comment I first replied to was talking about DLLs, and getting rid
> > of C headers.
> >
> > I assumed that was about headers needed to access libraries present in
> > DLLs files.
> >
> > If talking about a new language however, and headers in general, then of
> > course they can be eliminated.
> >
> > I haven't used headers (ie. separate declarations of shared functions
> > etc) in my own languages for over a decade.
> >
> > But still, if I want to use a DLL that /someone else has written/, I
> > need an interface to that library that I can then turn into bindings for
> > my language.
> >
> > It is here, also, that binary, language-neutral, API information could
> > be added to and accessed from a DLL file in the manner I suggested for C
> > header info.
> >
> > Then an explicit file of API declarations, in whatever language, is not
> > needed. Although something will be needed as docs so that you know how
> > to use the library.
> i wouldnt say i say on new languages i just say on dll's as they are -
> they just contain symbol names , and they at least should contain yet calling convention and at least input argument sizes or something but more better
> argument list and its types and prefereably even names, and yet preferably even new type definitions encoded , and even more info
>
> it cant be c declarations, it must be language agnostic - but is no problem tod efine this, you simoply need to define lists of namens and enums (liek list of enums with calling convention, list of enums for predefinde types, like int32 int64 float double (and things liek that) (if float is used in ABI at alla as i dont remember if it is not all doubles) etc
>

i think it could be also named "binary header block"

as it is kinde header buts its binary and dlls needs thet header block -
so its seen as header is stupid thing it needs to be something liek that in dlls, but on binary level, it also need to take some bytes - skipping it is kinda hard optimisation, but its needed for convenience of programmers and general information also decreasing amount of of errors etc

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

<hCsBM.562404$AsA.500972@fx18.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=15&group=comp.lang.c#15

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@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> <p_uAM.489417$mPI2.398490@fx15.iad> <e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me> <slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me> <ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me> <ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me> <BLqBM.109943$8_8a.102743@fx48.iad> <f14ccbd8-201f-4aea-9be3-64601766f044n@googlegroups.com>
Lines: 62
Message-ID: <hCsBM.562404$AsA.500972@fx18.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 11 Aug 2023 15:38:53 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 11 Aug 2023 15:38:53 GMT
X-Received-Bytes: 3386
 by: Scott Lurndal - Fri, 11 Aug 2023 15:38 UTC

Michael S <already5chosen@yahoo.com> writes:
>On Friday, August 11, 2023 at 4:33:47=E2=80=AFPM UTC+3, Scott Lurndal wrote=
>:
>> Bart <b...@freeuk.com> writes:=20
>> >On 11/08/2023 07:43, David Brown wrote:=20
>> > > On 09/08/2023 16:07, Bart wrote:=20
>> > >> On 09/08/2023 14:32, Richard Harnden wrote:=20
>> > >> > On 09/08/2023 13:32, Bart wrote:=20
>> > >> >> Yes, that is one reason that it is so complicated. You have to=20
>> >define=20
>> > >> >> set of dependences between modules (and you may need to do that=
>=20
>> > >> >> manually, so it can be error prone).=20
>> > >> >=20
>> > >> > $ gcc -MM *.c=20
>> > >>=20
>> > >> I have a small, 3-file project (one of Chris's) comprising files=20
>> > >> cipher.c, sha2.c, hmac.c=20
>> > >>=20
>> > >> gcc -MM cipher.c outputs:=20
>> > >>=20
>> > >> cipher.o: cipher.c hmac.c sha2.h=20
>> > >>=20
>> > >> I need to do -MM cipher.c hmac.c sha2.c for it to show:=20
>> > >>=20
>> > >> cipher.o: cipher.c hmac.h sha2.h=20
>> > >> hmac.o: hmac.c hmac.h sha2.h=20
>> > >> sha2.o: sha2.c sha2.h=20
>> > >>=20
>> > >> So I had to tell it the C files. I can't do *.c, as there are 259=20
>> > >> other .c files in the folder.=20
>> > >>=20
>> > >=20
>> > > There's this wonderful organisation technique for files called=20
>> > > "directories". They even exist in Windows.=20
>> > >=20
>> > > Put the files of a project in a directory. Delete the junk. Then you=
>=20
>> > > can find your files, and you can use "gcc -MM *.c". It even works if=
>=20
>> > > you have multiple different programs - it simply generates dependency=
>=20
>> > > information so you know which C files need re-compiled when headers a=
>re=20
>> > > changed.=20
>> > >=20
>> > > But of course when someone gives you help or answers your questions,=
>=20
>> > > you'd rather complain more.=20
>> > >=20
>> >=20
>> >So you're telling people exactly what they're allowed to have in their=
>=20
>> >folders and what they're not.
>> Perhaps it is time to simply stop responding to Bart when he continues=20
>> to make such silly statements.
>
>On this particular issue I fully agree with Bart.

Nobody is telling Bart "exactly what they're allowed to have in their
folders". That's just nonsense.

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

<OCsBM.562405$AsA.470376@fx18.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=16&group=comp.lang.c#16

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx18.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@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> <p_uAM.489417$mPI2.398490@fx15.iad> <e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me> <slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me> <ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me> <ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me> <BLqBM.109943$8_8a.102743@fx48.iad> <ub5gt5$sgug$1@dont-email.me>
Lines: 54
Message-ID: <OCsBM.562405$AsA.470376@fx18.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 11 Aug 2023 15:39:26 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 11 Aug 2023 15:39:26 GMT
X-Received-Bytes: 3086
 by: Scott Lurndal - Fri, 11 Aug 2023 15:39 UTC

Bart <bc@freeuk.com> writes:
>On 11/08/2023 14:32, Scott Lurndal wrote:
>> Bart <bc@freeuk.com> writes:
>>> On 11/08/2023 07:43, David Brown wrote:
>>>> On 09/08/2023 16:07, Bart wrote:
>>>>> On 09/08/2023 14:32, Richard Harnden wrote:
>>>>> > On 09/08/2023 13:32, Bart wrote:
>>>>> >> Yes, that is one reason that it is so complicated. You have to
>>> define
>>>>> >> set of dependences between modules (and you may need to do that
>>>>> >> manually, so it can be error prone).
>>>>> >
>>>>> > $ gcc -MM *.c
>>>>>
>>>>> I have a small, 3-file project (one of Chris's) comprising files
>>>>> cipher.c, sha2.c, hmac.c
>>>>>
>>>>> gcc -MM cipher.c outputs:
>>>>>
>>>>> cipher.o: cipher.c hmac.c sha2.h
>>>>>
>>>>> I need to do -MM cipher.c hmac.c sha2.c for it to show:
>>>>>
>>>>> cipher.o: cipher.c hmac.h sha2.h
>>>>> hmac.o: hmac.c hmac.h sha2.h
>>>>> sha2.o: sha2.c sha2.h
>>>>>
>>>>> So I had to tell it the C files. I can't do *.c, as there are 259
>>>>> other .c files in the folder.
>>>>>
>>>>
>>>> There's this wonderful organisation technique for files called
>>>> "directories". They even exist in Windows.
>>>>
>>>> Put the files of a project in a directory. Delete the junk. Then you
>>>> can find your files, and you can use "gcc -MM *.c". It even works if
>>>> you have multiple different programs - it simply generates dependency
>>>> information so you know which C files need re-compiled when headers are
>>>> changed.
>>>>
>>>> But of course when someone gives you help or answers your questions,
>>>> you'd rather complain more.
>>>>
>>>
>>> So you're telling people exactly what they're allowed to have in their
>>> folders and what they're not.
>>
>> Perhaps it is time to simply stop responding to Bart when he continues
>> to make such silly statements.
>
>What exactly is silly about it? Isn't that what is being said or not?

Nobody has told you what you're allowed to have in your directories.

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

<688936d6-28c6-4d9e-a80f-fc8c620f68a3n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=17&group=comp.lang.c#17

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:4b31:0:b0:635:e010:970e with SMTP id s17-20020ad44b31000000b00635e010970emr32837qvw.13.1691768792729;
Fri, 11 Aug 2023 08:46:32 -0700 (PDT)
X-Received: by 2002:a17:90b:a4f:b0:26b:1f32:dd9 with SMTP id
gw15-20020a17090b0a4f00b0026b1f320dd9mr453836pjb.1.1691768792469; Fri, 11 Aug
2023 08:46:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 11 Aug 2023 08:46:31 -0700 (PDT)
In-Reply-To: <905d2517-1fa9-4e0a-aaeb-2d35bd1cea9bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.154; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.154
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com> <p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk>
<uavpcf$3t64r$1@dont-email.me> <87bkffg6qz.fsf@bsb.me.uk> <ub1840$3q1k$1@dont-email.me>
<87zg2zej54.fsf@bsb.me.uk> <Hr6BM.359405$xMqa.20823@fx12.iad>
<87il9ndiz9.fsf@bsb.me.uk> <HJ7BM.25894$Wk53.19314@fx01.iad>
<20230810090521.27@kylheku.com> <yH8BM.430010$TCKc.359327@fx13.iad>
<20230810110112.359@kylheku.com> <28fee821-781d-4532-9c53-fb8756a000c0n@googlegroups.com>
<ub3nm7$haft$2@dont-email.me> <08e28be9-2867-46be-872c-86bc3418b908n@googlegroups.com>
<ub3veb$icj5$1@dont-email.me> <ac12cc42-c391-4628-9efa-91ac321e3852n@googlegroups.com>
<abb8c99c-ebfb-4cd4-8e65-0e22667354d8n@googlegroups.com> <d804a454-147d-470c-b1b5-6b23b1af0af5n@googlegroups.com>
<ub5j63$sqv6$1@dont-email.me> <01d69c9e-2b53-4912-93dc-c6d098ef3d3fn@googlegroups.com>
<905d2517-1fa9-4e0a-aaeb-2d35bd1cea9bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <688936d6-28c6-4d9e-a80f-fc8c620f68a3n@googlegroups.com>
Subject: Re: you think rust may *DE*throne c?
From: profesor.fir@gmail.com (fir)
Injection-Date: Fri, 11 Aug 2023 15:46:32 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Fri, 11 Aug 2023 15:46 UTC

piątek, 11 sierpnia 2023 o 17:38:03 UTC+2 fir napisał(a):
> >
> i think it could be also named "binary header block"
>
> as it is kinde header buts its binary and dlls needs thet header block -
> so its seen as header is stupid thing it needs to be something liek that in dlls, but on binary level, it also need to take some bytes - skipping it is kinda hard optimisation, but its needed for convenience of programmers and general information also decreasing amount of of errors etc

as far as i remembet in dlls there is also an option to skip list of names in dll
saving a space (say if dll kas few hunderds of symbols and each have on average 15 bytes it saves few kilobytes) and use calling by ordinals, i mean table
index - but fortunatelly most dlls dont use it afaik... as this would also be optimisation and obfuscation

thsi way i hope peopel would not skip binary header block too, having an option to delete header block and lefting only names or skiping both and lefting ordinals only

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

<ub5ng5$tdpe$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=19&group=comp.lang.c#19

  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: Fri, 11 Aug 2023 17:26:46 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ub5ng5$tdpe$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com>
<87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me>
<slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me>
<ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me>
<ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me>
<BLqBM.109943$8_8a.102743@fx48.iad> <ub5gt5$sgug$1@dont-email.me>
<OCsBM.562405$AsA.470376@fx18.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Aug 2023 16:26:45 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e57af83912fa92cd513fea0a1b729ed";
logging-data="964398"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lnTEuu9kA2PrUTsbBsxTSlEQPWl/snHI="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:SkAOZzBX//F7BbtTvNbx8LkCQyU=
In-Reply-To: <OCsBM.562405$AsA.470376@fx18.iad>
 by: Bart - Fri, 11 Aug 2023 16:26 UTC

On 11/08/2023 16:39, Scott Lurndal wrote:
> Bart <bc@freeuk.com> writes:
>> On 11/08/2023 14:32, Scott Lurndal wrote:

>>> Perhaps it is time to simply stop responding to Bart when he continues
>>> to make such silly statements.
>>
>> What exactly is silly about it? Isn't that what is being said or not?
>
> Nobody has told you what you're allowed to have in your directories.
>

So I must have misunderstood these comments:

RH: Then you have too many unrelated things in that directory.

BC: That happens.

SL: No, it doesn't. Except, perhaps to you.

DB: Put the files of a project in a directory. Delete the junk.
[following a sarcastic remark]

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

<ub5oio$tmpp$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=20&group=comp.lang.c#20

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: kalevi@kolttonen.fi (Kalevi Kolttonen)
Newsgroups: comp.lang.c
Subject: Re: you think rust may *DE*throne c?
Date: Fri, 11 Aug 2023 16:45:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 43
Sender: <untosten@0.0.0.0>
Message-ID: <ub5oio$tmpp$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com> <e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me> <slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me> <ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me> <ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me> <BLqBM.109943$8_8a.102743@fx48.iad> <f14ccbd8-201f-4aea-9be3-64601766f044n@googlegroups.com> <hCsBM.562404$AsA.500972@fx18.iad>
Injection-Date: Fri, 11 Aug 2023 16:45:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5ce9f7dcc230b17636adba8440509e38";
logging-data="973625"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18+Bvx6uZ1quTsvAsAQTp44mVxu1/DOjFY="
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.4.9-200.fc38.x86_64 (x86_64))
Cancel-Lock: sha1:Qw5neYatMyVbBRVa9nGIGQs9cNo=
 by: Kalevi Kolttonen - Fri, 11 Aug 2023 16:45 UTC

Scott Lurndal <scott@slp53.sl.home> wrote:
> Nobody is telling Bart "exactly what they're allowed
> to have in their folders". That's just nonsense.

Agreed. It is total nonsense, because nobody has made
such claims.

This thread is so long that I may have lost track
already, but I suppose Bart does not want to
create subdirectories. Instead he has a single
directory, perhaps called "c" and all his not so
important small C programs get dumped there.

So his main directory contents probably look something
like this:

do-one-thing.c
do-another-thing.c
do-third-thing.c
[ and so on ]

I do not undestand why Bart cannot simply do:

mkdir do-one-thing do-another-thing do-third-thing
mv do-one-thing.c do-one-thing
mv do-another-thing.c do-another-thing
mv do-third-thing.c do-third-thing
[ and so on ]

So the directory hierarchy would be:

c/do-one-thing
c/do-another-thing
c/do-third-thing

and all the C programs would be contained in self-documenting
subdirectories.

For some unknown reason Bart wants to keep all the unrelated
C files in the one directory. Have I undestood this right?

br,
KK

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

<5a5cf9e2-d77e-4982-be19-027f10f99d8dn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=21&group=comp.lang.c#21

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:2285:b0:40f:91be:b62a with SMTP id ay5-20020a05622a228500b0040f91beb62amr122481qtb.6.1691772756546;
Fri, 11 Aug 2023 09:52:36 -0700 (PDT)
X-Received: by 2002:a05:6a00:2d9e:b0:677:c9da:14b6 with SMTP id
fb30-20020a056a002d9e00b00677c9da14b6mr1131464pfb.4.1691772756300; Fri, 11
Aug 2023 09:52:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Fri, 11 Aug 2023 09:52:35 -0700 (PDT)
In-Reply-To: <d804a454-147d-470c-b1b5-6b23b1af0af5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.4; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.4
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com> <p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk>
<uavpcf$3t64r$1@dont-email.me> <87bkffg6qz.fsf@bsb.me.uk> <ub1840$3q1k$1@dont-email.me>
<87zg2zej54.fsf@bsb.me.uk> <Hr6BM.359405$xMqa.20823@fx12.iad>
<87il9ndiz9.fsf@bsb.me.uk> <HJ7BM.25894$Wk53.19314@fx01.iad>
<20230810090521.27@kylheku.com> <yH8BM.430010$TCKc.359327@fx13.iad>
<20230810110112.359@kylheku.com> <28fee821-781d-4532-9c53-fb8756a000c0n@googlegroups.com>
<ub3nm7$haft$2@dont-email.me> <08e28be9-2867-46be-872c-86bc3418b908n@googlegroups.com>
<ub3veb$icj5$1@dont-email.me> <ac12cc42-c391-4628-9efa-91ac321e3852n@googlegroups.com>
<abb8c99c-ebfb-4cd4-8e65-0e22667354d8n@googlegroups.com> <d804a454-147d-470c-b1b5-6b23b1af0af5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5a5cf9e2-d77e-4982-be19-027f10f99d8dn@googlegroups.com>
Subject: Re: you think rust may *DE*throne c?
From: profesor.fir@gmail.com (fir)
Injection-Date: Fri, 11 Aug 2023 16:52:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Fri, 11 Aug 2023 16:52 UTC

piątek, 11 sierpnia 2023 o 16:47:48 UTC+2 fir napisał(a):
> piątek, 11 sierpnia 2023 o 16:28:55 UTC+2 fir napisał(a):
> > > piątek, 11 sierpnia 2023 o 02:30:18 UTC+2 Bart napisał(a):
> > > >
> > > > Actually, as written, that 'header' variable is exported also, so you
> > > > can directly access that, but I prefer to do it via a function.
> > > >
> the idea of keeping this header as a string is not totally idiotic but its
> not optimal (its c specific and thus sorta weird, but theorethically might be used as some additions of what things look like now - but sort athis way you could add whole source to dll as a string too)
>
i could also heep not only a source as a string but a whoel compiler inside, in todays times when dlls like about 1.5MB typically the full compiler + assembler would be in natural form 0.5 MB dll (full) but i think the compiler+assembler can be optimised for size to not take more than 200 KB still being in quality

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

<qItBM.59031$m8Ke.4230@fx08.iad>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=22&group=comp.lang.c#22

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx08.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: scott@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> <e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me> <slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me> <ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me> <ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me> <BLqBM.109943$8_8a.102743@fx48.iad> <ub5gt5$sgug$1@dont-email.me> <OCsBM.562405$AsA.470376@fx18.iad> <ub5ng5$tdpe$1@dont-email.me>
Lines: 26
Message-ID: <qItBM.59031$m8Ke.4230@fx08.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Fri, 11 Aug 2023 16:53:42 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Fri, 11 Aug 2023 16:53:42 GMT
X-Received-Bytes: 1834
 by: Scott Lurndal - Fri, 11 Aug 2023 16:53 UTC

Bart <bc@freeuk.com> writes:
>On 11/08/2023 16:39, Scott Lurndal wrote:
>> Bart <bc@freeuk.com> writes:
>>> On 11/08/2023 14:32, Scott Lurndal wrote:
>
>>>> Perhaps it is time to simply stop responding to Bart when he continues
>>>> to make such silly statements.
>>>
>>> What exactly is silly about it? Isn't that what is being said or not?
>>
>> Nobody has told you what you're allowed to have in your directories.
>>
>
>So I must have misunderstood these comments:

Yes, you did. As always.

>
>RH: Then you have too many unrelated things in that directory.
>
>BC: That happens.
>
>SL: No, it doesn't. Except, perhaps to you.
>
>DB: Put the files of a project in a directory. Delete the junk.

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

<ub5qb0$tvfm$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=23&group=comp.lang.c#23

  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: Fri, 11 Aug 2023 18:15:12 +0100
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <ub5qb0$tvfm$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com>
<87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me>
<slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me>
<ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me>
<ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me>
<BLqBM.109943$8_8a.102743@fx48.iad> <ub5gt5$sgug$1@dont-email.me>
<OCsBM.562405$AsA.470376@fx18.iad> <ub5ng5$tdpe$1@dont-email.me>
<qItBM.59031$m8Ke.4230@fx08.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Aug 2023 17:15:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e57af83912fa92cd513fea0a1b729ed";
logging-data="982518"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8Eb374oC/GhFuxEs1WXuInuVBPgGSEC0="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:H/wOHZ9nzQvdJePpOaurGxOnPsc=
In-Reply-To: <qItBM.59031$m8Ke.4230@fx08.iad>
 by: Bart - Fri, 11 Aug 2023 17:15 UTC

On 11/08/2023 17:53, Scott Lurndal wrote:
> Bart <bc@freeuk.com> writes:
>> On 11/08/2023 16:39, Scott Lurndal wrote:
>>> Bart <bc@freeuk.com> writes:
>>>> On 11/08/2023 14:32, Scott Lurndal wrote:
>>
>>>>> Perhaps it is time to simply stop responding to Bart when he continues
>>>>> to make such silly statements.
>>>>
>>>> What exactly is silly about it? Isn't that what is being said or not?
>>>
>>> Nobody has told you what you're allowed to have in your directories.
>>>
>>
>> So I must have misunderstood these comments:
>
>
> Yes, you did. As always.

So what do they mean?

Can I still usefully do gcc -MM *.c if I ignore that advice?

>>
>> RH: Then you have too many unrelated things in that directory.
>>
>> BC: That happens.
>>
>> SL: No, it doesn't. Except, perhaps to you.
>>
>> DB: Put the files of a project in a directory. Delete the junk.

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

<f7db79d7-23cf-45f2-8bf8-74436cd07054n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=24&group=comp.lang.c#24

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:5b91:0:b0:403:a6db:42ad with SMTP id a17-20020ac85b91000000b00403a6db42admr38113qta.9.1691774453450;
Fri, 11 Aug 2023 10:20:53 -0700 (PDT)
X-Received: by 2002:a05:6a00:18a3:b0:686:2ad5:d132 with SMTP id
x35-20020a056a0018a300b006862ad5d132mr995635pfh.5.1691774453178; Fri, 11 Aug
2023 10:20:53 -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: Fri, 11 Aug 2023 10:20:52 -0700 (PDT)
In-Reply-To: <ub5oio$tmpp$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.244; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.244
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com> <87zg31ezu5.fsf@bsb.me.uk>
<uavpcf$3t64r$1@dont-email.me> <slrnud6spf.f45.dan@djph.net>
<ub010k$3um69$1@dont-email.me> <ub04i1$3v4p5$2@dont-email.me>
<ub06ih$3vdv6$1@dont-email.me> <ub4lb2$olm3$1@dont-email.me>
<ub51sl$qadl$1@dont-email.me> <BLqBM.109943$8_8a.102743@fx48.iad>
<f14ccbd8-201f-4aea-9be3-64601766f044n@googlegroups.com> <hCsBM.562404$AsA.500972@fx18.iad>
<ub5oio$tmpp$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f7db79d7-23cf-45f2-8bf8-74436cd07054n@googlegroups.com>
Subject: Re: you think rust may *DE*throne c?
From: profesor.fir@gmail.com (fir)
Injection-Date: Fri, 11 Aug 2023 17:20:53 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4094
 by: fir - Fri, 11 Aug 2023 17:20 UTC

piątek, 11 sierpnia 2023 o 18:45:26 UTC+2 Kalevi Kolttonen napisał(a):
> Scott Lurndal <sc...@slp53.sl.home> wrote:
> > Nobody is telling Bart "exactly what they're allowed
> > to have in their folders". That's just nonsense.
> Agreed. It is total nonsense, because nobody has made
> such claims.
>
> This thread is so long that I may have lost track
> already, but I suppose Bart does not want to
> create subdirectories. Instead he has a single
> directory, perhaps called "c" and all his not so
> important small C programs get dumped there.
>
> So his main directory contents probably look something
> like this:
>
> do-one-thing.c
> do-another-thing.c
> do-third-thing.c
> [ and so on ]
>
> I do not undestand why Bart cannot simply do:
>
> mkdir do-one-thing do-another-thing do-third-thing
> mv do-one-thing.c do-one-thing
> mv do-another-thing.c do-another-thing
> mv do-third-thing.c do-third-thing
> [ and so on ]
>
> So the directory hierarchy would be:
>
> c/do-one-thing
> c/do-another-thing
> c/do-third-thing
>
> and all the C programs would be contained in self-documenting
> subdirectories.
>
> For some unknown reason Bart wants to keep all the unrelated
> C files in the one directory. Have I undestood this right?
>
> br,
> KK

bartc seem to be a fan of parctical simplicity and he is totally right in that aspect imo (not reading into that particular case as i got other things to do)
i hovever keep code in subdirectories, but even thiose subdirectories you could have tens..
this layer of managing source is overcomplicated as it should as it was already talked... im a fan of totakl commander and imo given.c source probably should compile to dll simply if you press enter on it, and compile to exe also if you press enter on it and it have "main" method

that should be a rule so no weird build system and trash

(this makes a problem you cant divide such c files on parts having large files
becouse if you would divide it couldnt compile unles having reference to its other parts (two-direction references, part should know the container) but there is
a way of dealing with this, else adding thsi reference or ignore or eventually
rename such included partswith other extension, or other way eventually also compile toi some .o partial format

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

<ub5rgt$u502$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=25&group=comp.lang.c#25

  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: Fri, 11 Aug 2023 18:35:25 +0100
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <ub5rgt$u502$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com>
<87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me>
<slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me>
<ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me>
<ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me>
<BLqBM.109943$8_8a.102743@fx48.iad>
<f14ccbd8-201f-4aea-9be3-64601766f044n@googlegroups.com>
<hCsBM.562404$AsA.500972@fx18.iad> <ub5oio$tmpp$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Aug 2023 17:35:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e57af83912fa92cd513fea0a1b729ed";
logging-data="988162"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wQNb6CJclyShehZVDwdu5OEx48WKq9ao="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:o+K74wIIl1dvypREdf0PVo+hPHc=
In-Reply-To: <ub5oio$tmpp$1@dont-email.me>
 by: Bart - Fri, 11 Aug 2023 17:35 UTC

On 11/08/2023 17:45, Kalevi Kolttonen wrote:
> Scott Lurndal <scott@slp53.sl.home> wrote:
>> Nobody is telling Bart "exactly what they're allowed
>> to have in their folders". That's just nonsense.
>
> Agreed. It is total nonsense, because nobody has made
> such claims.
>
> This thread is so long that I may have lost track
> already, but I suppose Bart does not want to
> create subdirectories. Instead he has a single
> directory, perhaps called "c" and all his not so
> important small C programs get dumped there.

Yes, exactly.

Actual applications get their own directory. But generally I don't use C
for those. I use my private language with a module system which can
discover all the modules of a project without needing to segregate
project-related files from anything else.

It mainly happens with C applications that have been downloaded, and
there, ones that have .c and .h files scattered over a dozen nested
directories are a complete PITA. Given that the supplied build process
on Windows rarely works so I end up doing the chasing around.

Of course, any C programs *I* supply are designed to be as easy to build
as `hello.c`. And on Windows that is achievable:

c:\qx>gcc qc.c -oqq
c:\qx>qq hello
Hello, World! 11-Aug-2023 18:24:54

qc.c is a 43Kloc C source file implementing an interpreter (transpiled
from non-C source code in 30+ modules).

On Linux, it would be something like this:

gcc qc.c -oqq -lm -ldl -fno-builtin
./qq hello

Now, please tell me what is the point of creating a subdirectory to
contain only the one file. Or indeed, what is the point of using 'make'
in this case.

All that's needed is a compiler, and the one source file; three as we
all know is a crowd.

> For some unknown reason Bart wants to keep all the unrelated
> C files in the one directory. Have I undestood this right?

I use folders to represent different projects. I don't take that
structuring to the extreme as many do. I've seen Github projects use a
dozen or two directories, each one has only one file, and the total,
initially imposing application turns out to be a 300-line toy program.

It's just 10 times harder to study, understand and build.

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

<ub5s66$u502$2@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=26&group=comp.lang.c#26

  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: Fri, 11 Aug 2023 18:46:47 +0100
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <ub5s66$u502$2@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com>
<87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me>
<slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me>
<ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me>
<ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me>
<BLqBM.109943$8_8a.102743@fx48.iad> <ub5gt5$sgug$1@dont-email.me>
<OCsBM.562405$AsA.470376@fx18.iad> <ub5ng5$tdpe$1@dont-email.me>
<qItBM.59031$m8Ke.4230@fx08.iad> <ub5qb0$tvfm$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 11 Aug 2023 17:46:46 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2e57af83912fa92cd513fea0a1b729ed";
logging-data="988162"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bp08EyH/Pq8Bj2H42fThNHSFqZy5MZ+A="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.14.0
Cancel-Lock: sha1:GXaOz2TrsGspGXMRhANZS/UTiNI=
In-Reply-To: <ub5qb0$tvfm$1@dont-email.me>
 by: Bart - Fri, 11 Aug 2023 17:46 UTC

On 11/08/2023 18:15, Bart wrote:
> On 11/08/2023 17:53, Scott Lurndal wrote:
>> Bart <bc@freeuk.com> writes:
>>> On 11/08/2023 16:39, Scott Lurndal wrote:
>>>> Bart <bc@freeuk.com> writes:
>>>>> On 11/08/2023 14:32, Scott Lurndal wrote:
>>>
>>>>>> Perhaps it is time to simply stop responding to Bart when he
>>>>>> continues
>>>>>> to make such silly statements.
>>>>>
>>>>> What exactly is silly about it? Isn't that what is being said or not?
>>>>
>>>> Nobody has told you what you're allowed to have in your directories.
>>>>
>>>
>>> So I must have misunderstood these comments:
>>
>>
>> Yes, you did.  As always.
>
> So what do they mean?
>
> Can I still usefully do gcc -MM *.c if I ignore that advice?
>

BTW no one has commented on my own build scheme for C that I've
mentioned a few times.

So I have a program 'pidemo.c' which if I try and build it like this:

bcc pidemo

it reports some undefined functions. It needs a library which exists in
one or more extra .c files. Which ones? Well, why not let it discover
them for itself:

c:\c>bcc -auto pidemo
1 Compiling pidemo.c to pidemo.asm (Pass 1)
* 2 Compiling bignum.c to bignum.asm (Pass 2)
Assembling to pidemo.exe

So you can takes your 'gcc -MM *.c', which requires hygienically clean
directories, and shove it wherever the hell you like.

My demo was run inside that folder with 260 assorted 'junk' C files. Magic!

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

<ub5vh9$un2j$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=28&group=comp.lang.c#28

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: richard.nospam@gmail.com (Richard Harnden)
Newsgroups: comp.lang.c
Subject: Re: you think rust may *DE*throne c?
Date: Fri, 11 Aug 2023 19:43:53 +0100
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <ub5vh9$un2j$1@dont-email.me>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<uatr2m$3fla4$1@dont-email.me>
<909acf23-ef0e-44c7-9ebf-89846e50e871n@googlegroups.com>
<p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com>
<87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me>
<slrnud6spf.f45.dan@djph.net> <ub010k$3um69$1@dont-email.me>
<ub04i1$3v4p5$2@dont-email.me> <ub06ih$3vdv6$1@dont-email.me>
<ub4lb2$olm3$1@dont-email.me> <ub51sl$qadl$1@dont-email.me>
<BLqBM.109943$8_8a.102743@fx48.iad>
Reply-To: nospam.harnden@gmail.com
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 11 Aug 2023 18:43:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f064053cde5ca5ff2b7f2ea1c43203f7";
logging-data="1006675"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19P16ERGoXGskoMv94bEfr9bPTOMnEj5uo="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.14.0
Cancel-Lock: sha1:HKenmGEM6WEIs+K6XPBF3P7mz9Q=
In-Reply-To: <BLqBM.109943$8_8a.102743@fx48.iad>
 by: Richard Harnden - Fri, 11 Aug 2023 18:43 UTC

On 11/08/2023 14:32, Scott Lurndal wrote:
> Bart <bc@freeuk.com> writes:
>> On 11/08/2023 07:43, David Brown wrote:
>>> On 09/08/2023 16:07, Bart wrote:
>>>> On 09/08/2023 14:32, Richard Harnden wrote:
>>>> > On 09/08/2023 13:32, Bart wrote:
>>>> >> Yes, that is one reason that it is so complicated. You have to
>> define
>>>> >> set of dependences between modules (and you may need to do that
>>>> >> manually, so it can be error prone).
>>>> >
>>>> > $ gcc -MM *.c
>>>>
>>>> I have a small, 3-file project (one of Chris's) comprising files
>>>> cipher.c, sha2.c, hmac.c
>>>>
>>>> gcc -MM cipher.c outputs:
>>>>
>>>> cipher.o: cipher.c hmac.c sha2.h
>>>>
>>>> I need to do -MM cipher.c hmac.c sha2.c for it to show:
>>>>
>>>> cipher.o: cipher.c hmac.h sha2.h
>>>> hmac.o: hmac.c hmac.h sha2.h
>>>> sha2.o: sha2.c sha2.h
>>>>
>>>> So I had to tell it the C files. I can't do *.c, as there are 259
>>>> other .c files in the folder.
>>>>
>>>
>>> There's this wonderful organisation technique for files called
>>> "directories". They even exist in Windows.
>>>
>>> Put the files of a project in a directory. Delete the junk. Then you
>>> can find your files, and you can use "gcc -MM *.c". It even works if
>>> you have multiple different programs - it simply generates dependency
>>> information so you know which C files need re-compiled when headers are
>>> changed.
>>>
>>> But of course when someone gives you help or answers your questions,
>>> you'd rather complain more.
>>>
>>
>> So you're telling people exactly what they're allowed to have in their
>> folders and what they're not.
>
> Perhaps it is time to simply stop responding to Bart when he continues
> to make such silly statements.

I think he's being wrong on purpose. Or just for effect.

If I tar xvzf project-version.tgz,
I expect it to go into ./project-version

If I git clone project,
I expect it to go into ./project

To have everything end up in once directory takes effort.

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

<20230811122917.667@kylheku.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=29&group=comp.lang.c#29

  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-4973@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: you think rust may *DE*throne c?
Date: Fri, 11 Aug 2023 19:41:26 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <20230811122917.667@kylheku.com>
References: <ebb9e01a-6369-4629-8b38-11d28df63693n@googlegroups.com>
<p_uAM.489417$mPI2.398490@fx15.iad>
<e5d7b49e-3472-4b70-8c52-d21243725d15n@googlegroups.com>
<87zg31ezu5.fsf@bsb.me.uk> <uavpcf$3t64r$1@dont-email.me>
<87bkffg6qz.fsf@bsb.me.uk> <ub1840$3q1k$1@dont-email.me>
<87zg2zej54.fsf@bsb.me.uk> <Hr6BM.359405$xMqa.20823@fx12.iad>
<87il9ndiz9.fsf@bsb.me.uk> <HJ7BM.25894$Wk53.19314@fx01.iad>
<20230810090521.27@kylheku.com> <UKVPuuMp3KUo8mPWS@bongo-ra.co>
<20230810230301.714@kylheku.com> <2KqBM.109942$8_8a.102233@fx48.iad>
Injection-Date: Fri, 11 Aug 2023 19:41:26 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f5c92b33059ba4d876d949c7c374bed5";
logging-data="1026940"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++pjUGGEiRtoXRKhlt0So9cVGzJ8+WNaI="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:l19EhB48l57SYGpkpkqVIRzJ8Tw=
 by: Kaz Kylheku - Fri, 11 Aug 2023 19:41 UTC

On 2023-08-11, Scott Lurndal <scott@slp53.sl.home> wrote:
> Kaz Kylheku <864-117-4973@kylheku.com> writes:
>>On 2023-08-11, Spiros Bousbouras <spibou@gmail.com> wrote:
>>> On Thu, 10 Aug 2023 16:15:32 -0000 (UTC)
>>> Kaz Kylheku <864-117-4973@kylheku.com> wrote:
>>>> What we could have is that an executable just dynamically links to
>>>> functions in these libraries, and the system automatically finds them at
>>>> load time, without the executable having to specify which libraries. >>>
>>> And how is your scheme different than how it already works in the Unix
>>> world ?
>>
>>How it differs is that the executable has to nominate the specific
>>libraries by indicating the library, which came in via the -l option,
>>and then look for specific symbols from specific libraries that it has
>>attached.
>>
>>Under the hood, the semantics is much like dlopen() of specific
>>liraries to obtain a handle and then doing dlsym(handle, "name")
>>to look for specific names from specific libs.
>>
>>Imagine it could specify just symbols, without specifying where
>>they come from; that's a big difference.
>
> Would this not require that no symbol be present in more than
> one library, i.e. that there is a single symbol namespace across the
> entire system?
>
> That would seem to be a non-starter.

I sort of addressed that in the parts that were snipped above.
We also have the problem that multiple versions of the same library
can exist (or multiple version nodes within the same library).

There would have to be some mechanism to bind the visible,
simple symbols to unique identities under the hood.

E.g the <stdio.h> header could have some magic so that
when you include it and call puts, a complex symbolic reference
is generated under the hood and imbued into the resulting
executable.

Insert other handwaving as necessary.

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

Pages:123456789101112131415161718192021222324252627282930313233343536373839
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor