From owner-svn-src-all@FreeBSD.ORG Thu Jul 10 17:20:38 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 25FDC9CB; Thu, 10 Jul 2014 17:20:38 +0000 (UTC) Received: from ppsw-50.csi.cam.ac.uk (ppsw-50-v6.csi.cam.ac.uk [IPv6:2001:630:212:8::e:f50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D374F20B4; Thu, 10 Jul 2014 17:20:37 +0000 (UTC) X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Received: from cpc14-cmbg15-2-0-cust307.5-4.cable.virginm.net ([82.26.1.52]:55288 helo=[192.168.0.7]) by ppsw-50.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.158]:465) with esmtpsa (PLAIN:dc552) (TLSv1:AES128-SHA:128) id 1X5I1L-0007Yj-sp (Exim 4.82_3-c0e5623) (return-path ); Thu, 10 Jul 2014 18:20:36 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: svn commit: r268491 - head/usr.bin/users From: David Chisnall In-Reply-To: Date: Thu, 10 Jul 2014 18:20:31 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <4B20737F-FB09-47DF-982F-E17F8989B83F@cl.cam.ac.uk> References: <201407101215.s6ACF3v1055260@svn.freebsd.org> <20140710152353.GF1812@ptrcrt.ch> <20140710154213.GG1812@ptrcrt.ch> <20140710155342.GB93051@ivaldir.etoilebsd.net> <53BEC65D.10501@freebsd.org> To: Adrian Chadd X-Mailer: Apple Mail (2.1878.6) Sender: "Dr D. Chisnall" Cc: Ed Schouten , Baptiste Daroussin , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , Nathan Whitehorn , Pietro Cerutti , "svn-src-head@freebsd.org" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2014 17:20:38 -0000 On 10 Jul 2014, at 18:13, Adrian Chadd 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