News for hackers. Stuff that matters.
Re:Simple Dynamic Strings library for C, compatible with nul... by poiuyt098 on Tuesday December 03, 2019 @03:23PM (#21696300)
> show how much you can easily improve C, with little work, and how many unsafe things in C are about lack of abstractions

C has always badly needed built-in strings (and arrays with size info, generally).

To save a byte, C designers committed The Most Expensive One-byte Mistake https://queue.acm.org/detail.cfm?id=2010365

Re:Simple Dynamic Strings library for C, compatible with nul... by phs318u on Tuesday December 03, 2019 @05:11PM (#21697372)
Thanks for the link. Great analysis of a real sliding-doors moment.
Re:Simple Dynamic Strings library for C, compatible with nul... by m463 on Tuesday December 03, 2019 @06:08PM (#21697870)
A shortcoming (or outright failure) of C is the lack of an extensive "batteries included" library.

Maybe not C + Knuth, but some way of portably advancing the language over time.

Re:Simple Dynamic Strings library for C, compatible with nul... by ndesaulniers on Tuesday December 03, 2019 @07:15PM (#21698351)
Why? So we could be stuck with horrible interfaces forever (most of string.h comes to mind)? No thanks.
Re:Simple Dynamic Strings library for C, compatible with nul... by m463 on Wednesday December 04, 2019 @01:00AM (#21699964)
don't you think it could evolve?
Re:Simple Dynamic Strings library for C, compatible with nul... by hsaliak on Tuesday December 03, 2019 @09:21PM (#21699075)
glib
Re:Simple Dynamic Strings library for C, compatible with nul... by m463 on Wednesday December 04, 2019 @01:02AM (#21699969)
That would be a start, but my though is more closely related to the C standard, not an add-on like boost.