News for hackers. Stuff that matters.
Re:The C23 edition of Modern C is now available for free by bboygravity on Wednesday October 16, 2024 @01:21AM (#41855853)
Or in other words, for embedded and existing code: most use c99, some use c11 and nobody uses c23 until at least 10 years from now.
Re:The C23 edition of Modern C is now available for free by dhhfss on Wednesday October 16, 2024 @01:47AM (#41855978)
This depends on the platform. Many embedded systems are based on arm these days and have modern toolchains available.

I cannot remember the last time I saw C99 used. C codebases generally use C11 or C17, and C++ code bases use C++20

Re:The C23 edition of Modern C is now available for free by pjmlp on Wednesday October 16, 2024 @03:34AM (#41856523)
Unless you can vouch for the C++ compiler, the best C++ portable code can offer today is C++17.

Also 8 and 16 bit embedded toolchains are certainly not on C11 / C17, they can hardly afford full C89.

Re:The C23 edition of Modern C is now available for free by flohofwoe on Wednesday October 16, 2024 @07:22AM (#41857834)
SDCC is a niche C compiler for 8-bit CPUs and is more uptodate than MSVC ;P

https://sdcc.sourceforge.net/

That's the nice thing with C: it's much easier for small teams to fully support than the latest C++ standards.

Re:The C23 edition of Modern C is now available for free by pjmlp on Wednesday October 16, 2024 @10:12AM (#41859229)
Now try to use it on the embedded deployments that require certification.
Re:The C23 edition of Modern C is now available for free by bboygravity on Saturday October 19, 2024 @05:47AM (#41886801)
Most devices that are 6+ years old (as far as I can tell) use C99. If not C89. And/or C++17, if that.

That's A LOT of devices out there. A lot of which still get maintenance and even get feature updates (I'm working on one right now, C99).

So the claim that "C codebases generally use C11 or C17, and C++ code bases use C++20" intuitively sounds like totally untrue to someone working in embedded C/C++. I've been doing this for 15+ years and I've never touched anything higher than C99 or C++17.

If you're talking about gaming, sure. But that's not "C code bases generally".

Re:The C23 edition of Modern C is now available for free by vitaminka on Wednesday October 16, 2024 @01:49AM (#41855982)
most non-embedded and non-legacy codebases could use c23, that's not an insignificant set
Re:The C23 edition of Modern C is now available for free by bboygravity on Saturday October 19, 2024 @05:50AM (#41886816)
I would argue that is an insignificant set.

Unless you think that code-bases created in the past year are a significant part of code bases that have been created since the inception of humanity.