mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Jₑₙₛ Gustedt" <jens.gustedt@inria.fr>
To: Szabolcs Nagy <nsz@port70.net>
Cc: Rich Felker <dalias@libc.org>, musl@lists.openwall.com
Subject: Re: [musl] Re: High-level C23 process requests
Date: Fri, 2 Jun 2023 09:58:14 +0200	[thread overview]
Message-ID: <20230602095814.4568f5ab@inria.fr> (raw)
In-Reply-To: <20230601182223.GZ3630668@port70.net>

[-- Attachment #1: Type: text/plain, Size: 3107 bytes --]

Szabolcs,

on Thu, 1 Jun 2023 20:22:23 +0200 you (Szabolcs Nagy <nsz@port70.net>)
wrote:

> * Jₑₙₛ Gustedt <jens.gustedt@inria.fr> [2023-06-01 08:58:42 +0200]:
> > Also, in the compiler community there does not seem to be much of a
> > resistance to implement C23. clang and gcc are almost complete and
> > probably will have all of C23 the day it will be officially
> > published. They will then probably switch to C23 as a default one or
> > two versions later, once the C library support is stable.  
> 
> well clang had _BitInt before it was in the standard..

this is just the hen-and-egg problem

WG14 wouldn't standardize if there is no experience in the field, the
field wouldn't dare to do anything novel if this is not imposed by
some standard. So glitches like that are built into the process,
luckily the clang people took the risk and went ahead to start it. (And
they paid quite a price, having to rename the type, for example.)

> which is a bit of a problem because ppl only now realize that its
> abi is not what they want so various targets try to retroactively
> specify the ps abi for it which may leave existing clang broken.

yes

This is also the principal reason, I think, why C23 doesn't impose
function interfaces for these types, not even `printf` or `scanf`
formats, nor for the new <stdbit.h> header. So all C libraries such as
musl that delegate `va_arg` to compiler buitins should not be affected
by this.

> in any case i think standard conformance is a good thing in musl, but
> we are not in a big hurry to implement c23, and can wait until clang
> and gcc converge on abi for a couple of targets.

As said, these ABI questions are not impacting C libraries. So I don't
see how this would be an argument for (or against) integrating the
things that we have, in particular the boring stuff. I am still much
in favor to integrate this as soon as it is ready, be it for the
simple reason to never talk about it again.

Since I have your attention, there is also other "boring" stuff that I
have not even tried to implement, most things concerning floating
point functions. These are

           acospi, asinpi, atan2pi, atanpi, compoundn, cospi,
           fmaximum_mag_num, fmaximum_mag, fmaximum_num, fmaximum,
           fminimum_mag_num, fminimum_mag, fminimum_num, fminimum,
           nextup, rootn, roundeven, sinpi, tanpi, fadd, dadd, fsub,
           dsub, fmul, dmul, fdiv, ddiv

which get the usual three function interfaces and the tg-macro in
<tgmath.h>. For someone with experience in FP like you these are
probably not a big deal, it is just that there are finally a lot more
than I thought. I personnally don't think that I have the skills for
these functions.


Thanks
Jₑₙₛ

-- 
:: ICube :::::::::::::::::::::::::::::: deputy director ::
:: Université de Strasbourg :::::::::::::::::::::: ICPS ::
:: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus ::
:: :::::::::::::::::::::::::::::::::::: ☎ +33 368854536 ::
:: https://icube-icps.unistra.fr/index.php/Jens_Gustedt ::

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

      reply	other threads:[~2023-06-02  7:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-31 19:59 [musl] " Rich Felker
2023-05-31 21:00 ` [musl] " Jₑₙₛ Gustedt
2023-05-31 21:39   ` Rich Felker
2023-06-01  6:58     ` Jₑₙₛ Gustedt
2023-06-01 18:22       ` Szabolcs Nagy
2023-06-02  7:58         ` Jₑₙₛ Gustedt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230602095814.4568f5ab@inria.fr \
    --to=jens.gustedt@inria.fr \
    --cc=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=nsz@port70.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).