Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #167947
| From | BGB <cr88192@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Idle: C library features wish-list. |
| Date | 2022-10-03 01:14 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <thdum3$23pod$2@dont-email.me> (permalink) |
| References | <th7ne1$140s1$2@dont-email.me> <86y1txinka.fsf@linuxsc.com> |
On 10/2/2022 10:38 PM, Tim Rentsch wrote: > BGB <cr88192@gmail.com> writes: > >> There are some things that come up often that it might be "useful" if >> they could be supported in a more portable ways. >> >> [ ... ] >> >> Any thoughts?... > > None of these is suitable for inclusion in the ISO C standard. Possibly. As noted, this was more an "idle wish list", based mostly on stuff that comes up a lot in my experience, not really a proposal that this stuff be added (as-is) to the C standard. A few of them, such as _msize(), exist in MSVCRT, and is functionally equivalent to malloc_usable_size() in GLIBC. Also was using the "_whatever()" naming convention, because this seems to be the typical naming convention for library extensions (vs "__whatever" being more typical for compiler-specific keywords). This is stuff that comes up a lot, and almost every non-trivial program needs to implement a lot of this itself (often multiple times, if one uses libraries and every library provides its own implementation). Like, say, for example, what if the C library had not provided "memcpy()" and similar, and nearly every application was left to roll their own, often doing so poorly. Also, C11 threads exist, so one never really knows what sorts of stuff they might throw in... Most of this does exist in the C library used in by my compiler (itself a highly modified fork of PDPCLIB, *1), but as noted, this does limit its scope (since for code portability one is limited mostly to the least common denominator between the targets in question). Well, there are also a bunch of C language extensions, but I decided to leave these out in this case (same sort of issue), and some amount exist partly as quirky side effect of trying to squeeze performance out of a 50 MHz CPU running on top of an FPGA (mostly on an Artix-7 based board). Well, among other funkiness. Well, and also C isn't the only language I am running here (and the compiler and runtime exist with some stuff partly intended for use by the other languages I am compiling with my compiler). *1: I have ended up rewriting a fair chunk of the C library as some of the code was "kinda awful" (but, it is more of a "ship of Theseus" thing). Had a few times considered possibly doing a full rewrite, mostly motivated by architectural reasons, but had not fully done so yet partly due to inertia. ..
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Idle: C library features wish-list. BGB <cr88192@gmail.com> - 2022-09-30 16:34 -0500
Re: Idle: C library features wish-list. Tim Rentsch <tr.17687@z991.linuxsc.com> - 2022-10-02 20:38 -0700
Re: Idle: C library features wish-list. BGB <cr88192@gmail.com> - 2022-10-03 01:14 -0500
Re: Idle: C library features wish-list. Kaz Kylheku <864-117-4973@kylheku.com> - 2022-10-03 20:40 +0000
Re: Idle: C library features wish-list. scott@slp53.sl.home (Scott Lurndal) - 2022-10-03 21:10 +0000
Re: Idle: C library features wish-list. BGB <cr88192@gmail.com> - 2022-10-03 19:07 -0500
Re: Idle: C library features wish-list. scott@slp53.sl.home (Scott Lurndal) - 2022-10-04 13:43 +0000
Re: Idle: C library features wish-list. BGB <cr88192@gmail.com> - 2022-10-04 15:20 -0500
Re: Idle: C library features wish-list. BGB <cr88192@gmail.com> - 2022-10-05 03:58 -0500
Re: Idle: C library features wish-list. Kaz Kylheku <864-117-4973@kylheku.com> - 2022-10-04 16:56 +0000
Re: Idle: C library features wish-list. BGB <cr88192@gmail.com> - 2022-10-04 18:30 -0500
Re: Idle: C library features wish-list. BGB <cr88192@gmail.com> - 2022-10-03 18:19 -0500
Re: Idle: C library features wish-list. Tim Rentsch <tr.17687@z991.linuxsc.com> - 2022-11-19 06:54 -0800
Re: Idle: C library features wish-list. gazelle@shell.xmission.com (Kenny McCormack) - 2022-10-03 09:29 +0000
csiph-web