Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

A computer scientist is someone who fixes things that aren't broken.


devel / comp.std.c / Making the creation of atomic_flag optional

SubjectAuthor
* Making the creation of atomic_flag optionalPhilipp Klaus Krause
`* Re: Making the creation of atomic_flag optionalDavid Brown
 `- Re: Making the creation of atomic_flag optionalPhilipp Klaus Krause

1
Making the creation of atomic_flag optional

<upifhv$19809$1@solani.org>

  copy mid

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

  copy link   Newsgroups: comp.std.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: pkk...@spth.de (Philipp Klaus Krause)
Newsgroups: comp.std.c
Subject: Making the creation of atomic_flag optional
Date: Fri, 2 Feb 2024 11:18:39 +0100
Message-ID: <upifhv$19809$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 2 Feb 2024 10:18:39 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1351689"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:uSbWO0/ucaLD+GTi2ALs4qw3CcI=
X-User-ID: eJwFwQkBwDAMAkBLfQIjcprS+JewO2xO3i8IBhodcrYHyLJE3Jx3r/mqhg/bS4q2a72E4ugHIgAReA==
Content-Language: en-US
 by: Philipp Klaus Krause - Fri, 2 Feb 2024 10:18 UTC

Currently, atomics are an all-or-nothing choice (via __SDTC_NO_ATOMICS__).

I'd like to see a third option: support atomics, except for the creation
of atomic_flag from allocated storage (or raw character arrays). This
would make it feasible to implement atomics for some low-end systems,
that otherwise can't support them efficiently.

Your opinions on the proposal and the proposed wording are welcome:
http://www.colecovision.eu/stuff/proposal-atomic_flag.html

Philipp

Re: Making the creation of atomic_flag optional

<upl6t2$33jod$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: comp.std.c
Path: i2pn2.org!i2pn.org!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.br...@hesbynett.no (David Brown)
Newsgroups: comp.std.c
Subject: Re: Making the creation of atomic_flag optional
Date: Sat, 3 Feb 2024 12:09:22 +0100
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <upl6t2$33jod$1@dont-email.me>
References: <upifhv$19809$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 3 Feb 2024 11:09:22 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="286117263b0f6b64895f76842d127006";
logging-data="3264269"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3IO9W0b0eLOBAEuo9F3yNZSZvbc8ULX4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:xhSI1jZRHTWbvG55nS3Rwt5eJ64=
Content-Language: en-GB
In-Reply-To: <upifhv$19809$1@solani.org>
 by: David Brown - Sat, 3 Feb 2024 11:09 UTC

On 02/02/2024 11:18, Philipp Klaus Krause wrote:
> Currently, atomics are an all-or-nothing choice (via __SDTC_NO_ATOMICS__).
>
> I'd like to see a third option: support atomics, except for the creation
> of atomic_flag from allocated storage (or raw character arrays). This
> would make it feasible to implement atomics for some low-end systems,
> that otherwise can't support them efficiently.
>
> Your opinions on the proposal and the proposed wording are welcome:
> http://www.colecovision.eu/stuff/proposal-atomic_flag.html
>
> Philipp

I think it is fine to implement parts of the atomics - you just can't
define the __SDTC_NO_ATOMICS__ symbol unless you cover it all.

Re: Making the creation of atomic_flag optional

<uq20p4$1h47g$1@solani.org>

  copy mid

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

  copy link   Newsgroups: comp.std.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: pkk...@spth.de (Philipp Klaus Krause)
Newsgroups: comp.std.c
Subject: Re: Making the creation of atomic_flag optional
Date: Thu, 8 Feb 2024 08:44:36 +0100
Message-ID: <uq20p4$1h47g$1@solani.org>
References: <upifhv$19809$1@solani.org> <upl6t2$33jod$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 07:44:36 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1609968"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:zSGmys2/phhfKIBsD6/Xk3fPpxE=
Content-Language: en-US
X-User-ID: eJwNycENADEIA8GWzgoYKAeRuP8SDu1v1g/BCaPTXFszMU4EXqTSvrawolhoNfV2T92cszT8AQwkEPc=
In-Reply-To: <upl6t2$33jod$1@dont-email.me>
 by: Philipp Klaus Krause - Thu, 8 Feb 2024 07:44 UTC

Am 03.02.24 um 12:09 schrieb David Brown:
>
> I think it is fine to implement parts of the atomics - you just can't
> define the __SDTC_NO_ATOMICS__ symbol unless you cover it all.

The problem here is that there are architectures, where atomics could be
implemented except for one small issue - you can't use a char array (or
allocated memory) as an atomic_flag. IMO, it would be good if this
situation could be reflected in the standard.

Philipp

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor