News for hackers. Stuff that matters.
Re:The C23 edition of Modern C is now available for free by einpoklum on Tuesday October 15, 2024 @05:43PM (#41853427)
Then I suppose you don't care about:

* Performance

* Support for localization (as the format string and positions of values to format differ between languages).

* Code reuse & dogfooding - the data structures used in iostreams are not used elsewhere, and vice-versa

* C and OS interoperability - as you can't wrap a stream around a FILE* / file descritor

* bunch of other stuff...

iostreams work, but are rather crappy.

Re:The C23 edition of Modern C is now available for free by pjmlp on Tuesday October 15, 2024 @06:05PM (#41853587)
I care about performance, when it actually matters to acceptance testing.

The less C the merrier.

If you care about correct use of localisation, standard C and C++ libraries aren't really what you're looking for, or even C and C++ to start with.

Re:The C23 edition of Modern C is now available for free by wakawaka28 on Tuesday October 15, 2024 @07:47PM (#41854253)
C and C++ are the bedrock of operating systems with the best performance and extensive support for all languages.

The only reason why iostreams are slow is because of its incompatible buffering scheme, and the fact that C and C++ need to stay in sync when linked together. And that brand of slow is still faster than other languages, except sometimes those that delegate i/o to pure C implementations.

Re:The C23 edition of Modern C is now available for free by pjmlp on Wednesday October 16, 2024 @03:22AM (#41856448)
Historical baggage, they weren't the first system programming languages, got lucky with UNIX's license allowing for widespread adoption, and won't be the last one standing either.
Re:The C23 edition of Modern C is now available for free by wakawaka28 on Wednesday October 16, 2024 @02:35PM (#41862240)
Considering that they are evolving, I think they are more likely than not to stay standing. There might be other similar languages developed in parallel, but after over 30 years of whining C and C++ are still popular. I don't expect that to change.
Re:The C23 edition of Modern C is now available for free by throwaway2037 on Tuesday October 15, 2024 @10:53PM (#41855144)

    > If you care about correct use of localisation, standard C and C++ libraries aren't really what you're looking for, or even C and C++ to start with.
What do you recommend instead?
Re:The C23 edition of Modern C is now available for free by PaulDavisThe1st on Tuesday October 15, 2024 @11:47PM (#41855414)
_("some text") ... aka gettext and friends.
Re:The C23 edition of Modern C is now available for free by maccard on Wednesday October 16, 2024 @04:20AM (#41856784)
QT, unfortunately.
Re:The C23 edition of Modern C is now available for free by throwaway2037 on Wednesday October 16, 2024 @04:34AM (#41856862)
Why do you "unfortunately"?
Re:The C23 edition of Modern C is now available for free by maccard on Wednesday October 16, 2024 @08:31AM (#41858325)
It's like using a sledgehammer for a picture hook. I think QT is a great tool, and it solves this problem nicely, but it's a full blown framework, and if you're already using something else - particularly if it's something "light" like SDL, or just a platform specific library like Win32, it's an awful lot to pull in (plus compile times, licensing, etc).
Re:The C23 edition of Modern C is now available for free by throwaway2037 on Friday October 18, 2024 @10:16AM (#41879701)
If you are using SDL, what is wrong with GNU gettext()?