From owner-freebsd-arch@FreeBSD.ORG Sat Jul 20 18:34:51 2013 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E06D2792 for ; Sat, 20 Jul 2013 18:34:50 +0000 (UTC) (envelope-from jordan.hubbard@gmail.com) Received: from mail-pa0-x22c.google.com (mail-pa0-x22c.google.com [IPv6:2607:f8b0:400e:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id B820FF67 for ; Sat, 20 Jul 2013 18:34:50 +0000 (UTC) Received: by mail-pa0-f44.google.com with SMTP id lj1so5570328pab.31 for ; Sat, 20 Jul 2013 11:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=vJaaCvalguJPg7YRPyjkarMBFJ0pCHQAsUVVBvnKGX0=; b=YexOT7o/T30SIyNn1hwpj+Fj2whlvcn+U2qtEzZDPitpmTTyT1zIK4RYcZL8FEttw4 3A+BKSQRQfcFyldhsxAOMJyzWLkwkNxnxfvJwcAxelhaQ/qbVHMvCRO0PMPEzmhlOYk9 hcHy5MHX6oWrDUfqBdP8UNd05L5iQaaLBdCUc4nS1lWmCvMpagGm3FGfu/hDlQHmyP92 Dz5BdtMRlyji0pgs37TSiygkTO7ZYCN34m1sReAF6DxEkNgxOQFiLjIo8dllShj8gq7H iiW8rDTEixOdSCDmSR9NovY1XTiPbXatkB4AEZIkRRtZ8vxmq4YufbbfSp680ka3FAhC nvlg== X-Received: by 10.68.201.6 with SMTP id jw6mr23308238pbc.202.1374345290486; Sat, 20 Jul 2013 11:34:50 -0700 (PDT) Received: from [10.20.30.70] (75-101-82-48.static.sonic.net. [75.101.82.48]) by mx.google.com with ESMTPSA id aj3sm29616379pad.8.2013.07.20.11.34.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 20 Jul 2013 11:34:49 -0700 (PDT) Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: General purpose library for name/value pairs. From: "Jordan K. Hubbard" In-Reply-To: <86y591zok4.fsf@nine.des.no> Date: Sat, 20 Jul 2013 11:34:48 -0700 Message-Id: References: <20130704215329.GG1402@garage.freebsd.pl> <4818.1373008073@critter.freebsd.dk> <20130705195255.GB25842@garage.freebsd.pl> <60317.1373055040@critter.freebsd.dk> <20130708150308.GE1383@garage.freebsd.pl> <717D098F-D07E-45B0-B9F0-8D8BCEF06923@mail.turbofuzz.com> <86y591zok4.fsf@nine.des.no> To: =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= X-Mailer: Apple Mail (2.1510) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: arch@FreeBSD.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jul 2013 18:34:51 -0000 On Jul 20, 2013, at 12:19 AM, Dag-Erling Sm=F8rgrav wrote: > He's not reinventing anything. He's implementing Solaris's nvpair = API, > which includes serialization - in fact, ZFS's on-disk format is based = on > serialized nvlists. Well, OK, perhaps "reinventing" was the wrong word, though if he's = "reimplementing" the nvlist part of Solaris's nvpairs then it sounds = like he just needs to finish the reimplementation since there's still no = serialization. Either that or start over / mutate it, since the more I = look at = http://docs.oracle.com/cd/E23824_01/html/821-1469/nvpair-name-3nvpair.html= the more I go "wow, this looks really bare-metal in its approach to, = well, everything!" I'm also not in love with Apple's Property List APIs or mechanism, = they're just what I'm familiar with and, as you and others have pointed = out, everyone and their dog seems to have gone down the same road at = some point with nvpair, libprop (NetBSD) and probably at least a few = others we're missing. I looked at libprop and it actually looks pretty = decent. - Jordan