svn commit: r268491 - head/usr.bin/users
David Chisnall
David.Chisnall at cl.cam.ac.uk
Thu Jul 10 17:20:38 UTC 2014
On 10 Jul 2014, at 18:13, Adrian Chadd <adrian at freebsd.org> wrote:
> ... I think this particular commit highlights our almost complete lack
> of useful data types in our C libraries.
>
> I think it's about time we grew a similar list of basic DSAs.
>
> I had to reimplement hash tables, trees and callwheels at work recently. Ugh.
This is important in a wider context. For example, in the project to add machine-readable output to core utilities, we'd like to be able to parse these into the same machine-readable format. Apple has the CoreFoundation library for this, which provides a load of stuff, but most importantly number, string, date, dictionary, and array types (i.e. the sorts of things that you'd want in JSON-like serialisation formats).
The simplest way of implementing this would be to just provide some C wrappers around the libc++ implementations, but that might not be ideal...
David
More information about the svn-src-head
mailing list