Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Ahead warp factor 1" -- Captain Kirk


devel / comp.lang.c / Re: University Challenge

SubjectAuthor
* University Challengemuta...@gmail.com
+* Re: University ChallengeScott Lurndal
|`- Re: University Challengemuta...@gmail.com
+* Re: University ChallengeBen Bacarisse
|`* Re: University Challengemuta...@gmail.com
| +* Re: University ChallengeAlan Mackenzie
| |`- Re: University Challengemuta...@gmail.com
| +- Re: University ChallengeBen Bacarisse
| `* Re: University ChallengeTony Oliver
|  `* Re: University Challengemuta...@gmail.com
|   `* Re: University ChallengeDavid Brown
|    +* Re: University Challengemuta...@gmail.com
|    |`* Re: University ChallengeDavid Brown
|    | `* Re: University Challengemuta...@gmail.com
|    |  +* Re: University Challengemuta...@gmail.com
|    |  |`* Re: University ChallengeBart
|    |  | `* Re: University ChallengeBart
|    |  |  +- Re: University Challengemuta...@gmail.com
|    |  |  `* Re: University Challengemuta...@gmail.com
|    |  |   +- Re: University Challengemuta...@gmail.com
|    |  |   `* Re: University ChallengeBart
|    |  |    +- Re: University Challengemuta...@gmail.com
|    |  |    +- Re: University Challengemuta...@gmail.com
|    |  |    `- Re: University ChallengeTim Rentsch
|    |  `* Re: University ChallengeDavid Brown
|    |   `* Re: University Challengemuta...@gmail.com
|    |    +* Re: University ChallengeBart
|    |    |`- Re: University Challengemuta...@gmail.com
|    |    `* Re: University ChallengeDavid Brown
|    |     +* Re: University Challengemuta...@gmail.com
|    |     |`* Re: University ChallengeBart
|    |     | `* Re: University ChallengeMalcolm McLean
|    |     |  `* Re: University ChallengeBart
|    |     |   `* Re: University Challengemuta...@gmail.com
|    |     |    `* Re: University ChallengeKaz Kylheku
|    |     |     `* Re: University Challengemuta...@gmail.com
|    |     |      +* Re: University ChallengeKaz Kylheku
|    |     |      |`* Re: University Challengemuta...@gmail.com
|    |     |      | `- Re: University ChallengeKeith Thompson
|    |     |      `* Re: University ChallengeMateusz Viste
|    |     |       `* Re: University ChallengeGuillaume
|    |     |        `- Re: University ChallengeMateusz Viste
|    |     `- Re: University ChallengeMalcolm McLean
|    `- Re: University ChallengeScott Lurndal
+* Re: University ChallengeKaz Kylheku
|+- Re: University ChallengeScott Lurndal
|`* Re: University Challengemuta...@gmail.com
| `* Re: University ChallengeMateusz Viste
|  `* Re: University Challengemuta...@gmail.com
|   `* Re: University ChallengeMateusz Viste
|    `- Re: University Challengemuta...@gmail.com
`- Re: University Challengemuta...@gmail.com

Pages:123
Re: University Challenge

<a8b69a99-83ab-4238-91aa-3b542f7cd72bn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:24f:b0:2e1:d658:a595 with SMTP id c15-20020a05622a024f00b002e1d658a595mr18312411qtx.657.1647911577606;
Mon, 21 Mar 2022 18:12:57 -0700 (PDT)
X-Received: by 2002:ac8:5bc7:0:b0:2e1:ecde:e1e6 with SMTP id
b7-20020ac85bc7000000b002e1ecdee1e6mr18545091qtb.529.1647911577469; Mon, 21
Mar 2022 18:12:57 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 21 Mar 2022 18:12:57 -0700 (PDT)
In-Reply-To: <fc7f3299-f1b3-4152-99d1-22b912698b05n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk> <532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com> <50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me> <ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me> <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<f2dc7b0f-23d4-4dce-8995-0bd888bbcc20n@googlegroups.com> <t1b18u$vvd$1@dont-email.me>
<t1b2v3$4vf$1@dont-email.me> <fc7f3299-f1b3-4152-99d1-22b912698b05n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a8b69a99-83ab-4238-91aa-3b542f7cd72bn@googlegroups.com>
Subject: Re: University Challenge
From: mutazi...@gmail.com (muta...@gmail.com)
Injection-Date: Tue, 22 Mar 2022 01:12:57 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 19
 by: muta...@gmail.com - Tue, 22 Mar 2022 01:12 UTC

On Tuesday, March 22, 2022 at 12:00:06 PM UTC+11, muta...@gmail.com wrote:

> > This is for a project that is 20 .h/.c files, some 6000 lines in total;
> > not a big project, and the self-hosting comment gives the impression
> > that it will build with pretty much any compiler as most support a
> > bigger subset.

> Yes, if you do:
>
> pdmake -f makefile.w32
> in \devel\subc\src
> it will build with gccwin (included in the full PDOS/386 distribution) instead.

A caveat.

I found that I needed to compile with "char" being
unsigned for SubC to work properly after being compiled with
gccwin.

BFN. Paul.

Re: University Challenge

<t1ba1p$6kj$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Tue, 22 Mar 2022 01:50:48 +0000
Organization: A noiseless patient Spider
Lines: 82
Message-ID: <t1ba1p$6kj$1@dont-email.me>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<f2dc7b0f-23d4-4dce-8995-0bd888bbcc20n@googlegroups.com>
<t1b18u$vvd$1@dont-email.me> <t1b2v3$4vf$1@dont-email.me>
<fc7f3299-f1b3-4152-99d1-22b912698b05n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 22 Mar 2022 01:50:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="edb63c1c8fffb3c5c2244191570e5564";
logging-data="6803"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19jyZZ5BBdzmvidsIzTkT5/FGNWNf5MI18="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:cQ8acdChSsyu3x5oUyAOAKlapro=
In-Reply-To: <fc7f3299-f1b3-4152-99d1-22b912698b05n@googlegroups.com>
 by: Bart - Tue, 22 Mar 2022 01:50 UTC

On 22/03/2022 00:59, muta...@gmail.com wrote:
> On Tuesday, March 22, 2022 at 10:50:09 AM UTC+11, Bart wrote:
>

> I have different instructions for Windows, but I haven''t
> written them down.
>
> Add \dos (which contains only Windows executables,
> almost all dependent on just msvcrt.dll but some depend
> on kernel32.dll instead) to your path and then go:
>
> cd \devel\world
> pdmake -f worldw2.mak
>
>> "The Windows version of SubC requires the MinGW infrastructure,
>> but does not use the GNU libc. To build the compiler, the MSYS
>> environment of MinGW is needed."
>
> I have replacement instructions, also not written down:
>
> Go:
>
> cd \devel\subc\src
> pdmake -f makefile.p32
>
>> "* DO NOT use "make". It will probably not work. Use the
>> WINBUILD.BAT script instead."
>
> This is not required.
>
>> Too right! And WINBUILD still needs that MSYS stuff.
>
> This is not required.
>
>> All the docs including for DOS have long lists of things imported from
>> Unix, and in fact you have to cross-compile from Unix.
>
> To compile for DOS run sccdos.exe instead.
>
>> These aren't the dependency problems you need in your post-apocalyptic
>> scenario!
>
> If you just boot the UC disk and go through the readme
> files, none of those dependencies arise.
>
>> This is for a project that is 20 .h/.c files, some 6000 lines in total;
>> not a big project, and the self-hosting comment gives the impression
>> that it will build with pretty much any compiler as most support a
>> bigger subset.
>
> Yes, if you do:
>
> pdmake -f makefile.w32
> in \devel\subc\src
> it will build with gccwin (included in the full PDOS/386 distribution) instead.

I don't believe in unnecessary tools. This is a C program, and all it
should need is a C compiler (actually I was trying mine).

The first obstacle is that some header files are not present: cg.c/cg.h,
but these can to copied from elsewhere via manual configuration.

The next is that these macros are not defined anywhere (maybe they're
D-macros?); I've just given them dummy values:

#define ASCMD "AAA"
#define LDCMD "LLL"
#define SYSLIBC "SSS"
#define OS "OOO"

With that, it was able to compile hello.c to hello.s, but failed on
trying to invoke an assembler AAA, unsurprisingly.

But it shows that even if `make` is dispensed with, it still needs a
separate assembler and linker are needed.

(Tiny C is a self-contained C99 compiler, much better suited for your
purpose, and it's only twice as large as subc.exe, but then subc.exe
needs those extra components.

However it probably won't support your desired targets.)

Re: University Challenge

<a8758537-4c9f-4704-8538-dd08443e69c3n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:1c8e:b0:432:4f21:aedb with SMTP id ib14-20020a0562141c8e00b004324f21aedbmr17826581qvb.74.1647914618710;
Mon, 21 Mar 2022 19:03:38 -0700 (PDT)
X-Received: by 2002:a05:622a:185:b0:2e1:a9a1:93d with SMTP id
s5-20020a05622a018500b002e1a9a1093dmr18351907qtw.51.1647914618571; Mon, 21
Mar 2022 19:03:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 21 Mar 2022 19:03:38 -0700 (PDT)
In-Reply-To: <t1ba1p$6kj$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk> <532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com> <50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me> <ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me> <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<f2dc7b0f-23d4-4dce-8995-0bd888bbcc20n@googlegroups.com> <t1b18u$vvd$1@dont-email.me>
<t1b2v3$4vf$1@dont-email.me> <fc7f3299-f1b3-4152-99d1-22b912698b05n@googlegroups.com>
<t1ba1p$6kj$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a8758537-4c9f-4704-8538-dd08443e69c3n@googlegroups.com>
Subject: Re: University Challenge
From: mutazi...@gmail.com (muta...@gmail.com)
Injection-Date: Tue, 22 Mar 2022 02:03:38 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 36
 by: muta...@gmail.com - Tue, 22 Mar 2022 02:03 UTC

On Tuesday, March 22, 2022 at 12:51:02 PM UTC+11, Bart wrote:

> I don't believe in unnecessary tools. This is a C program, and all it
> should need is a C compiler (actually I was trying mine).
>
> The first obstacle is that some header files are not present: cg.c/cg.h,
> but these can to copied from elsewhere via manual configuration.
>
> The next is that these macros are not defined anywhere (maybe they're
> D-macros?); I've just given them dummy values:
>
> #define ASCMD "AAA"
> #define LDCMD "LLL"
> #define SYSLIBC "SSS"
> #define OS "OOO"
>
> With that, it was able to compile hello.c to hello.s, but failed on
> trying to invoke an assembler AAA, unsurprisingly.

The source I provide in \devel\subc\src has all the defines
ready for Windows.

> But it shows that even if `make` is dispensed with, it still needs a
> separate assembler and linker are needed.

Yes.

> (Tiny C is a self-contained C99 compiler, much better suited for your
> purpose, and it's only twice as large as subc.exe, but then subc.exe
> needs those extra components.
>
> However it probably won't support your desired targets.)

Tiny C is not public domain, so I have no interest in that.
I can just use gccwin.exe if I want a copyrighted compiler.

BFN. Paul.

Re: University Challenge

<83235d52-d5fb-474f-a337-921b1380961an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:2943:b0:67d:5ce7:4207 with SMTP id n3-20020a05620a294300b0067d5ce74207mr14163573qkp.706.1647914739720;
Mon, 21 Mar 2022 19:05:39 -0700 (PDT)
X-Received: by 2002:ac8:5cd5:0:b0:2e1:b91d:8f45 with SMTP id
s21-20020ac85cd5000000b002e1b91d8f45mr18468030qta.322.1647914739600; Mon, 21
Mar 2022 19:05:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 21 Mar 2022 19:05:39 -0700 (PDT)
In-Reply-To: <t1ba1p$6kj$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk> <532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com> <50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me> <ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me> <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<f2dc7b0f-23d4-4dce-8995-0bd888bbcc20n@googlegroups.com> <t1b18u$vvd$1@dont-email.me>
<t1b2v3$4vf$1@dont-email.me> <fc7f3299-f1b3-4152-99d1-22b912698b05n@googlegroups.com>
<t1ba1p$6kj$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <83235d52-d5fb-474f-a337-921b1380961an@googlegroups.com>
Subject: Re: University Challenge
From: mutazi...@gmail.com (muta...@gmail.com)
Injection-Date: Tue, 22 Mar 2022 02:05:39 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 11
 by: muta...@gmail.com - Tue, 22 Mar 2022 02:05 UTC

On Tuesday, March 22, 2022 at 12:51:02 PM UTC+11, Bart wrote:

> With that, it was able to compile hello.c to hello.s, but failed on
> trying to invoke an assembler AAA, unsurprisingly.

And I always compile with "-S" to avoid the assembler
getting invoked.

And one other thing - some of the executables I provide
are dependent on both msvcrt.dll and kernel32.dll.

BFN. Paul.

Re: University Challenge

<t1bvut$16jb$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!B158glJDA7lXL8//1bkt4g.user.46.165.242.75.POSTED!not-for-mail
From: mate...@xyz.invalid (Mateusz Viste)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Tue, 22 Mar 2022 09:04:45 +0100
Organization: . . .
Message-ID: <t1bvut$16jb$1@gioia.aioe.org>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<20220321075816.302@kylheku.com>
<978ebd91-879c-4c43-8ecf-c7c9a23c6f6en@googlegroups.com>
<t1aqeb$bfh$1@gioia.aioe.org>
<de0f17e5-64e0-4068-98f7-ea50314961b2n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="39531"; posting-host="B158glJDA7lXL8//1bkt4g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Mateusz Viste - Tue, 22 Mar 2022 08:04 UTC

2022-03-21 at 15:00 -0700, muta...@gmail.com wrote:
> You suggested using OCR software to read the paper, but
> if we're in a post-apocalyptic world, aren't punched cards
> easier to be machine-read than attempting to OCR characters?

OCR is just software. Hardware-wise, it requires only "something" that
is able to put the A4 sheet into a file. A punched card would require a
specific machinery to be read. Also, OCR can be performed by a human
without (too much) errors. Reading punched cards is harder and slower.

> PDOS is going to be first-to-market after the apocalypse.

My bets are on SvarDOS (http://svardos.org). But it's definitely a good
thing for new-age cavemen to have choice when it comes to DOS computing.

Mateusz

Re: University Challenge

<t1c351$q9t$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Tue, 22 Mar 2022 09:59:13 +0100
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <t1c351$q9t$1@dont-email.me>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 22 Mar 2022 08:59:13 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b947638421ec27d75e84b414bf31b94f";
logging-data="26941"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XeucD7kHcuRmGxCXjAxP5Pxxg0a6YYmo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:paW37hhoq5MwQBFTuDC2qoO083o=
In-Reply-To: <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
Content-Language: en-GB
 by: David Brown - Tue, 22 Mar 2022 08:59 UTC

On 21/03/2022 21:50, muta...@gmail.com wrote:
> On Monday, March 21, 2022 at 11:51:47 PM UTC+11, David Brown wrote:
>
>> Let's now get back to the C. When you say you have implemented a subset
>> of C90, what is missing, and why?
>
> It isn't me who wrote SubC. I don't have the required skills
> to write a compiler. I'm not good with complex algorithms.
>
> The things missing are listed here:
>
> https://www.t3x.org/subc/README-current.html
>
> search for "full c89".
>
> Almost all of those things don't actually affect me. The
> preprocessor shortcomings are overcome by using pdcc,
> a public domain prepreprocessor. I'm only interested in
> the 80386 at the moment so I just get the preprocessor
> to define long=int and short=int. I have my own C library.
>
> Although my coding style normally puts all the variables
> at the top of a function, occasionally I am "lazy" and just
> declare a variable inside a block. I do have some such
> code. So if I can't change SubC I would need to change
> that coding style.
>
> Another thing I do is initialize local variables, even though
> it is something that happens at run-time, and that doesn't
> work. Maybe because it is difficult to parse or something.
>
> If things are difficult to parse, I'm willing to change my coding
> style to SubC, rather than wait for someone to release a public
> domain fully-C90-compliant compiler - something no-one has
> been willing to do for 50 years.
>
> Note that a public domain 80386 assembler capable of
> handling the output from SubC was only recently written
> (by someone from Slovakia). And an a.out linker by someone
> from Italy. These were the final things that allowed the
> "University Challenge" disk to be produced.
>
> BFN. Paul.
>

I looked at the link. To me, the restrictions there are /massive/, even
for a 20+ years outdated version of C. I've had occasion to work with
"C" compilers with serious limitations, missing features or bugs in
connection with some microcontrollers, and it's not something I
personally would be willing to accept again. It looks like this
software is part of a book about how to write a C compiler - it is no
more than a basic starting point of some important features, with the
rest left as homework for the reader.

Do you have plans to work on the compiler and improve it? You
personally might be happy (or at least willing!) to write code to its
limitations, but I doubt if you'll find many other programmers who will
join you or use your software when the key tool is at that level. Maybe
the original SubC author is working more on it, or interested in
collaboration?

Re: University Challenge

<0fc71a6a-5abd-44e1-8726-3d21ed8837bfn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:e87:b0:441:a5d:681c with SMTP id hf7-20020a0562140e8700b004410a5d681cmr11351879qvb.38.1647939820384;
Tue, 22 Mar 2022 02:03:40 -0700 (PDT)
X-Received: by 2002:a37:acc:0:b0:67d:320e:7eb with SMTP id 195-20020a370acc000000b0067d320e07ebmr14452786qkk.513.1647939820197;
Tue, 22 Mar 2022 02:03:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Mar 2022 02:03:40 -0700 (PDT)
In-Reply-To: <t1bvut$16jb$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<20220321075816.302@kylheku.com> <978ebd91-879c-4c43-8ecf-c7c9a23c6f6en@googlegroups.com>
<t1aqeb$bfh$1@gioia.aioe.org> <de0f17e5-64e0-4068-98f7-ea50314961b2n@googlegroups.com>
<t1bvut$16jb$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0fc71a6a-5abd-44e1-8726-3d21ed8837bfn@googlegroups.com>
Subject: Re: University Challenge
From: mutazi...@gmail.com (muta...@gmail.com)
Injection-Date: Tue, 22 Mar 2022 09:03:40 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 42
 by: muta...@gmail.com - Tue, 22 Mar 2022 09:03 UTC

On Tuesday, March 22, 2022 at 7:05:00 PM UTC+11, Mateusz Viste wrote:

> > You suggested using OCR software to read the paper, but
> > if we're in a post-apocalyptic world, aren't punched cards
> > easier to be machine-read than attempting to OCR characters?

> OCR is just software.

Complex software.

> Hardware-wise, it requires only "something" that
> is able to put the A4 sheet into a file.

I wouldn't say "only". That's a tough task too.

> A punched card would require a
> specific machinery to be read.

Machinery that has existed for centuries, with "looms", right?

> Also, OCR can be performed by a human
> without (too much) errors. Reading punched cards is harder and slower.

When reading the machine code you can't have any errors.
It is good that humans can read it by hand if necessary, and
if it comes down to that, the fact that it is harder and slower
is unlikely to be the biggest issue.

> > PDOS is going to be first-to-market after the apocalypse.

> My bets are on SvarDOS (http://svardos.org). But it's definitely a good
> thing for new-age cavemen to have choice when it comes to DOS computing.

Why are you betting on a 16:16 processor? Historically
32-bit processors predated that, right?

And 16-bit processors require a different software suite,
won't they? I don't think you can fit an OS written in C
and a C compiler written in C into 64k. SubC itself weighs
in at 64k, not including the C library (msvcrt.dll is used
instead).

BFN. Paul.

Re: University Challenge

<55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:5848:0:b0:441:4092:c385 with SMTP id de8-20020ad45848000000b004414092c385mr2352331qvb.24.1647940494553;
Tue, 22 Mar 2022 02:14:54 -0700 (PDT)
X-Received: by 2002:a05:622a:302:b0:2e0:7aed:d653 with SMTP id
q2-20020a05622a030200b002e07aedd653mr19318245qtw.492.1647940494403; Tue, 22
Mar 2022 02:14:54 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Mar 2022 02:14:54 -0700 (PDT)
In-Reply-To: <t1c351$q9t$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk> <532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com> <50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me> <ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me> <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
Subject: Re: University Challenge
From: mutazi...@gmail.com (muta...@gmail.com)
Injection-Date: Tue, 22 Mar 2022 09:14:54 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 56
 by: muta...@gmail.com - Tue, 22 Mar 2022 09:14 UTC

On Tuesday, March 22, 2022 at 7:59:27 PM UTC+11, David Brown wrote:

> I looked at the link. To me, the restrictions there are /massive/, even

Care to be specific?

> for a 20+ years outdated version of C. I've had occasion to work with
> "C" compilers with serious limitations, missing features or bugs in
> connection with some microcontrollers, and it's not something I
> personally would be willing to accept again. It looks like this
> software is part of a book about how to write a C compiler - it is no
> more than a basic starting point of some important features, with the
> rest left as homework for the reader.

Sure.

> Do you have plans to work on the compiler and improve it? You

Right at the moment I don't have specific plans for my life.
I've reached this milestone a few days ago and now need to
consolidate.

I'm lacking a lot of the theoretical background to all
components, plus I'm not very good with complex
algorithms. I have skills in other areas (but don't know
how to describe it). I just bludgeoned my way to get
here.

> personally might be happy (or at least willing!) to write code to its
> limitations,

It's actually more that I threw my existing code at it and
most of it worked. I did make some small changes to
SubC to get it to handle my existing code. But what was
left was not a lot.

> but I doubt if you'll find many other programmers who will
> join you or use your software when the key tool is at that level.

This is more for people who have no choice. For whatever
reason they are being restricted to public domain code, and
if you want to use a more advanced flavor of C, or indeed
a different language altogether, you need to start by writing
a compiler. Fortunately for that person they can code in
SubC instead of writing machine code. Those are the only
two options if you are restricted to PD code.

> Maybe
> the original SubC author is working more on it, or interested in
> collaboration?

He added "typedef" for me because that was part of my style
that I wasn't willing to give up, plus some other changes, but
beyond that he has been very clear that I'm on my own as he
no longer has time for this project.

BFN. Paul.

Re: University Challenge

<t1c7lt$kjo$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Tue, 22 Mar 2022 10:16:29 +0000
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <t1c7lt$kjo$1@dont-email.me>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me>
<55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 22 Mar 2022 10:16:29 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="edb63c1c8fffb3c5c2244191570e5564";
logging-data="21112"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BIsh09cQeKYckbtdRnVOYDIPRvrJ503Y="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:59Z7ncb66y3swIl5UI0Tu+8RJ2E=
In-Reply-To: <55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
 by: Bart - Tue, 22 Mar 2022 10:16 UTC

On 22/03/2022 09:14, muta...@gmail.com wrote:
> On Tuesday, March 22, 2022 at 7:59:27 PM UTC+11, David Brown wrote:
>
>> I looked at the link. To me, the restrictions there are /massive/, even
>
> Care to be specific?
>
>> for a 20+ years outdated version of C. I've had occasion to work with
>> "C" compilers with serious limitations, missing features or bugs in
>> connection with some microcontrollers, and it's not something I
>> personally would be willing to accept again. It looks like this
>> software is part of a book about how to write a C compiler - it is no
>> more than a basic starting point of some important features, with the
>> rest left as homework for the reader.
>
> Sure.
>
>> Do you have plans to work on the compiler and improve it? You
>
> Right at the moment I don't have specific plans for my life.
> I've reached this milestone a few days ago and now need to
> consolidate.
>
> I'm lacking a lot of the theoretical background to all
> components, plus I'm not very good with complex
> algorithms. I have skills in other areas (but don't know
> how to describe it). I just bludgeoned my way to get
> here.
>
>> personally might be happy (or at least willing!) to write code to its
>> limitations,
>
> It's actually more that I threw my existing code at it and
> most of it worked. I did make some small changes to
> SubC to get it to handle my existing code. But what was
> left was not a lot.
>
>> but I doubt if you'll find many other programmers who will
>> join you or use your software when the key tool is at that level.
>
> This is more for people who have no choice. For whatever
> reason they are being restricted to public domain code,

This doesn't make sense.

You're talking rebooting all computer systems and software in an
apocalyptic world; who's going to care about the fine details of
software licenses!

Especially as all the sources will have disappeared from the planet,
apart from the ones stored on your fire-proof and damp-proof punched cards.

But if you are worried about such aspects, then licences probably apply
to processor designs too.

and
> if you want to use a more advanced flavor of C, or indeed
> a different language altogether, you need to start by writing
> a compiler. Fortunately for that person they can code in
> SubC instead of writing machine code. Those are the only
> two options if you are restricted to PD code.

Actually there are a few more options. Someone can write can assembler
in machine code, then they can write in symbolic assembly. They can use
that to create a simple HLL or even a HLA that doesn't need to be C (you
do know other HLLs exist?).

The problem however will be this: assuming pockets of source code
survive somewhere, and assuming those are in C, those most likely will
not be in a the SubC subset. You will need a more full-featured C compiler.

Re: University Challenge

<66fd4ead-1058-453b-81be-dab0371417fdn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a0c:fcc9:0:b0:441:1aef:988d with SMTP id i9-20020a0cfcc9000000b004411aef988dmr8168943qvq.71.1647945051838;
Tue, 22 Mar 2022 03:30:51 -0700 (PDT)
X-Received: by 2002:ac8:7fcc:0:b0:2e0:7760:2f10 with SMTP id
b12-20020ac87fcc000000b002e077602f10mr19406534qtk.34.1647945051689; Tue, 22
Mar 2022 03:30:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Mar 2022 03:30:51 -0700 (PDT)
In-Reply-To: <t1c7lt$kjo$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk> <532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com> <50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me> <ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me> <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me> <55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c7lt$kjo$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <66fd4ead-1058-453b-81be-dab0371417fdn@googlegroups.com>
Subject: Re: University Challenge
From: mutazi...@gmail.com (muta...@gmail.com)
Injection-Date: Tue, 22 Mar 2022 10:30:51 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 68
 by: muta...@gmail.com - Tue, 22 Mar 2022 10:30 UTC

On Tuesday, March 22, 2022 at 9:16:43 PM UTC+11, Bart wrote:

> > This is more for people who have no choice. For whatever
> > reason they are being restricted to public domain code,

> This doesn't make sense.
>
> You're talking rebooting all computer systems and software in an
> apocalyptic world;

It's not necessarily an apocalyptic world.

Most people are totally opposed to releasing their code to
the public domain because they fear xyz will happen.

I want to see xyz happen.

Or I want to prove that the fears are unfounded because
xyz didn't happen.

> who's going to care about the fine details of
> software licenses!

Some sort of magnetic strike that wipes computers clean
doesn't necessarily mean governments will no longer exist
and enforce copyright laws.

> Especially as all the sources will have disappeared from the planet,
> apart from the ones stored on your fire-proof and damp-proof punched cards.
>
> But if you are worried about such aspects, then licences probably apply
> to processor designs too.

Those are subject to patents, not copyright, and patents only
last 20 years, so the 80386 is free, assuming Intel found
something to patent in the first place.

> > and
> > if you want to use a more advanced flavor of C, or indeed
> > a different language altogether, you need to start by writing
> > a compiler. Fortunately for that person they can code in
> > SubC instead of writing machine code. Those are the only
> > two options if you are restricted to PD code.

> Actually there are a few more options. Someone can write can assembler
> in machine code,

Sure. They have to start by writing in machine code. As of a
few days ago they now also have the option of writing their
assembler in SubC.

> then they can write in symbolic assembly. They can use
> that to create a simple HLL or even a HLA that doesn't need to be C (you
> do know other HLLs exist?).

Sure.

> The problem however will be this: assuming pockets of source code
> survive somewhere, and assuming those are in C, those most likely will
> not be in a the SubC subset. You will need a more full-featured C compiler.

That source code includes PDOS/386, and tools like the linker.
So the first order of the day will be to write the full-featured
C compiler you speak of. And they can write that in SubC
instead of machine code (if they think, as I do, that SubC is
a shit-ton easier). And they can even use the SubC source code
as a base if they think it is useful.

BFN. Paul.

Re: University Challenge

<t1c8ss$dag$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Tue, 22 Mar 2022 11:37:15 +0100
Organization: A noiseless patient Spider
Lines: 96
Message-ID: <t1c8ss$dag$1@dont-email.me>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me>
<55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 22 Mar 2022 10:37:16 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="b947638421ec27d75e84b414bf31b94f";
logging-data="13648"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xAfr25ctZC2wSANAeUonJLvMWcHC9U0o="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:pSqKrWgAWTJ+GxfilgvADE6no6k=
In-Reply-To: <55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
Content-Language: en-GB
 by: David Brown - Tue, 22 Mar 2022 10:37 UTC

On 22/03/2022 10:14, muta...@gmail.com wrote:
> On Tuesday, March 22, 2022 at 7:59:27 PM UTC+11, David Brown wrote:
>
>> I looked at the link. To me, the restrictions there are /massive/, even
>
> Care to be specific?

Poor support for structs and unions.

Poor support for typedef.

No long, short, or other integer sizes. No unsigned types. No floating
point at all.

Extremely limited pointer support.

No more than two levels of indirection.

Broken initialisation.

Hopeless pre-processor support.

(And of course there are many C99 features that I would find painful to
do without, but that's beyond the scope of the compiler.)

Other people no doubt see other issues as more important.

>
>> for a 20+ years outdated version of C. I've had occasion to work with
>> "C" compilers with serious limitations, missing features or bugs in
>> connection with some microcontrollers, and it's not something I
>> personally would be willing to accept again. It looks like this
>> software is part of a book about how to write a C compiler - it is no
>> more than a basic starting point of some important features, with the
>> rest left as homework for the reader.
>
> Sure.
>
>> Do you have plans to work on the compiler and improve it? You
>
> Right at the moment I don't have specific plans for my life.
> I've reached this milestone a few days ago and now need to
> consolidate.
>

Fair enough.

> I'm lacking a lot of the theoretical background to all
> components, plus I'm not very good with complex
> algorithms. I have skills in other areas (but don't know
> how to describe it). I just bludgeoned my way to get
> here.
>
>> personally might be happy (or at least willing!) to write code to its
>> limitations,
>
> It's actually more that I threw my existing code at it and
> most of it worked. I did make some small changes to
> SubC to get it to handle my existing code. But what was
> left was not a lot.
>

I suppose you were already writing mainly in a subset of C90. This will
be harder for people who have moved on. Opinions and preferences vary,
of course, but I believe most people who are used to C99 would see a
return to C90 as a major step backwards, never mind a limited subset of it.

>> but I doubt if you'll find many other programmers who will
>> join you or use your software when the key tool is at that level.
>
> This is more for people who have no choice.

OK. I don't know who these people might be, but as I said before I'd
rather not get into a discussion about license philosophy.

> For whatever
> reason they are being restricted to public domain code, and
> if you want to use a more advanced flavor of C, or indeed
> a different language altogether, you need to start by writing
> a compiler. Fortunately for that person they can code in
> SubC instead of writing machine code. Those are the only
> two options if you are restricted to PD code.
>
>> Maybe
>> the original SubC author is working more on it, or interested in
>> collaboration?
>
> He added "typedef" for me because that was part of my style
> that I wasn't willing to give up, plus some other changes, but
> beyond that he has been very clear that I'm on my own as he
> no longer has time for this project.
>
> BFN. Paul.
>

Re: University Challenge

<16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:41:b0:2e1:df22:358 with SMTP id y1-20020a05622a004100b002e1df220358mr19728173qtw.186.1647948585037;
Tue, 22 Mar 2022 04:29:45 -0700 (PDT)
X-Received: by 2002:a05:622a:1906:b0:2e0:77a7:16c4 with SMTP id
w6-20020a05622a190600b002e077a716c4mr20031434qtc.119.1647948584869; Tue, 22
Mar 2022 04:29:44 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Mar 2022 04:29:44 -0700 (PDT)
In-Reply-To: <t1c8ss$dag$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk> <532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com> <50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me> <ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me> <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me> <55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
Subject: Re: University Challenge
From: mutazi...@gmail.com (muta...@gmail.com)
Injection-Date: Tue, 22 Mar 2022 11:29:45 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 53
 by: muta...@gmail.com - Tue, 22 Mar 2022 11:29 UTC

On Tuesday, March 22, 2022 at 9:37:30 PM UTC+11, David Brown wrote:

> No long, short, or other integer sizes.

I'm targeting the 80386, so I just use the preprocessor to
define all of these to a 32-bit int.

> No unsigned types.

I define this to nothing, making all my integers signed,
and I'm not sure what the impact of that is.

> No floating point at all.

For the tools I am interested in (OS, C compiler, linker
etc) no floating point is used.

> Hopeless pre-processor support.

You can use pdcc -E, which is also public domain, so that
becomes irrelevant.

> > This is more for people who have no choice.

> OK. I don't know who these people might be

Well, I wouldn't say I have "no choice", but I do fall into
the category of people who want this.

I don't like having my computer crash and not being able
to debug what the problem is. I don't want to pay contract
rates to fix bugs in other people's copyrighted software.

Fixing bugs in software that I own (jointly with the public,
or myself, or a company I have shares in), I may be willing
to pay for if the price is right. Or I may be willing to do it
myself. But with the expectation that if I become familiar
with the code base in the process, I am free to make my
derived version a commercial product without restriction.
Or even take any code I find useful and use that
commercially. I don't want to waste my time understanding
someone else's copyrighted code.

This is applicable:

https://dilbert.com/strip/2000-03-19

And is probably the basis of the entire crappy state of the
software industry. I don't want my personal PC to be in
that state, and with "University Challenge" I can get my PC
out of that state without needing to learn any other language
than C90 which I already know sufficiently well.

BFN. Paul.

Re: University Challenge

<1a3f5f5f-288f-4a88-91ce-e9c47ea727a8n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:6214:21a9:b0:440:ff7f:5364 with SMTP id t9-20020a05621421a900b00440ff7f5364mr13740248qvc.61.1647950675999;
Tue, 22 Mar 2022 05:04:35 -0700 (PDT)
X-Received: by 2002:ac8:5bc7:0:b0:2e1:ecde:e1e6 with SMTP id
b7-20020ac85bc7000000b002e1ecdee1e6mr19835520qtb.529.1647950675785; Tue, 22
Mar 2022 05:04:35 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Mar 2022 05:04:35 -0700 (PDT)
In-Reply-To: <t1c8ss$dag$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:b4ae:43da:1271:2873;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:b4ae:43da:1271:2873
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk> <532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com> <50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me> <ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me> <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me> <55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1a3f5f5f-288f-4a88-91ce-e9c47ea727a8n@googlegroups.com>
Subject: Re: University Challenge
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Tue, 22 Mar 2022 12:04:35 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 12
 by: Malcolm McLean - Tue, 22 Mar 2022 12:04 UTC

On Tuesday, 22 March 2022 at 10:37:30 UTC, David Brown wrote:
>
> I suppose you were already writing mainly in a subset of C90. This will
> be harder for people who have moved on. Opinions and preferences vary,
> of course, but I believe most people who are used to C99 would see a
> return to C90 as a major step backwards, never mind a limited subset of it.
>
There's a tendency to add features over time. That's because removing a feature
breaks old code, and also because the marginal cost of a new feature in
terms of the complexity it adds is small. However the cumulative effect of
adding many new features is that the software becomes difficult to learn,
and difficult to maintain or re-implement.

Re: University Challenge

<t1cord$eqq$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Tue, 22 Mar 2022 15:09:33 +0000
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <t1cord$eqq$1@dont-email.me>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me>
<55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me>
<16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 22 Mar 2022 15:09:33 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="edb63c1c8fffb3c5c2244191570e5564";
logging-data="15194"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6Gp6d6GVbCFecFxPad9R6KqnyKilxmqo="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:ZWiba7arJ5TZfp3gR/3Vn0Odaxs=
In-Reply-To: <16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
 by: Bart - Tue, 22 Mar 2022 15:09 UTC

On 22/03/2022 11:29, muta...@gmail.com wrote:
> On Tuesday, March 22, 2022 at 9:37:30 PM UTC+11, David Brown wrote:
>
>> No long, short, or other integer sizes.
>
> I'm targeting the 80386, so I just use the preprocessor to
> define all of these to a 32-bit int.
>
>> No unsigned types.
>
> I define this to nothing, making all my integers signed,
> and I'm not sure what the impact of that is.
>
>> No floating point at all.
>
> For the tools I am interested in (OS, C compiler, linker
> etc) no floating point is used.
>
>> Hopeless pre-processor support.
>
> You can use pdcc -E, which is also public domain, so that
> becomes irrelevant.

That's another odd priority. You're OK without things such as floats
(which I decided were useful enough to add to my very first language 40
years ago).

But function-like macros are a must-have! (Something I've easily managed
to do without over that same period.)

Doing preprocessing properly is difficult. You can read about it here:

https://marc.info/?l=boost&m=118835769257658&w=2

(Try and make it through to the end...)

Re: University Challenge

<a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:a24a:0:b0:67b:4836:fe95 with SMTP id l71-20020a37a24a000000b0067b4836fe95mr15979263qke.109.1647963420363;
Tue, 22 Mar 2022 08:37:00 -0700 (PDT)
X-Received: by 2002:a05:622a:1981:b0:2e1:b778:94ce with SMTP id
u1-20020a05622a198100b002e1b77894cemr20364786qtc.588.1647963420202; Tue, 22
Mar 2022 08:37:00 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Mar 2022 08:37:00 -0700 (PDT)
In-Reply-To: <t1cord$eqq$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=81.143.231.9; posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 81.143.231.9
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk> <532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com> <50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me> <ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me> <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me> <55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me> <16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
<t1cord$eqq$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
Subject: Re: University Challenge
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Tue, 22 Mar 2022 15:37:00 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 36
 by: Malcolm McLean - Tue, 22 Mar 2022 15:37 UTC

On Tuesday, 22 March 2022 at 15:09:46 UTC, Bart wrote:
> On 22/03/2022 11:29, muta...@gmail.com wrote:
> > On Tuesday, March 22, 2022 at 9:37:30 PM UTC+11, David Brown wrote:
> >
> >> No long, short, or other integer sizes.
> >
> > I'm targeting the 80386, so I just use the preprocessor to
> > define all of these to a 32-bit int.
> >
> >> No unsigned types.
> >
> > I define this to nothing, making all my integers signed,
> > and I'm not sure what the impact of that is.
> >
> >> No floating point at all.
> >
> > For the tools I am interested in (OS, C compiler, linker
> > etc) no floating point is used.
> >
> >> Hopeless pre-processor support.
> >
> > You can use pdcc -E, which is also public domain, so that
> > becomes irrelevant.
> That's another odd priority. You're OK without things such as floats
> (which I decided were useful enough to add to my very first language 40
> years ago).
>
> But function-like macros are a must-have! (Something I've easily managed
> to do without over that same period.)
>
You nick a preprocessor from somewhere else, and you have function-like
macros.
However to deal with floats you've got to program the compiler to recognise
floating point expressions, then emit floating point machine code. Essentially
you need another arithmetical expression parser, then some logic to allow
the two to mix. It's quite a task, as you probably know better than i do.

Re: University Challenge

<t1cumj$lq$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Tue, 22 Mar 2022 16:49:23 +0000
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <t1cumj$lq$1@dont-email.me>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me>
<55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me>
<16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
<t1cord$eqq$1@dont-email.me>
<a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 22 Mar 2022 16:49:23 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="edb63c1c8fffb3c5c2244191570e5564";
logging-data="698"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19tjW3YGeCpiA+AcMcj2VmFle9pWDvJ6xo="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:Xf3Vy5u3+7Dl3bqoEHOH3Tbq9CQ=
In-Reply-To: <a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
 by: Bart - Tue, 22 Mar 2022 16:49 UTC

On 22/03/2022 15:37, Malcolm McLean wrote:
> On Tuesday, 22 March 2022 at 15:09:46 UTC, Bart wrote:
>> On 22/03/2022 11:29, muta...@gmail.com wrote:
>>> On Tuesday, March 22, 2022 at 9:37:30 PM UTC+11, David Brown wrote:
>>>
>>>> No long, short, or other integer sizes.
>>>
>>> I'm targeting the 80386, so I just use the preprocessor to
>>> define all of these to a 32-bit int.
>>>
>>>> No unsigned types.
>>>
>>> I define this to nothing, making all my integers signed,
>>> and I'm not sure what the impact of that is.
>>>
>>>> No floating point at all.
>>>
>>> For the tools I am interested in (OS, C compiler, linker
>>> etc) no floating point is used.
>>>
>>>> Hopeless pre-processor support.
>>>
>>> You can use pdcc -E, which is also public domain, so that
>>> becomes irrelevant.
>> That's another odd priority. You're OK without things such as floats
>> (which I decided were useful enough to add to my very first language 40
>> years ago).
>>
>> But function-like macros are a must-have! (Something I've easily managed
>> to do without over that same period.)
>>
> You nick a preprocessor from somewhere else, and you have function-like
> macros.

That's just acquiring yet another dependency, and one so complex you are
forced to use some third party implementation. (Good thing the OP isn't
that bothered about trust.)

> However to deal with floats you've got to program the compiler to recognise
> floating point expressions, then emit floating point machine code. Essentially
> you need another arithmetical expression parser, then some logic to allow
> the two to mix. It's quite a task, as you probably know better than i do.

This other stuff however, you can cut as many corners as you like, but
it is also a million times easier.

These days you don't even need to write your own floating point
emulation. If my current language didn't already have float support, I
could add float-add for example in a couple of minutes:

function addf64(u64 x,y)u64 z =
assem
movq xmm0, [x]
addsd xmm0, [y]
movq [z], xmm0
end
z
end

Now look again at the link I posted.

My own C preprocessor (not standalone) is 3500 lines of code, took a
month to do, and will probably still fail with most of the weird things
people like to do with the CPP.

Yet I'm not about to incorporate someone else's work (apart from it
being in a different language). Other people than the OP have their owm
preferences, one of mine is to be responsible for 100% of may languages'
toolchains.

Re: University Challenge

<654e8f2b-5fea-4445-aa5b-571798436b4cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ad4:5bef:0:b0:441:3b3:31ce with SMTP id k15-20020ad45bef000000b0044103b331cemr14695092qvc.50.1647974508135;
Tue, 22 Mar 2022 11:41:48 -0700 (PDT)
X-Received: by 2002:a05:6214:27ec:b0:441:4a4b:1f2a with SMTP id
jt12-20020a05621427ec00b004414a4b1f2amr2630843qvb.29.1647974507982; Tue, 22
Mar 2022 11:41:47 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Mar 2022 11:41:47 -0700 (PDT)
In-Reply-To: <t1cumj$lq$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk> <532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com> <50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me> <ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me> <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me> <55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me> <16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
<t1cord$eqq$1@dont-email.me> <a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
<t1cumj$lq$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <654e8f2b-5fea-4445-aa5b-571798436b4cn@googlegroups.com>
Subject: Re: University Challenge
From: mutazi...@gmail.com (muta...@gmail.com)
Injection-Date: Tue, 22 Mar 2022 18:41:48 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2673
 by: muta...@gmail.com - Tue, 22 Mar 2022 18:41 UTC

On Wednesday, March 23, 2022 at 3:49:36 AM UTC+11, Bart wrote:

> > You nick a preprocessor from somewhere else, and you have function-like
> > macros.

> That's just acquiring yet another dependency, and one so complex you are
> forced to use some third party implementation. (Good thing the OP isn't
> that bothered about trust.)

Trust in what?

> being in a different language). Other people than the OP have their owm
> preferences, one of mine is to be responsible for 100% of may languages'
> toolchains.

You can pick up someone else's public domain implementation,
read it to ensure you understand it, and then take responsibility
for maintaining it (you don't need to give away the source code
to your modifications). Surely that is easier than writing it from
scratch?

BFN. Paul.

Re: University Challenge

<20220322120913.685@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: 480-992-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Tue, 22 Mar 2022 19:23:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <20220322120913.685@kylheku.com>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me>
<55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me>
<16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
<t1cord$eqq$1@dont-email.me>
<a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
<t1cumj$lq$1@dont-email.me>
<654e8f2b-5fea-4445-aa5b-571798436b4cn@googlegroups.com>
Injection-Date: Tue, 22 Mar 2022 19:23:53 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="05955564a998605ff1eb7fe15970b61a";
logging-data="8999"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Y+Ojt0DtkZ87qexIox0GsAaX7LoO6Wc0="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:4da9Z2mOB9Oinl4TpXVofoJtF2M=
 by: Kaz Kylheku - Tue, 22 Mar 2022 19:23 UTC

On 2022-03-22, muta...@gmail.com <mutazilah@gmail.com> wrote:
> On Wednesday, March 23, 2022 at 3:49:36 AM UTC+11, Bart wrote:
>
>> > You nick a preprocessor from somewhere else, and you have function-like
>> > macros.
>
>> That's just acquiring yet another dependency, and one so complex you are
>> forced to use some third party implementation. (Good thing the OP isn't
>> that bothered about trust.)
>
> Trust in what?
>
>> being in a different language). Other people than the OP have their owm
>> preferences, one of mine is to be responsible for 100% of may languages'
>> toolchains.
>
> You can pick up someone else's public domain implementation,

Your obsession with the public domain needlessly limits your options.

First of all, an assignment to the public domain may not be recognized
everywhere in the world. If the only notice on a work is something like
that "Author Bob Smith assigned this to the public domain on July 19,
2013" then it may not be considered to be properly licensed in all. If
assignment to the public domain doesn't hold, then the work remains
copyrighted by Bob, with all rights being reserved.

If you redistribute such a thing, you should add a warranty disclaimer,
otherwise you could be held liable for damages (even in a jurisdiction
where a disclaimer could have protected you).

Code with MIT or BSD licenses, and similar ones, is just as /functionally/
free as "public domain". All that you would reasonably want to do as a
developer with public domain code, you can do with BSD or MIT code.
These licenses ask you to preserve those licenses. Therefore you may not
perpetrate certain plagiarism that you might get away with in the case
of a public domain work, like falsely asserting authorship over
something.

Unless your goal is to be a plagiarist, you don't have a problem with
these licenses whatsoever. Moreover, they are proper licenses.

The Free Software Foundation recommends(1), to people who wish to assign
to the public domain, to use the CC0 (Creative Commons 0) license in
order to to do so(2). This license contains a warranty disclaimer,
wording which assigns to the public domain, as well as a fallback to
licensing provisions for jurisdiction where such an assignment isn't
supported.

(I find CC0 verbose; whereas BSD is small enough that you can have
it as a header in every source file, so things are crystal clear even if
people pick pieces out of your program.)

--
1. https://directory.fsf.org/wiki/License:PublicDomain
2. http://directory.fsf.org/wiki/License:CC0

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal

Re: University Challenge

<63d6ab71-a8b7-4c74-9744-4d71389c298cn@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:41d6:0:b0:67e:4494:c5e9 with SMTP id o205-20020a3741d6000000b0067e4494c5e9mr15112145qka.605.1647978328543;
Tue, 22 Mar 2022 12:45:28 -0700 (PDT)
X-Received: by 2002:ad4:5ccb:0:b0:441:1abe:1b8a with SMTP id
iu11-20020ad45ccb000000b004411abe1b8amr10491493qvb.7.1647978328303; Tue, 22
Mar 2022 12:45:28 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Mar 2022 12:45:28 -0700 (PDT)
In-Reply-To: <20220322120913.685@kylheku.com>
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk> <532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com> <50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me> <ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me> <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me> <55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me> <16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
<t1cord$eqq$1@dont-email.me> <a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
<t1cumj$lq$1@dont-email.me> <654e8f2b-5fea-4445-aa5b-571798436b4cn@googlegroups.com>
<20220322120913.685@kylheku.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <63d6ab71-a8b7-4c74-9744-4d71389c298cn@googlegroups.com>
Subject: Re: University Challenge
From: mutazi...@gmail.com (muta...@gmail.com)
Injection-Date: Tue, 22 Mar 2022 19:45:28 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 93
 by: muta...@gmail.com - Tue, 22 Mar 2022 19:45 UTC

On Wednesday, March 23, 2022 at 6:24:06 AM UTC+11, Kaz Kylheku wrote:

> > You can pick up someone else's public domain implementation,

> Your obsession with the public domain needlessly limits your options.

I have a different opinion, and provided it earlier in this thread.

> First of all, an assignment to the public domain may not be recognized
> everywhere in the world.

Even if that is true, it is harmless to add that wording.

And it is harmless to NOT write the word "copyright".

While ever people are going to the effort to write that word,
I'm going to the effort to find one without that word.

> If the only notice on a work is something like
> that "Author Bob Smith assigned this to the public domain on July 19,
> 2013" then it may not be considered to be properly licensed in all.

I'm happy to use it. I'm not happy to use something with
the word "copyright" in it, or rather, I'll only do that
temporarily.

> If
> assignment to the public domain doesn't hold, then the work remains
> copyrighted by Bob, with all rights being reserved.

Theoretically in some jurisdictions, which is why PDOS has
a CC0 fallback.

> If you redistribute such a thing, you should add a warranty disclaimer,
> otherwise you could be held liable for damages (even in a jurisdiction
> where a disclaimer could have protected you).

People write disclaimers on their software as if programmers
are being sued every 5 seconds for every bug in their program.
Have you heard of a single person without a disclaimer being
sued for their freeware? I put this into one of mine:

https://sourceforge.net/p/pdos/gitcode/ci/master/tree/src/world.c

No-one has taken me up on the offer so far. Maybe you
could be the first.

> Code with MIT or BSD licenses, and similar ones, is just as /functionally/
> free as "public domain".

I disagree.

> All that you would reasonably want to do as a
> developer with public domain code, you can do with BSD or MIT code.

Wrong. I don't want to be sued by the copyright holder
because he thinks I have violated some implied right
in what is unambiguously his code, because he never
ever relinquished copyright. He explicitly held onto it.
> These licenses ask you to preserve those licenses.

Hence the term "virus".

> Therefore you may not
> perpetrate certain plagiarism that you might get away with in the case
> of a public domain work, like falsely asserting authorship over
> something.

The modified version IS your version, it's not false ownership.

> Unless your goal is to be a plagiarist, you don't have a problem with
> these licenses whatsoever. Moreover, they are proper licenses.

My goal is to not have anyone claim ownership of a single
byte of my source or executables.

> The Free Software Foundation recommends(1), to people who wish to assign
> to the public domain, to use the CC0 (Creative Commons 0) license in
> order to to do so(2). This license contains a warranty disclaimer,
> wording which assigns to the public domain, as well as a fallback to
> licensing provisions for jurisdiction where such an assignment isn't
> supported.

Yes, I release my code to the public domain and say that you can
follow CC0 if you prefer.

> (I find CC0 verbose; whereas BSD is small enough that you can have
> it as a header in every source file, so things are crystal clear even if
> people pick pieces out of your program.)

The word "copyright" is crystal clear.

BFN. Paul.

Re: University Challenge

<20220322125626.864@kylheku.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: 480-992-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Tue, 22 Mar 2022 20:30:35 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 172
Message-ID: <20220322125626.864@kylheku.com>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me>
<55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me>
<16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
<t1cord$eqq$1@dont-email.me>
<a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
<t1cumj$lq$1@dont-email.me>
<654e8f2b-5fea-4445-aa5b-571798436b4cn@googlegroups.com>
<20220322120913.685@kylheku.com>
<63d6ab71-a8b7-4c74-9744-4d71389c298cn@googlegroups.com>
Injection-Date: Tue, 22 Mar 2022 20:30:35 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="05955564a998605ff1eb7fe15970b61a";
logging-data="18380"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193bb1coBjVVGovOoxiPoYdZzFIJtRaAX8="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:6z2Bi3JtKKDoPzUzB4EYw+8geQY=
 by: Kaz Kylheku - Tue, 22 Mar 2022 20:30 UTC

On 2022-03-22, muta...@gmail.com <mutazilah@gmail.com> wrote:
> On Wednesday, March 23, 2022 at 6:24:06 AM UTC+11, Kaz Kylheku wrote:
>
>> > You can pick up someone else's public domain implementation,
>
>> Your obsession with the public domain needlessly limits your options.
>
> I have a different opinion, and provided it earlier in this thread.
>
>> First of all, an assignment to the public domain may not be recognized
>> everywhere in the world.
>
> Even if that is true, it is harmless to add that wording.
>
> And it is harmless to NOT write the word "copyright".
>
> While ever people are going to the effort to write that word,
> I'm going to the effort to find one without that word.
>
>> If the only notice on a work is something like
>> that "Author Bob Smith assigned this to the public domain on July 19,
>> 2013" then it may not be considered to be properly licensed in all.
>
> I'm happy to use it. I'm not happy to use something with
> the word "copyright" in it, or rather, I'll only do that
> temporarily.

But this situation is that the copyright protection is implicit;
so you're just having a pointless allergic reaction to it being
spelled out in a word.

>
>> If
>> assignment to the public domain doesn't hold, then the work remains
>> copyrighted by Bob, with all rights being reserved.
>
> Theoretically in some jurisdictions, which is why PDOS has
> a CC0 fallback.
>
>> If you redistribute such a thing, you should add a warranty disclaimer,
>> otherwise you could be held liable for damages (even in a jurisdiction
>> where a disclaimer could have protected you).
>
> People write disclaimers on their software as if programmers
> are being sued every 5 seconds for every bug in their program.
> Have you heard of a single person without a disclaimer being
> sued for their freeware? I put this into one of mine:

I can't think of any software that I use that lacks such a disclaimer.

It's conceivable that some crooks (similar to copyright trolls) could
latch onto this idea and find software authors to harass with trumped
up liability claims.
>
> https://sourceforge.net/p/pdos/gitcode/ci/master/tree/src/world.c

Your program fails to flush the output stream to force the error message
to be passed from the stream's buffer to the host environment, and
check whether that forwarding succeeded. It relies on the output being
implicitly flushed, and returns success unconditionally.

You've not explicitly documented that these are *not* requirements for
your program, so they could be inferred as being general reliability
issues, particularly in light of your strong claim that the program
is error-free. If you don't say what constitutes errors, it has the
broadest possible interpretation: every conceivable fault is absent.

> No-one has taken me up on the offer so far. Maybe you
> could be the first.
>
>> Code with MIT or BSD licenses, and similar ones, is just as /functionally/
>> free as "public domain".
>
> I disagree.
>
>> All that you would reasonably want to do as a
>> developer with public domain code, you can do with BSD or MIT code.
>
> Wrong. I don't want to be sued by the copyright holder
> because he thinks I have violated some implied right
> in what is unambiguously his code,

That could happen anyway even if the word "copyright" isn't there.

Someone who makes their code public using any copying/licensing blurb
whatsoever (including none at all or "assigned to the public domain")
could change their mind and try to sue people.

People will try this and that.

Your best bet is to have a clear license from them which confirms what
rights they passed on to you at the time.

Shit will happen. Sometimes people put a license on something which
isn't theirs. If you take some piece of leaked MS WIndows code,
remove any copyright notices and add a public domain assignment,
that doesn't mean it's valid. Any improper claim can be voided,
hanging its believers out to dry.

> because he never relinquished copyright. He explicitly held onto it.

That is false; the BSD and MIT licenses relinquish specific rights,
just not the attribution right, entirely.

>> These licenses ask you to preserve those licenses.
>
> Hence the term "virus".

I'm not aware of the term "virus" being applied to BSD, MIT and their
ilk; they are not commonly described as viral licenses.

They are not viral because they make no conditions about what license
may be or must be applied to *other* pieces that the work is combined
with.

The GNU licenses are called "viral" because works which are a
combination of GPL and non-GPL licensed code must have the non-GNU parts
be adjusted to be licensed in a GPL-compatible way, and the whole
combination be under the GPL.
>
>> Therefore you may not
>> perpetrate certain plagiarism that you might get away with in the case
>> of a public domain work, like falsely asserting authorship over
>> something.
>
> The modified version IS your version, it's not false ownership.

It is not so much about ownership as academic conduct.

If you're taking an exam, and the person next to you put a CC0 license
above their answer sheet, that doesn't mean it's OK for you to crib the
answer, and present it as your original work, for reasons not directly
related to copyright.

But copyright can be used as an assertion against plagiarism.
Basicall that's all BSD does. "Don't plagiarize this, and don't
remove the liability disclaimer".

> My goal is to not have anyone claim ownership of a single
> byte of my source or executables.

Then public domain is not aligned with your goal, Someone can easily
engage in behavior in which other people believe that they are the
author of that code.

Excerpts of public domain code may be placed into any code without any
attribution, and if that surrounding code has an obvious owner, that
will be assumed over the borrowed excerpt too.

> Yes, I release my code to the public domain and say that you can
> follow CC0 if you prefer.

But that's redundant, since CC0 already has the public domain assignment
as the primary feature, with fallback on as-free-as-possible licensing.
>
>> (I find CC0 verbose; whereas BSD is small enough that you can have
>> it as a header in every source file, so things are crystal clear even if
>> people pick pieces out of your program.)
>
> The word "copyright" is crystal clear.

No, it isn't; you cannot infer all the facts about copyright from
the word alone, or its brief definition in a general dictionary.

You don't know everything from "copy" and "right", such as that there
are multiple different rights under the umbrella of copyright law, such
as the right not to have something you *didn't* produce attributed to
you (attribution right).

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal

Re: University Challenge

<t1dcag$1f86$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!B158glJDA7lXL8//1bkt4g.user.46.165.242.75.POSTED!not-for-mail
From: mate...@xyz.invalid (Mateusz Viste)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Tue, 22 Mar 2022 21:41:52 +0100
Organization: . . .
Message-ID: <t1dcag$1f86$1@gioia.aioe.org>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me>
<55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me>
<16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
<t1cord$eqq$1@dont-email.me>
<a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
<t1cumj$lq$1@dont-email.me>
<654e8f2b-5fea-4445-aa5b-571798436b4cn@googlegroups.com>
<20220322120913.685@kylheku.com>
<63d6ab71-a8b7-4c74-9744-4d71389c298cn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="48390"; posting-host="B158glJDA7lXL8//1bkt4g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Mateusz Viste - Tue, 22 Mar 2022 20:41 UTC

2022-03-22 at 12:45 -0700, muta...@gmail.com wrote:
> https://sourceforge.net/p/pdos/gitcode/ci/master/tree/src/world.c

Why printf() ? Calling puts() would likely produce a smaller executable.

Also, on some platforms/compilers/output devices using \n might leave
the cursor at column 11.

Mateusz

Re: University Challenge

<1661e82a-865c-45d5-bbfd-ff6e88d92fc8n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:643:0:b0:67d:3188:24f2 with SMTP id 64-20020a370643000000b0067d318824f2mr17274173qkg.48.1647986421130;
Tue, 22 Mar 2022 15:00:21 -0700 (PDT)
X-Received: by 2002:a05:6214:1c87:b0:42d:20cb:e484 with SMTP id
ib7-20020a0562141c8700b0042d20cbe484mr20992118qvb.10.1647986420854; Tue, 22
Mar 2022 15:00:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Tue, 22 Mar 2022 15:00:20 -0700 (PDT)
In-Reply-To: <20220322125626.864@kylheku.com>
Injection-Info: google-groups.googlegroups.com; posting-host=202.169.113.201; posting-account=CeHKkQoAAAAowY1GfiJYG55VVc0s1zaG
NNTP-Posting-Host: 202.169.113.201
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk> <532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com> <50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me> <ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me> <395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me> <55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me> <16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
<t1cord$eqq$1@dont-email.me> <a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
<t1cumj$lq$1@dont-email.me> <654e8f2b-5fea-4445-aa5b-571798436b4cn@googlegroups.com>
<20220322120913.685@kylheku.com> <63d6ab71-a8b7-4c74-9744-4d71389c298cn@googlegroups.com>
<20220322125626.864@kylheku.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1661e82a-865c-45d5-bbfd-ff6e88d92fc8n@googlegroups.com>
Subject: Re: University Challenge
From: mutazi...@gmail.com (muta...@gmail.com)
Injection-Date: Tue, 22 Mar 2022 22:00:21 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 228
 by: muta...@gmail.com - Tue, 22 Mar 2022 22:00 UTC

On Wednesday, March 23, 2022 at 7:30:49 AM UTC+11, Kaz Kylheku wrote:

> >> If the only notice on a work is something like
> >> that "Author Bob Smith assigned this to the public domain on July 19,
> >> 2013" then it may not be considered to be properly licensed in all.
> >
> > I'm happy to use it. I'm not happy to use something with
> > the word "copyright" in it, or rather, I'll only do that
> > temporarily.

> But this situation is that the copyright protection is implicit;
> so you're just having a pointless allergic reaction to it being
> spelled out in a word.

It's not pointless. No attempt to assert copyright when
copyright could have easily been asserted weakens any
case the author may have against me.

The public domain dedication weakens his case even more.

> It's conceivable that some crooks (similar to copyright trolls) could
> latch onto this idea and find software authors to harass with trumped
> up liability claims.

We've had decades of laborious disclaimers against a
fear of something that might happen one day in some
galaxy?

> > https://sourceforge.net/p/pdos/gitcode/ci/master/tree/src/world.c
>
> Your program fails to flush the output stream to force the error message
> to be passed from the stream's buffer to the host environment, and
> check whether that forwarding succeeded. It relies on the output being
> implicitly flushed, and returns success unconditionally.
>
> You've not explicitly documented that these are *not* requirements for
> your program, so they could be inferred as being general reliability
> issues, particularly in light of your strong claim that the program
> is error-free. If you don't say what constitutes errors, it has the
> broadest possible interpretation: every conceivable fault is absent.

So sue me and see how far you get. It would be good
to have a test case after decades of nothing.

> >> All that you would reasonably want to do as a
> >> developer with public domain code, you can do with BSD or MIT code.
> >
> > Wrong. I don't want to be sued by the copyright holder
> > because he thinks I have violated some implied right
> > in what is unambiguously his code,

> That could happen anyway even if the word "copyright" isn't there.

Sure, but he'll have a much tougher time in court. And in
America, my main target (I'm not American), he has no
chance at all.

> Someone who makes their code public using any copying/licensing blurb
> whatsoever (including none at all or "assigned to the public domain")
> could change their mind and try to sue people.
>
> People will try this and that.

So far I don't think anyone has tried that.

And regardless, that's as good as it gets. Your only other
choice is to write everything yourself, and even then, someone
can STILL sue you claiming you copied their code.

> Your best bet is to have a clear license from them which confirms what
> rights they passed on to you at the time.

Your best bet is public domain, with CC0 fallback, making it
clear that zero attempt has been made to add any restriction
or hold on to any ownership such that the author may one day
see you in court. He doesn't own it.

> Shit will happen. Sometimes people put a license on something which
> isn't theirs. If you take some piece of leaked MS WIndows code,
> remove any copyright notices and add a public domain assignment,
> that doesn't mean it's valid. Any improper claim can be voided,
> hanging its believers out to dry.

That's true of any license, and is a completely different issue
of authorship. Regardless, the person using such code is not
guilty of WILFULL copyright violation.

> > because he never relinquished copyright. He explicitly held onto it.
>
> That is false; the BSD and MIT licenses relinquish specific rights,
> just not the attribution right, entirely.

It's not false. I said he explicitly held on to copyright.

And yes, if your legal team thinks that the copyright holder
has allowed you to use his code without a popup every 5
seconds saying "ha ha this code is copyrighted by me" without
taking you to court if you fail to do so, that's your risk to take.

Me, I'll hang on until someone makes zero attempt to retain
ownership of the code, and every attempt to disown it.

> >> These licenses ask you to preserve those licenses.
> >
> > Hence the term "virus".

> I'm not aware of the term "virus" being applied to BSD, MIT and their
> ilk; they are not commonly described as viral licenses.
>
> They are not viral because they make no conditions about what license
> may be or must be applied to *other* pieces that the work is combined
> with.

Derived work need to contain what they tell you to contain.
They're the boss. They tell you to jump, you say "how high".

With public domain, there is no longer a boss. Nothing for
your legal team to ponder.

> >> Therefore you may not
> >> perpetrate certain plagiarism that you might get away with in the case
> >> of a public domain work, like falsely asserting authorship over
> >> something.
> >
> > The modified version IS your version, it's not false ownership.

> It is not so much about ownership as academic conduct.
>
> If you're taking an exam, and the person next to you put a CC0 license
> above their answer sheet, that doesn't mean it's OK for you to crib the
> answer, and present it as your original work, for reasons not directly
> related to copyright.

Copying code in an exam is a completely different topic,
and applies regardless of the license. Assuming exam
answers are actually copyrightable.

> But copyright can be used as an assertion against plagiarism.
> Basicall that's all BSD does. "Don't plagiarize this, and don't
> remove the liability disclaimer".

Plus any implied rights the author may verbalize when he
takes you to court.

Regardless, if you trust your interpretation of the BSD license
and are comfortable with it, that's fine. No skin off my nose.

But me, or anyone like me, will hang out until someone is
willing to totally distance themselves from ownership of a
bit of code.

And those are the people I am catering for. Not you.

> > My goal is to not have anyone claim ownership of a single
> > byte of my source or executables.

> Then public domain is not aligned with your goal,

Not true.

> Someone can easily
> engage in behavior in which other people believe that they are the
> author of that code.

Proof of authorship is an entirely different topic and applies
to any license. And some people believe in the Loch Ness
Monster too. That is beyond scope for me.

> Excerpts of public domain code may be placed into any code without any
> attribution, and if that surrounding code has an obvious owner, that
> will be assumed over the borrowed excerpt too.

Which is fine by me. That's actually what I want. I want
commercial vendors to copy and paste my code into
theirs, and for people to pay for that new work, rewarding
them for their apparent hard work, even though, for this
bit of code, the value that they added is just to make
people aware this code exists and can be used (on their
terms).

Most people aren't going to spend the effort to try to find
the original public domain code from me which they could
have had for free. I'm not the one risking my money on
advertising.

> > Yes, I release my code to the public domain and say that you can
> > follow CC0 if you prefer.

> But that's redundant, since CC0 already has the public domain assignment
> as the primary feature, with fallback on as-free-as-possible licensing.

Redundancy is harmless. I want to see someone prepared
to write those words.

BTW, the full text doesn't actually include that phrase:

https://creativecommons.org/publicdomain/zero/1.0/legalcode

> >> (I find CC0 verbose; whereas BSD is small enough that you can have
> >> it as a header in every source file, so things are crystal clear even if
> >> people pick pieces out of your program.)
> >
> > The word "copyright" is crystal clear.

> No, it isn't; you cannot infer all the facts about copyright from
> the word alone, or its brief definition in a general dictionary.
>
> You don't know everything from "copy" and "right", such as that there
> are multiple different rights under the umbrella of copyright law, such
> as the right not to have something you *didn't* produce attributed to
> you (attribution right).

It is crystal clear that all the legal implications of copyright
protection are being invoked. It is crystal clear that the
right of ownership is not being rescinded.


Click here to read the complete article
Re: University Challenge

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

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Keith.S....@gmail.com (Keith Thompson)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Tue, 22 Mar 2022 15:31:49 -0700
Organization: None to speak of
Lines: 10
Message-ID: <87bkxx39gq.fsf@nosuchdomain.example.com>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me>
<55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me>
<16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
<t1cord$eqq$1@dont-email.me>
<a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
<t1cumj$lq$1@dont-email.me>
<654e8f2b-5fea-4445-aa5b-571798436b4cn@googlegroups.com>
<20220322120913.685@kylheku.com>
<63d6ab71-a8b7-4c74-9744-4d71389c298cn@googlegroups.com>
<20220322125626.864@kylheku.com>
<1661e82a-865c-45d5-bbfd-ff6e88d92fc8n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="410f218d909f525edcc53f6509a10b5c";
logging-data="9757"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+h5+pejkq4Z4PpSVyteh/3"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Cancel-Lock: sha1:Vb3Unz1EC1Puw/8xCU2ZF6rUKps=
sha1:WnpHeVg2aT8Z5UExd/zQKAZVjNQ=
 by: Keith Thompson - Tue, 22 Mar 2022 22:31 UTC

"muta...@gmail.com" <mutazilah@gmail.com> writes:
> On Wednesday, March 23, 2022 at 7:30:49 AM UTC+11, Kaz Kylheku wrote:
[228 lines deleted]

A gentle reminder: This newsgroup is about C, not about copyright law.

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

Re: University Challenge

<t1gp7l$r9q$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!NWBQctYDi7NlCOQPK8oY6A.user.46.165.242.75.POSTED!not-for-mail
From: mess...@bottle.org (Guillaume)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Thu, 24 Mar 2022 04:40:35 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t1gp7l$r9q$1@gioia.aioe.org>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me>
<55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me>
<16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
<t1cord$eqq$1@dont-email.me>
<a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
<t1cumj$lq$1@dont-email.me>
<654e8f2b-5fea-4445-aa5b-571798436b4cn@googlegroups.com>
<20220322120913.685@kylheku.com>
<63d6ab71-a8b7-4c74-9744-4d71389c298cn@googlegroups.com>
<t1dcag$1f86$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="27962"; posting-host="NWBQctYDi7NlCOQPK8oY6A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: fr
X-Notice: Filtered by postfilter v. 0.9.2
 by: Guillaume - Thu, 24 Mar 2022 03:40 UTC

Le 22/03/2022 à 21:41, Mateusz Viste a écrit :
> 2022-03-22 at 12:45 -0700, muta...@gmail.com wrote:
>> https://sourceforge.net/p/pdos/gitcode/ci/master/tree/src/world.c
>
> Why printf() ? Calling puts() would likely produce a smaller executable.

Decent and recent C compilers already generate a call to puts() for this
(and rightfully removes the final '\n' from the string.) GCC certainly does.

Re: University Challenge

<t1h86u$17v0$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!aioe.org!B158glJDA7lXL8//1bkt4g.user.46.165.242.75.POSTED!not-for-mail
From: mate...@xyz.invalid (Mateusz Viste)
Newsgroups: comp.lang.c
Subject: Re: University Challenge
Date: Thu, 24 Mar 2022 08:56:14 +0100
Organization: . . .
Message-ID: <t1h86u$17v0$1@gioia.aioe.org>
References: <3cb13459-3ef7-44f7-b04c-f77d46ff963en@googlegroups.com>
<87czigmnt5.fsf@bsb.me.uk>
<532e199f-108c-49d3-8ff1-0912effbb8d1n@googlegroups.com>
<64702fee-75db-472b-b8ad-88cf26f1ac24n@googlegroups.com>
<50422387-026b-439b-a422-690b17d5c8f1n@googlegroups.com>
<t19au1$v22$1@dont-email.me>
<ae1fec82-58c3-42d2-a3b9-be3396b88ad2n@googlegroups.com>
<t19scl$65f$1@dont-email.me>
<395bf56b-a391-46db-89b0-ff7dcb4729afn@googlegroups.com>
<t1c351$q9t$1@dont-email.me>
<55cb51ec-c867-4a83-af32-96d854b51985n@googlegroups.com>
<t1c8ss$dag$1@dont-email.me>
<16cbf8f8-5fb5-4ca9-b91f-d1fff729776fn@googlegroups.com>
<t1cord$eqq$1@dont-email.me>
<a04fa2be-7517-4e28-a590-ee153fafb1e3n@googlegroups.com>
<t1cumj$lq$1@dont-email.me>
<654e8f2b-5fea-4445-aa5b-571798436b4cn@googlegroups.com>
<20220322120913.685@kylheku.com>
<63d6ab71-a8b7-4c74-9744-4d71389c298cn@googlegroups.com>
<t1dcag$1f86$1@gioia.aioe.org>
<t1gp7l$r9q$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="40928"; posting-host="B158glJDA7lXL8//1bkt4g.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Mateusz Viste - Thu, 24 Mar 2022 07:56 UTC

2022-03-24 at 04:40 +0100, Guillaume wrote:
> Decent and recent C compilers already generate a call to puts() for
> this (and rightfully removes the final '\n' from the string.) GCC
> certainly does.

Maybe they do, but they will no longer when for example the program
evolves and starts storing its string in a resource file. There are
optimizations that are better being left to the compiler, but obvious
ones still might benefit from being handled by a human brain.

Also worth noting that the context of this thread is not exactly about
most "decent and recent" things. :)

Mateusz

Pages:123
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor