Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Computers don't actually think. You just think they think. (We think.)


devel / comp.lang.c / Re: A comment about dogwhistles

SubjectAuthor
* Why is there not a single good JSON library for C?Blue-Maned_Hawk
+* Re: Why is there not a single good JSON library for C?Bonita Montero
|`* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| +* Re: Why is there not a single good JSON library for C?Bonita Montero
| |`* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| | +* Re: Why is there not a single good JSON library for C?Bonita Montero
| | |`* Re: Why is there not a single good JSON library for C?fir
| | | `* Re: Why is there not a single good JSON library for C?Bonita Montero
| | |  +* Re: Why is there not a single good JSON library for C?fir
| | |  |`- Re: Why is there not a single good JSON library for C?fir
| | |  +- Re: Why is there not a single good JSON library for C?Chris M. Thomasson
| | |  `* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| | |   `- Re: Why is there not a single good JSON library for C?Bonita Montero
| | `* Re: Why is there not a single good JSON library for C?Kaz Kylheku
| |  +- Re: Why is there not a single good JSON library for C?Keith Thompson
| |  `* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| |   +* Re: Why is there not a single good JSON library for C?Keith Thompson
| |   |`* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| |   | `* Re: Why is there not a single good JSON library for C?Keith Thompson
| |   |  `- Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| |   `- Re: Why is there not a single good JSON library for C?James Kuyper
| `- Re: Why is there not a single good JSON library for C?Joe Pfeiffer
+* Re: Why is there not a single good JSON library for C?Ben Bacarisse
|`* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| `- Re: Why is there not a single good JSON library for C?Ben Bacarisse
+* Re: Why is there not a single good JSON library for C?fir
|+* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
||`* Re: Why is there not a single good JSON library for C?fir
|| +- Re: Why is there not a single good JSON library for C?fir
|| `* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
||  +- Re: Why is there not a single good JSON library for C?fir
||  +* Re: Why is there not a single good JSON library for C?Malcolm McLean
||  |`- Re: Why is there not a single good JSON library for C?fir
||  `* Re: Why is there not a single good JSON library for C?Chris M. Thomasson
||   `* Re: Why is there not a single good JSON library for C?BGB
||    `* Re: Why is there not a single good JSON library for C?Scott Lurndal
||     `* Re: Why is there not a single good JSON library for C?Bart
||      +- Re: Why is there not a single good JSON library for C?Scott Lurndal
||      `* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
||       `- Re: Why is there not a single good JSON library for C?fir
|`* Re: Why is there not a single good JSON library for C?Vir Campestris
| +* Re: Why is there not a single good JSON library for C?bart c
| |+- Re: Why is there not a single good JSON library for C?Öö Tiib
| |`* Re: Why is there not a single good JSON library for C?fir
| | `* Re: Why is there not a single good JSON library for C?fir
| |  `* Re: Why is there not a single good JSON library for C?fir
| |   `- Re: Why is there not a single good JSON library for C?fir
| `- Re: Why is there not a single good JSON library for C?fir
+- Re: Why is there not a single good JSON library for C?Öö Tiib
+* Re: Why is there not a single good JSON library for C?Kaz Kylheku
|`* Re: Why is there not a single good JSON library for C?Simon.Says.Yes
| +* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| |+- Re: Why is there not a single good JSON library for C?Simon.Says.Yes
| |`- Re: Why is there not a single good JSON library for C?Kaz Kylheku
| +* Re: Why is there not a single good JSON library for C?Öö Tiib
| |+* Re: Why is there not a single good JSON library for C?Simon.Says.Yes
| ||+- Re: Why is there not a single good JSON library for C?Richard Damon
| ||+- Re: Why is there not a single good JSON library for C?Ben Bacarisse
| ||+- Re: Why is there not a single good JSON library for C?James Kuyper
| ||`* Re: Why is there not a single good JSON library for C?David Brown
| || +* PGP signatures and BASE64 posts (Was : Why is there not a single good JSON libraSpiros Bousbouras
| || |`* Re: PGP signatures and BASE64 posts (Was : Why is there not a singleDavid Brown
| || | `- Re: PGP signatures and BASE64 posts (Was : Why is there not aAnton Shepelev
| || `* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| ||  +* Re: Why is there not a single good JSON library for C?David Brown
| ||  |`* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| ||  | +* Re: Why is there not a single good JSON library for C?Ben Bacarisse
| ||  | |`* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| ||  | | +- Re: Why is there not a single good JSON library for C?Keith Thompson
| ||  | | `* Re: Why is there not a single good JSON library for C?Ben Bacarisse
| ||  | |  `* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| ||  | |   +* Re: Why is there not a single good JSON library for C?Keith Thompson
| ||  | |   |`* Re: Why is there not a single good JSON library for C?Kaz Kylheku
| ||  | |   | +* Re: Why is there not a single good JSON library for C?Manu Raju
| ||  | |   | |`- Re: Why is there not a single good JSON library for C?Anton Shepelev
| ||  | |   | +- Re: Why is there not a single good JSON library for C?Keith Thompson
| ||  | |   | +* Re: Why is there not a single good JSON library for C?Ben Bacarisse
| ||  | |   | |`* Re: Why is there not a single good JSON library for C?Anton Shepelev
| ||  | |   | | `- Re: Why is there not a single good JSON library for C?Ben Bacarisse
| ||  | |   | `- Re: Why is there not a single good JSON library for C?Richard Damon
| ||  | |   `* Re: Why is there not a single good JSON library for C?Ben Bacarisse
| ||  | |    `* Re: Why is there not a single good JSON library for C?Keith Thompson
| ||  | |     `- Re: Why is there not a single good JSON library for C?David Brown
| ||  | `* Re: Why is there not a single good JSON library for C?David Brown
| ||  |  `* Re: Why is there not a single good JSON library for C?Blue-Maned_Hawk
| ||  |   `* Re: Why is there not a single good JSON library for C?Keith Thompson
| ||  |    `* Re: Why is there not a single good JSON library for C?David Brown
| ||  |     +- Re: Why is there not a single good JSON library for C?Chris M. Thomasson
| ||  |     `* Re: Why is there not a single good JSON library for C?bart c
| ||  |      +- Re: Why is there not a single good JSON library for C?David Brown
| ||  |      +* Re: Why is there not a single good JSON library for C?Scott Lurndal
| ||  |      |`* Re: Why is there not a single good JSON library for C?Öö Tiib
| ||  |      | `* Re: Why is there not a single good JSON library for C?Phil Carmody
| ||  |      |  `* Re: Why is there not a single good JSON library for C?bart c
| ||  |      |   `* Re: Why is there not a single good JSON library for C?BGB
| ||  |      |    `* Re: Why is there not a single good JSON library for C?David Brown
| ||  |      |     `* Re: Why is there not a single good JSON library for C?BGB
| ||  |      |      `* Re: Why is there not a single good JSON library for C?Chris M. Thomasson
| ||  |      |       `- Re: Why is there not a single good JSON library for C?BGB
| ||  |      `* Re: Why is there not a single good JSON library for C?fir
| ||  |       `- Re: Why is there not a single good JSON library for C?fir
| ||  `* Re: Why is there not a single good JSON library for C?Keith Thompson
| |`- Re: Why is there not a single good JSON library for C?Chris M. Thomasson
| `- Re: Why is there not a single good JSON library for C?Ben Bacarisse
+- Re: Why is there not a single good JSON library for C?Anton Shepelev
`* Re: Why is there not a single good JSON library for C?Opus

Pages:1234567
A comment about dogwhistles

<86lellf1xx.fsf_-_@linuxsc.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: A comment about dogwhistles
Date: Sun, 29 Jan 2023 13:47:22 -0800
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <86lellf1xx.fsf_-_@linuxsc.com>
References: <tqk2pa$37qfr$1@dont-email.me> <20230122153439.10@kylheku.com> <tqklh2$vb2$1@gioia.aioe.org> <d5b5a9f1-9ee1-496d-b900-ddcb7864300an@googlegroups.com> <tqknsu$1mgl$1@gioia.aioe.org> <tqlmnt$3if0k$6@dont-email.me> <tqm520$3l01v$2@dont-email.me> <87h6whggpb.fsf@nosuchdomain.example.com> <878rhrkq26.fsf@zotaspaz.fatphil.org> <6df94312-1b91-438a-9d72-0ab20892438en@googlegroups.com> <877cxajw2z.fsf@zotaspaz.fatphil.org> <tqrunv$pf5a$2@dont-email.me> <87lelqiezy.fsf@nosuchdomain.example.com> <87h6wei42x.fsf_-_@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader01.eternal-september.org; posting-host="8ce3893f3eb724e7abcf14dabf224dec";
logging-data="3076884"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lMnpaPEx/m3o7q4OdqvOdVGPVzU0vCEQ="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:lAREkiOr54y2dIuSl5Ie7a3fP7k=
sha1:9k6BTPOP3qAZp/O70vksjdwUARY=
 by: Tim Rentsch - Sun, 29 Jan 2023 21:47 UTC

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

[...]

> It was Phil Carmody [...] who insinuated that "octoctal" is a
> neo-Nazi dogwhistle.

I think it's important to distinguish between saying a particular
word is /heard/ by some (or many) people as a dogwhistle, and
saying that a given speaker who used the word /intended to give/
a dogwhistle.

I don't know what Phil was thinking when he made his comment, but
I think we shouldn't assume he meant one of these alternatives
when he may have meant only the other.

Re: Why is there not a single good JSON library for C?

<86h6w9f1nt.fsf@linuxsc.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: tr.17...@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: Why is there not a single good JSON library for C?
Date: Sun, 29 Jan 2023 13:53:26 -0800
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <86h6w9f1nt.fsf@linuxsc.com>
References: <tqk2pa$37qfr$1@dont-email.me> <20230122153439.10@kylheku.com> <tqklh2$vb2$1@gioia.aioe.org> <d5b5a9f1-9ee1-496d-b900-ddcb7864300an@googlegroups.com> <tqknsu$1mgl$1@gioia.aioe.org> <tqlmnt$3if0k$6@dont-email.me> <tqm520$3l01v$2@dont-email.me> <87h6whggpb.fsf@nosuchdomain.example.com> <878rhrkq26.fsf@zotaspaz.fatphil.org> <6df94312-1b91-438a-9d72-0ab20892438en@googlegroups.com> <877cxajw2z.fsf@zotaspaz.fatphil.org> <tqrunv$pf5a$2@dont-email.me> <87lelqiezy.fsf@nosuchdomain.example.com> <tqsdcs$rpkn$3@dont-email.me> <87y1pmi7f1.fsf@zotaspaz.fatphil.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader01.eternal-september.org; posting-host="8ce3893f3eb724e7abcf14dabf224dec";
logging-data="3076884"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xLobq5pmCE3hgx/+04sbz5YzkzY34Y/M="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:XAJt6gK3v/+e7IKbJvXfI8uDB10=
sha1:rWXqpT++tx0D3/PPXCvAf+2uDuI=
 by: Tim Rentsch - Sun, 29 Jan 2023 21:53 UTC

Phil Carmody <pc+usenet@asdf.org> writes:

> David Brown <david.brown@hesbynett.no> writes:
>
>> I think Phil's insinuations are too far-fetched and obscured to be
>> particularly offensive - perhaps he was trying to mock the daftest of
>> conspiracy theorists for some reason. It made as much sense as if
>> he'd suggested "octoctal" was a reference to two fat ladies.
>
> You get it.
>
> And there was no accusation of any individual. I was making a comment
> about an intrinsic property of a sequence of characters, nothing more.

I understand (at least I think I do) the point you're trying to
make, and I think the point is an important one to make.

However, I feel obliged to point out that the property here is
not intrinsic to a sequence of characters, but depends on who the
recipients are. It is a question of fact, but the facts depend
on who the listeners are as well as on what words are used.

Re: Why is there not a single good JSON library for C?

<1bo7qgd68h.fsf@pfeifferfamily.net>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pfeif...@cs.nmsu.edu (Joe Pfeiffer)
Newsgroups: comp.lang.c
Subject: Re: Why is there not a single good JSON library for C?
Date: Sun, 29 Jan 2023 20:57:34 -0700
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <1bo7qgd68h.fsf@pfeifferfamily.net>
References: <tqk2pa$37qfr$1@dont-email.me> <20230122153439.10@kylheku.com>
<tqklh2$vb2$1@gioia.aioe.org>
<d5b5a9f1-9ee1-496d-b900-ddcb7864300an@googlegroups.com>
<tqknsu$1mgl$1@gioia.aioe.org> <tqlmnt$3if0k$6@dont-email.me>
<tqm520$3l01v$2@dont-email.me>
<87h6whggpb.fsf@nosuchdomain.example.com>
<878rhrkq26.fsf@zotaspaz.fatphil.org>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="823face9a196d6565f2c0255c60a5c72";
logging-data="3303575"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MuHG18DviKNAPicN9c2jcI+po4BNv2z0="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:CH6tDQornqpCPOPu0cDEuc3U5oI=
sha1:teAG8hWzou+5fduws+WPCJxqdfA=
 by: Joe Pfeiffer - Mon, 30 Jan 2023 03:57 UTC

Phil Carmody <pc+usenet@asdf.org> writes:

> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>> Apparently "octoctal" is an extremely obscure term for an encoding that
>> is almost universally called base64. Did you seriously expect your
>> readers to know that, or were you just trying to appear clever at the
>> expense of actually communicating?
>
> It's also a handy dogwhistle. I'm sure the ADL would take great
> offence. Explanation in the headers, but treat it as a puzzle and
> you should be able to work it out pretty quickly, in particular
> if you already know who the ADL are.

Have you read what the ADL has to say about the actual number 88 and
non-white supremacist contexts? You're mistaking tinnitis for the sound
of a dog whistle.

Re: Why is there not a single good JSON library for C?

<tr7j5e$35d0h$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: cr88...@gmail.com (BGB)
Newsgroups: comp.lang.c
Subject: Re: Why is there not a single good JSON library for C?
Date: Sun, 29 Jan 2023 23:04:42 -0600
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <tr7j5e$35d0h$1@dont-email.me>
References: <tqk2pa$37qfr$1@dont-email.me> <20230122153439.10@kylheku.com>
<tqklh2$vb2$1@gioia.aioe.org>
<d5b5a9f1-9ee1-496d-b900-ddcb7864300an@googlegroups.com>
<tqknsu$1mgl$1@gioia.aioe.org> <tqlmnt$3if0k$6@dont-email.me>
<tqm520$3l01v$2@dont-email.me> <87h6whggpb.fsf@nosuchdomain.example.com>
<878rhrkq26.fsf@zotaspaz.fatphil.org> <1bo7qgd68h.fsf@pfeifferfamily.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Jan 2023 05:04:46 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="ce8f5796ba938f78bcd32c352bb5b4cc";
logging-data="3322897"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Q3WSiwBc3KOaaKQjMoXKs"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
Thunderbird/102.6.1
Cancel-Lock: sha1:ffsylLs0jw6yHSZZgehzsoxJfnY=
Content-Language: en-US
In-Reply-To: <1bo7qgd68h.fsf@pfeifferfamily.net>
 by: BGB - Mon, 30 Jan 2023 05:04 UTC

On 1/29/2023 9:57 PM, Joe Pfeiffer wrote:
> Phil Carmody <pc+usenet@asdf.org> writes:
>
>> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>>> Apparently "octoctal" is an extremely obscure term for an encoding that
>>> is almost universally called base64. Did you seriously expect your
>>> readers to know that, or were you just trying to appear clever at the
>>> expense of actually communicating?
>>
>> It's also a handy dogwhistle. I'm sure the ADL would take great
>> offence. Explanation in the headers, but treat it as a puzzle and
>> you should be able to work it out pretty quickly, in particular
>> if you already know who the ADL are.
>
> Have you read what the ADL has to say about the actual number 88 and
> non-white supremacist contexts? You're mistaking tinnitis for the sound
> of a dog whistle.

Interestingly, I had not heard of this usage until it came up in this
thread...

But, yeah, numbers like this can come up in lots of other contexts
purely by chance.

Well, and sometimes there is also the possibly fuzzy line between what
is antisemitism, and what is self-deprecating humor, ... In some sense,
context would need to be considered as well to try to determine the
intended effect.

But, there is always also the possibility of people taking offense at
things that were not intended to cause offense. Well, just as there is
the possibility of those with hostile intentions trying to downplay it
as an "innocent joke".

And, for someone whose status is more ambiguous, it can be awkward as
well (both in terms of concern of hostility from those who dislike the
group, and the paranoia that things they say could be taken as offensive
by those who view them as an outsider, so alas...).

Re: Why is there not a single good JSON library for C?

<trjrhk$1j6vk$2@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: vir.camp...@invalid.invalid (Vir Campestris)
Newsgroups: comp.lang.c
Subject: Re: Why is there not a single good JSON library for C?
Date: Fri, 3 Feb 2023 20:41:24 +0000
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <trjrhk$1j6vk$2@dont-email.me>
References: <tqk2pa$37qfr$1@dont-email.me>
<56844f74-6a5f-40da-a919-ab62f53bdd23n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 3 Feb 2023 20:41:24 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="cd922525bf2a780b7e2b91685fb80daa";
logging-data="1678324"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dRKhj+XGoqIRtCaxNrO00NxG453cFiy4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.4.2
Cancel-Lock: sha1:q5TZ9BUsQVlbPYTv2IrWFsYb1Uk=
Content-Language: en-GB
In-Reply-To: <56844f74-6a5f-40da-a919-ab62f53bdd23n@googlegroups.com>
 by: Vir Campestris - Fri, 3 Feb 2023 20:41 UTC

On 22/01/2023 19:59, fir wrote:
> when i work with text files i read it into ram then work on it...

Not all text files are small. I've had to work on files many gigabytes
in size, and it can be hard to read the whole file in memory.

It also means that the IO has to happen first (reading the file) then
the processing can being only after the entire file has been read.

If you have a decent operating system - and that's most of them these
days - when you read a few bytes out of a file it will pre-buffer
several kB in advance so the next read is out of the cache.

Processing a large file as you read it can be many times faster than
reading it in, then processing it. Even if it fits in your RAM.

Andy

Re: Why is there not a single good JSON library for C?

<4848909a-1004-4c84-bd44-123d1e0b002en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:5d3:b0:3ba:18f5:b639 with SMTP id d19-20020a05622a05d300b003ba18f5b639mr222099qtb.292.1675560735831;
Sat, 04 Feb 2023 17:32:15 -0800 (PST)
X-Received: by 2002:a5b:34c:0:b0:7c0:10aa:961e with SMTP id
q12-20020a5b034c000000b007c010aa961emr1736075ybp.346.1675560735653; Sat, 04
Feb 2023 17:32:15 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Sat, 4 Feb 2023 17:32:15 -0800 (PST)
In-Reply-To: <trjrhk$1j6vk$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=94.175.38.125; posting-account=rqC7UgoAAACeVvrGykivrxfPIl3bA_1y
NNTP-Posting-Host: 94.175.38.125
References: <tqk2pa$37qfr$1@dont-email.me> <56844f74-6a5f-40da-a919-ab62f53bdd23n@googlegroups.com>
<trjrhk$1j6vk$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4848909a-1004-4c84-bd44-123d1e0b002en@googlegroups.com>
Subject: Re: Why is there not a single good JSON library for C?
From: bart4...@gmail.com (bart c)
Injection-Date: Sun, 05 Feb 2023 01:32:15 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2698
 by: bart c - Sun, 5 Feb 2023 01:32 UTC

On Friday, 3 February 2023 at 20:41:39 UTC, Vir Campestris wrote:
> On 22/01/2023 19:59, fir wrote:
> > when i work with text files i read it into ram then work on it...
>
> Not all text files are small. I've had to work on files many gigabytes
> in size, and it can be hard to read the whole file in memory.
>
> It also means that the IO has to happen first (reading the file) then
> the processing can being only after the entire file has been read.
>
> If you have a decent operating system - and that's most of them these
> days - when you read a few bytes out of a file it will pre-buffer
> several kB in advance so the next read is out of the cache.
>
> Processing a large file as you read it can be many times faster than
> reading it in, then processing it. Even if it fits in your RAM.
>
> Andy

I wouldn't exactly call such a file a text file, which implies something that is human readable.

Most text files I read are source files, and an upper limit for normal files (not specially created tests) is 0.1MB. So I could have 40,000 such maximum files load at the same time on my 8GB machine with little problem.

It would be silly then to process such files via a tiny read buffer, so that you'd have to keep checking for end-of-buffer for each character even in the middle of a token.

(If somebody had told me 40 years ago that one day we'd have machines with a quarter of a million times as much RAM, but we'd still have to using buffering for the simplest text file...!)

Re: Why is there not a single good JSON library for C?

<9c65788c-170d-4f97-ad9a-5320e58ef68en@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a0c:e4c3:0:b0:56b:f227:90c7 with SMTP id g3-20020a0ce4c3000000b0056bf22790c7mr75646qvm.67.1675607740990;
Sun, 05 Feb 2023 06:35:40 -0800 (PST)
X-Received: by 2002:a25:d303:0:b0:816:c63:dc94 with SMTP id
e3-20020a25d303000000b008160c63dc94mr1330010ybf.68.1675607740769; Sun, 05 Feb
2023 06:35:40 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Sun, 5 Feb 2023 06:35:40 -0800 (PST)
In-Reply-To: <4848909a-1004-4c84-bd44-123d1e0b002en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=145.14.47.111; posting-account=pysjKgkAAACLegAdYDFznkqjgx_7vlUK
NNTP-Posting-Host: 145.14.47.111
References: <tqk2pa$37qfr$1@dont-email.me> <56844f74-6a5f-40da-a919-ab62f53bdd23n@googlegroups.com>
<trjrhk$1j6vk$2@dont-email.me> <4848909a-1004-4c84-bd44-123d1e0b002en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9c65788c-170d-4f97-ad9a-5320e58ef68en@googlegroups.com>
Subject: Re: Why is there not a single good JSON library for C?
From: oot...@hot.ee (Öö Tiib)
Injection-Date: Sun, 05 Feb 2023 14:35:40 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3344
 by: Öö Tiib - Sun, 5 Feb 2023 14:35 UTC

On Sunday, 5 February 2023 at 03:32:22 UTC+2, bart c wrote:
> On Friday, 3 February 2023 at 20:41:39 UTC, Vir Campestris wrote:
> > On 22/01/2023 19:59, fir wrote:
> > > when i work with text files i read it into ram then work on it...
> >
> > Not all text files are small. I've had to work on files many gigabytes
> > in size, and it can be hard to read the whole file in memory.
> >
> > It also means that the IO has to happen first (reading the file) then
> > the processing can being only after the entire file has been read.
> >
> > If you have a decent operating system - and that's most of them these
> > days - when you read a few bytes out of a file it will pre-buffer
> > several kB in advance so the next read is out of the cache.
> >
> > Processing a large file as you read it can be many times faster than
> > reading it in, then processing it. Even if it fits in your RAM.
> >
> > Andy
> I wouldn't exactly call such a file a text file, which implies something that is human readable.
>
> Most text files I read are source files, and an upper limit for normal files (not specially created tests) is 0.1MB. So I could have 40,000 such maximum files load at the same time on my 8GB machine with little problem.
>
> It would be silly then to process such files via a tiny read buffer, so that you'd have to keep checking for end-of-buffer for each character even in the middle of a token.
>
> (If somebody had told me 40 years ago that one day we'd have machines with a quarter of a million times as much RAM, but we'd still have to using buffering for the simplest text file...!)

Note that vast majority of text files and messages have not been meant
to be normally read by humans for two human generations. Things
like Postscript were invented in end of seventies. The human readability
of most text formats and protocols is there only for to make searching,
comparing and discussing potential defects and sources of misbehavior
possible with less need for special tools. Or for to make making such tools
easier.

Re: Why is there not a single good JSON library for C?

<2a14bd85-2b06-4a5b-9e21-6548eb83a813n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:14b:b0:3b8:6cb0:8d26 with SMTP id v11-20020a05622a014b00b003b86cb08d26mr1761627qtw.375.1675614529204;
Sun, 05 Feb 2023 08:28:49 -0800 (PST)
X-Received: by 2002:a0d:f2c6:0:b0:506:6130:258e with SMTP id
b189-20020a0df2c6000000b005066130258emr1725293ywf.346.1675614528929; Sun, 05
Feb 2023 08:28:48 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Sun, 5 Feb 2023 08:28:48 -0800 (PST)
In-Reply-To: <trjrhk$1j6vk$2@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.59; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.59
References: <tqk2pa$37qfr$1@dont-email.me> <56844f74-6a5f-40da-a919-ab62f53bdd23n@googlegroups.com>
<trjrhk$1j6vk$2@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2a14bd85-2b06-4a5b-9e21-6548eb83a813n@googlegroups.com>
Subject: Re: Why is there not a single good JSON library for C?
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 05 Feb 2023 16:28:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2295
 by: fir - Sun, 5 Feb 2023 16:28 UTC

piątek, 3 lutego 2023 o 21:41:39 UTC+1 Vir Campestris napisał(a):
> On 22/01/2023 19:59, fir wrote:
> > when i work with text files i read it into ram then work on it...
>
> Not all text files are small. I've had to work on files many gigabytes
> in size, and it can be hard to read the whole file in memory.
>
> It also means that the IO has to happen first (reading the file) then
> the processing can being only after the entire file has been read.
>
> If you have a decent operating system - and that's most of them these
> days - when you read a few bytes out of a file it will pre-buffer
> several kB in advance so the next read is out of the cache.
>
> Processing a large file as you read it can be many times faster than
> reading it in, then processing it. Even if it fits in your RAM.
>

if so on 99% (speaking somewhat metapgorically) you do
something wrong.. i already answered on that (back in post to mmclen if i remember correctly so will not find use in repeating it)

Re: Why is there not a single good JSON library for C?

<8f688580-3497-41df-ac73-aa5f90bc9952n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:151:b0:3ba:1360:ec13 with SMTP id v17-20020a05622a015100b003ba1360ec13mr534559qtw.157.1675614777429;
Sun, 05 Feb 2023 08:32:57 -0800 (PST)
X-Received: by 2002:a25:9841:0:b0:86a:b5ee:1aba with SMTP id
k1-20020a259841000000b0086ab5ee1abamr578293ybo.41.1675614777219; Sun, 05 Feb
2023 08:32:57 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Sun, 5 Feb 2023 08:32:56 -0800 (PST)
In-Reply-To: <4848909a-1004-4c84-bd44-123d1e0b002en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.59; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.59
References: <tqk2pa$37qfr$1@dont-email.me> <56844f74-6a5f-40da-a919-ab62f53bdd23n@googlegroups.com>
<trjrhk$1j6vk$2@dont-email.me> <4848909a-1004-4c84-bd44-123d1e0b002en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8f688580-3497-41df-ac73-aa5f90bc9952n@googlegroups.com>
Subject: Re: Why is there not a single good JSON library for C?
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 05 Feb 2023 16:32:57 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: fir - Sun, 5 Feb 2023 16:32 UTC

niedziela, 5 lutego 2023 o 02:32:22 UTC+1 bart c napisał(a):
> On Friday, 3 February 2023 at 20:41:39 UTC, Vir Campestris wrote:
> > On 22/01/2023 19:59, fir wrote:
> > > when i work with text files i read it into ram then work on it...
> >
> > Not all text files are small. I've had to work on files many gigabytes
> > in size, and it can be hard to read the whole file in memory.
> >
> > It also means that the IO has to happen first (reading the file) then
> > the processing can being only after the entire file has been read.
> >
> > If you have a decent operating system - and that's most of them these
> > days - when you read a few bytes out of a file it will pre-buffer
> > several kB in advance so the next read is out of the cache.
> >
> > Processing a large file as you read it can be many times faster than
> > reading it in, then processing it. Even if it fits in your RAM.
> >
> > Andy
> I wouldn't exactly call such a file a text file, which implies something that is human readable.
>
> Most text files I read are source files, and an upper limit for normal files (not specially created tests) is 0.1MB. So I could have 40,000 such maximum files load at the same time on my 8GB machine with little problem.
>
> It would be silly then to process such files via a tiny read buffer, so that you'd have to keep checking for end-of-buffer for each character even in the middle of a token.
>
> (If somebody had told me 40 years ago that one day we'd have machines with a quarter of a million times as much RAM, but we'd still have to using buffering for the simplest text file...!)

text files generally are not suitable/prone to be used thsi way that they are optimised/designed to be read partiallt then escape

it would be rether specific format for this - something like reverse log for example (latest messages last) its kinda specialistic usage and in context of this thred it was not stated it is about such very specific and rare cases ofc
(and im recently allerfiuc for people saying stupidity ony to say something, there are planty of much better topics possible)

Re: Why is there not a single good JSON library for C?

<a4a13d60-eb00-49f5-880e-fe1a2387e24an@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:7e8e:0:b0:3b6:3a22:812c with SMTP id w14-20020ac87e8e000000b003b63a22812cmr2085990qtj.96.1675615305401;
Sun, 05 Feb 2023 08:41:45 -0800 (PST)
X-Received: by 2002:a5b:c43:0:b0:867:2c8b:8279 with SMTP id
d3-20020a5b0c43000000b008672c8b8279mr201904ybr.308.1675615305186; Sun, 05 Feb
2023 08:41:45 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Sun, 5 Feb 2023 08:41:44 -0800 (PST)
In-Reply-To: <8f688580-3497-41df-ac73-aa5f90bc9952n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.59; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.59
References: <tqk2pa$37qfr$1@dont-email.me> <56844f74-6a5f-40da-a919-ab62f53bdd23n@googlegroups.com>
<trjrhk$1j6vk$2@dont-email.me> <4848909a-1004-4c84-bd44-123d1e0b002en@googlegroups.com>
<8f688580-3497-41df-ac73-aa5f90bc9952n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a4a13d60-eb00-49f5-880e-fe1a2387e24an@googlegroups.com>
Subject: Re: Why is there not a single good JSON library for C?
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 05 Feb 2023 16:41:45 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3463
 by: fir - Sun, 5 Feb 2023 16:41 UTC

niedziela, 5 lutego 2023 o 17:33:04 UTC+1 fir napisał(a):
>
> it would be rether specific format for this - something like reverse log for example (latest messages last)

i wanted to writa latset messages first (then when you read the file you may read few first lines and escape) ..in normal log file you eventually also can open log ship to end and read few last lines instead of all but this is still specialised case

in dact inm my own sickle.c library i just got a function that reads wgole file under mallocked ram and returns a pointer..its wery good way to go most cases

i can even post a code for that if someone wants

this is not a code i think has some atest to be good (as i maybe dont like something about it) its rather quickly done to work as a whole in many private uses and be ebentually made better later

int GetFileSize1(FILE* file)
{
int seek_pos = ftell(file);
int error = fseek(file, 0, SEEK_END);

if(error) ERROR_EXIT("seek1 error");

int file_length = ftell(file) ;
error = fseek(file, seek_pos, SEEK_SET);

if(error) ERROR_EXIT("seek2 error");

return file_length;
}

int GetFileSize2(char *filename)
{
struct stat st;

if (stat(filename, &st) == 0)
return (int) st.st_size;

ERROR_EXIT("error obtaining file size for &s", filename);

return -1;
}

chunk LoadChunk(char* file_name)
{ static char* internal_text = NULL;

FILE * file = fopen(file_name, "rb");

if(file == NULL) ERROR_EXIT( " cannot open file %s ", file_name);

int file_length = GetFileSize1(file);

internal_text = (char*)realloc(internal_text, file_length + 10);

if(internal_text == NULL) ERROR_EXIT(" cannot mallock data for file %s ", file_name);

int readed = fread(internal_text, 1, file_length, file);

int error = fclose(file);

if(error) ERROR_EXIT("\n cannot close file %s", file_name);

chunk text = {internal_text, internal_text + file_length - 1};
return text;

}

Re: Why is there not a single good JSON library for C?

<3e8d223d-67cd-4178-96f1-d351d164d5a7n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:4b:b0:3a8:179f:b1ba with SMTP id y11-20020a05622a004b00b003a8179fb1bamr2010803qtw.47.1675615766308;
Sun, 05 Feb 2023 08:49:26 -0800 (PST)
X-Received: by 2002:a5b:e88:0:b0:86e:f35e:e661 with SMTP id
z8-20020a5b0e88000000b0086ef35ee661mr735095ybr.279.1675615766120; Sun, 05 Feb
2023 08:49:26 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Sun, 5 Feb 2023 08:49:25 -0800 (PST)
In-Reply-To: <a4a13d60-eb00-49f5-880e-fe1a2387e24an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.59; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.59
References: <tqk2pa$37qfr$1@dont-email.me> <56844f74-6a5f-40da-a919-ab62f53bdd23n@googlegroups.com>
<trjrhk$1j6vk$2@dont-email.me> <4848909a-1004-4c84-bd44-123d1e0b002en@googlegroups.com>
<8f688580-3497-41df-ac73-aa5f90bc9952n@googlegroups.com> <a4a13d60-eb00-49f5-880e-fe1a2387e24an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3e8d223d-67cd-4178-96f1-d351d164d5a7n@googlegroups.com>
Subject: Re: Why is there not a single good JSON library for C?
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 05 Feb 2023 16:49:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4196
 by: fir - Sun, 5 Feb 2023 16:49 UTC

niedziela, 5 lutego 2023 o 17:41:52 UTC+1 fir napisał(a):
> niedziela, 5 lutego 2023 o 17:33:04 UTC+1 fir napisał(a):
> >
> > it would be rether specific format for this - something like reverse log for example (latest messages last)
> i wanted to writa latset messages first (then when you read the file you may read few first lines and escape) ..in normal log file you eventually also can open log ship to end and read few last lines instead of all but this is still specialised case
>
> in dact inm my own sickle.c library i just got a function that reads wgole file under mallocked ram and returns a pointer..its wery good way to go most cases
>
> i can even post a code for that if someone wants
>
> this is not a code i think has some atest to be good (as i maybe dont like something about it) its rather quickly done to work as a whole in many private uses and be ebentually made better later
>
>
> int GetFileSize1(FILE* file)
> {
> int seek_pos = ftell(file);
> int error = fseek(file, 0, SEEK_END);
>
> if(error) ERROR_EXIT("seek1 error");
>
> int file_length = ftell(file) ;
> error = fseek(file, seek_pos, SEEK_SET);
>
> if(error) ERROR_EXIT("seek2 error");
>
> return file_length;
> }
>
>
>
> int GetFileSize2(char *filename)
> {
> struct stat st;
>
> if (stat(filename, &st) == 0)
> return (int) st.st_size;
>
> ERROR_EXIT("error obtaining file size for &s", filename);
>
> return -1;
> }
>
>
>
> chunk LoadChunk(char* file_name)
> {
> static char* internal_text = NULL;
>
> FILE * file = fopen(file_name, "rb");
>
> if(file == NULL) ERROR_EXIT( " cannot open file %s ", file_name);
>
> int file_length = GetFileSize1(file);
>
> internal_text = (char*)realloc(internal_text, file_length + 10);
>
> if(internal_text == NULL) ERROR_EXIT(" cannot mallock data for file %s ", file_name);
>
> int readed = fread(internal_text, 1, file_length, file);
>
> int error = fclose(file);
>
> if(error) ERROR_EXIT("\n cannot close file %s", file_name);
>
> chunk text = {internal_text, internal_text + file_length - 1};
> return text;
>
> }
if someone sees clearly what is not much good in that code he may say it could make more interesting or constructive discussion.. maybe iu should check if fread not returns error but i dont remember now ..inj also not sure if get file size 1 or 2 is better (chink is of course typedef struct { char* beg,* end; } chunk; ) where end points to last char of file (i hate zero ended chars)

Re: Why is there not a single good JSON library for C?

<0761ddad-9d22-471e-ab55-b58fbd96ff83n@googlegroups.com>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a37:357:0:b0:706:5055:fa2c with SMTP id 84-20020a370357000000b007065055fa2cmr1150885qkd.292.1675616044798;
Sun, 05 Feb 2023 08:54:04 -0800 (PST)
X-Received: by 2002:a0d:c301:0:b0:51c:488b:58d4 with SMTP id
f1-20020a0dc301000000b0051c488b58d4mr1668534ywd.41.1675616044685; Sun, 05 Feb
2023 08:54:04 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Sun, 5 Feb 2023 08:54:04 -0800 (PST)
In-Reply-To: <3e8d223d-67cd-4178-96f1-d351d164d5a7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=5.172.255.59; posting-account=Sb6m8goAAABbWsBL7gouk3bfLsuxwMgN
NNTP-Posting-Host: 5.172.255.59
References: <tqk2pa$37qfr$1@dont-email.me> <56844f74-6a5f-40da-a919-ab62f53bdd23n@googlegroups.com>
<trjrhk$1j6vk$2@dont-email.me> <4848909a-1004-4c84-bd44-123d1e0b002en@googlegroups.com>
<8f688580-3497-41df-ac73-aa5f90bc9952n@googlegroups.com> <a4a13d60-eb00-49f5-880e-fe1a2387e24an@googlegroups.com>
<3e8d223d-67cd-4178-96f1-d351d164d5a7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0761ddad-9d22-471e-ab55-b58fbd96ff83n@googlegroups.com>
Subject: Re: Why is there not a single good JSON library for C?
From: profesor...@gmail.com (fir)
Injection-Date: Sun, 05 Feb 2023 16:54:04 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1987
 by: fir - Sun, 5 Feb 2023 16:54 UTC

take yet that if need

void SaveChunk(chunk ch, char* filename)
{ if(ChunkIsEmpty(ch)) return;

FILE* file = fopen (filename, "wb");

if(file == NULL) ERROR_EXIT( " cannot open file %s ", filename);

fwrite (ch.beg , 1, ChunkLength(ch), file);

fclose (file);

}

void SaveChunkTextMode(chunk ch, char* filename)
{ if(ChunkIsEmpty(ch)) return;

FILE* file = fopen (filename, "wt");

if(file == NULL) ERROR_EXIT( " cannot open file %s ", filename);

fwrite (ch.beg , 1, ChunkLength(ch), file);

fclose (file);

}

Re: A comment about dogwhistles

<87r0u6kmtb.fsf@zotaspaz.fatphil.org>

  copy mid

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

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: pc+use...@asdf.org (Phil Carmody)
Newsgroups: comp.lang.c
Subject: Re: A comment about dogwhistles
Date: Fri, 03 Mar 2023 15:05:04 +0200
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <87r0u6kmtb.fsf@zotaspaz.fatphil.org>
References: <tqk2pa$37qfr$1@dont-email.me> <20230122153439.10@kylheku.com>
<tqklh2$vb2$1@gioia.aioe.org>
<d5b5a9f1-9ee1-496d-b900-ddcb7864300an@googlegroups.com>
<tqknsu$1mgl$1@gioia.aioe.org> <tqlmnt$3if0k$6@dont-email.me>
<tqm520$3l01v$2@dont-email.me>
<87h6whggpb.fsf@nosuchdomain.example.com>
<878rhrkq26.fsf@zotaspaz.fatphil.org>
<6df94312-1b91-438a-9d72-0ab20892438en@googlegroups.com>
<877cxajw2z.fsf@zotaspaz.fatphil.org> <tqrunv$pf5a$2@dont-email.me>
<87lelqiezy.fsf@nosuchdomain.example.com>
<87h6wei42x.fsf_-_@nosuchdomain.example.com>
<86lellf1xx.fsf_-_@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="1c7c38a5d38aaa40bc5201e2fd7cacf3";
logging-data="675384"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xt9eXdnQtZaYZEa7Iwd0v"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Cancel-Lock: sha1:ToF+fv/qJnZJmlG0eZ8yQ9xk0X4=
sha1:CT/nb94EHrsc/HVBtz/2M2Liy4Q=
 by: Phil Carmody - Fri, 3 Mar 2023 13:05 UTC

Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
> Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:
>
> [...]
>
>> It was Phil Carmody [...] who insinuated that "octoctal" is a
>> neo-Nazi dogwhistle.
>
> I think it's important to distinguish between saying a particular
> word is /heard/ by some (or many) people as a dogwhistle, and
> saying that a given speaker who used the word /intended to give/
> a dogwhistle.
>
> I don't know what Phil was thinking when he made his comment, but
> I think we shouldn't assume he meant one of these alternatives
> when he may have meant only the other.

Someone walked into the thread carrying an ornate awl he was very proud of.
All I said was "nice shiv".

Phil
--
We are no longer hunters and nomads. No longer awed and frightened, as we have
gained some understanding of the world in which we live. As such, we can cast
aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/

Pages:1234567
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor