News for hackers. Stuff that matters.
Re:ZPL: (Almost) C99 Powerkit by TazeTSchnitzel on Sunday March 21, 2021 @03:32AM (#26528746)
This argument does not make sense to me at all. C has a standard library, so why can't it be a good one? There's also many things about the language that could be improved without sacrificing any of its low-level qualities.
Re:ZPL: (Almost) C99 Powerkit by RJIb8RBYxzAMX9u on Sunday March 21, 2021 @04:14AM (#26528906)
There are many reasons IMHO:

- C is designed by committee, so proposals to expand the standard library move slowly.

- Specifications suitable for general computing may not be so for embedded micro-controllers. TBF this is slowly changing as well, given that a ARM CortexM can have double-digit kilobytes of memory now, and is almost as fast as a PII.

- Philosophical: some C users maintain that C's supposed to be a "portable assembler" and higher level abstractions are beyond the scope[0].

This may sound tongue-in-cheek but: you should use C++ instead. Yes it has a lot of flaws of its own, but IMHO it really lives up to the spirit of being a "better C". It has (almost?) everything you said wanted in it standard library. And just because you're using C++ doesn't mean you have to go all-in with template meta-programming, objects, etc. I've written very C-ish code in C++, and only used parts of the C++ standard library I absolutely needed. Last time I did that I was able to "un-C++" my code later to satisfy upstream requirement (no capes!^W C++) relatively easily, after iterating with C++ first.

[0] I know there are counterarguments that C's never been that and it's more a "convenient lie." Nonetheless the that's the spirit of the argument.

Re:ZPL: (Almost) C99 Powerkit by xyzzy123 on Sunday March 21, 2021 @05:15AM (#26529169)
Finally, lack of vendor motivation.

Nobody's making big money on C compilers, no huge company with deep pockets feels they would benefit significantly from a "stronger" C.

Re:ZPL: (Almost) C99 Powerkit by TazeTSchnitzel on Sunday March 21, 2021 @05:03AM (#26529117)
C++ lacks some of the good things added to C after C89, unfortunately.
Re:ZPL: (Almost) C99 Powerkit by pjmlp on Sunday March 21, 2021 @11:16AM (#26531065)
Other than restrict, with dubious usage validation, I fail to see what.