From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 29 09:28:08 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0375D106566C for ; Sat, 29 Sep 2012 09:28:08 +0000 (UTC) (envelope-from marc@msys.ch) Received: from sleipnir.msys.ch (unknown [IPv6:2001:4060:c0de:f000::3]) by mx1.freebsd.org (Postfix) with ESMTP id 80F2D8FC19 for ; Sat, 29 Sep 2012 09:28:07 +0000 (UTC) Received: from mail.msys.ch (smtp.msys.ch [157.161.101.10]) by sleipnir.msys.ch (8.14.3/8.14.3) with ESMTP id q8T9S496002862 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 29 Sep 2012 11:28:04 +0200 (CEST) Received: from macbook-mb-wlan.vnode.ch (macbook-mb-wlan.vnode.ch [87.102.253.81]) (authenticated bits=0) by mail.msys.ch (8.14.3/8.14.1) with ESMTP id q8T9S38Q002362 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 29 Sep 2012 11:28:04 +0200 (CEST) Message-ID: <5066BF23.4080208@msys.ch> Date: Sat, 29 Sep 2012 11:28:03 +0200 From: Marc Balmer Organization: micro systems User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20120916120041.391C41065680@hub.freebsd.org> <505624A9.7040508@hesiod.org> <50656e8f.f/4dx/p/u62ESXYsxmAoqZ5R@dietcurd.wild-life.local> In-Reply-To: <50656e8f.f/4dx/p/u62ESXYsxmAoqZ5R@dietcurd.wild-life.local> X-Enigmail-Version: 1.4.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SMTP-Vilter-Version: 1.3.6 X-Spamd-Symbols: AWL,RCVD_IN_DNSWL_LOW Subject: Re: gpart is junk X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Sep 2012 09:28:08 -0000 Am 28.09.12 11:31, schrieb Steffen Daode Nurpmeso: > Wojciech Puchar wrote: > > |>> but still not anywhere as readable as bsdlabel. > |>> > |> > |> I did specifically say 'machine readable'. The XML is well-formed, > |XML is stupid. everything you can do with XML can be better described > |using "ancient" style text format > > Or, if all fails, YAML-is-JSON, which is much easier and cheaper > to parse (than ML), but still a well-defined standard and, in > comparison, human readable. These days I use Lua with its nice table-definition syntax for config files in many programs. Of course sandboxed, and with most functions turned off in the sandbox. The files are very readable, but of course you pay the price on including the Lua interpreter (although it's small).