Date: Thu, 10 Jul 2014 18:20:31 +0100 From: David Chisnall <David.Chisnall@cl.cam.ac.uk> To: Adrian Chadd <adrian@freebsd.org> Cc: Ed Schouten <ed@80386.nl>, Baptiste Daroussin <bapt@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, Nathan Whitehorn <nwhitehorn@freebsd.org>, Pietro Cerutti <gahr@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r268491 - head/usr.bin/users Message-ID: <4B20737F-FB09-47DF-982F-E17F8989B83F@cl.cam.ac.uk> In-Reply-To: <CAJ-VmomZ3o9YxCr6GSn0DEahOv0XXBow8Rgt10EoT6KAM2hjew@mail.gmail.com> References: <201407101215.s6ACF3v1055260@svn.freebsd.org> <CAJOYFBCQjjN7ep12zivnmFjfeeP1SeoYa963mQbMJr9DD%2BfUnw@mail.gmail.com> <20140710152353.GF1812@ptrcrt.ch> <CAJOYFBDZiEpQ5e86%2BdBhRZobSjdf785bKBwh%2B3Eywhzn_iJJCQ@mail.gmail.com> <20140710154213.GG1812@ptrcrt.ch> <20140710155342.GB93051@ivaldir.etoilebsd.net> <CAJOYFBCMtnrdM96H9F86UsU=-7w-97N%2BKdBqYGihugD3W0%2BrbA@mail.gmail.com> <53BEC65D.10501@freebsd.org> <CAJ-VmomZ3o9YxCr6GSn0DEahOv0XXBow8Rgt10EoT6KAM2hjew@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10 Jul 2014, at 18:13, Adrian Chadd <adrian@freebsd.org> wrote: > ... I think this particular commit highlights our almost complete lack > of useful data types in our C libraries. >=20 > I think it's about time we grew a similar list of basic DSAs. >=20 > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B20737F-FB09-47DF-982F-E17F8989B83F>