From owner-freebsd-stable@FreeBSD.ORG Mon Dec 9 05:14:10 2013 Return-Path: Delivered-To: freebsd-stable@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 5E23936E for ; Mon, 9 Dec 2013 05:14:10 +0000 (UTC) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BB9E01369 for ; Mon, 9 Dec 2013 05:14:09 +0000 (UTC) Received: from ur.gsoft.com.au (Ur.gsoft.com.au [203.31.81.31]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id rB95Djei053325 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 9 Dec 2013 15:43:50 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Subject: Re: BIND segway -> python -> first-class ports Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: text/plain; charset=us-ascii From: "Daniel O'Connor" In-Reply-To: <52A51438.4090200@bluerosetech.com> Date: Mon, 9 Dec 2013 15:43:44 +1030 Content-Transfer-Encoding: quoted-printable Message-Id: <8D54491D-5A1C-4D30-AD48-12336D0726DC@gsoft.com.au> References: <529E8C53.6020208@freebsd.org> <20131204060246.GV2951@home.opsec.eu> <52A12843.3010204@freebsd.org> <0BFC927B-D72E-4926-BB3D-2C000F310BDD@fisglobal.com> <7271C4C4-7BAB-4DA7-9E10-49D5B2DB8964@mu.org> <52A51438.4090200@bluerosetech.com> To: "freebsd-stable@freebsd.org Stable" X-Mailer: Apple Mail (2.1822) X-Spam-Score: -3.55 () ALL_TRUSTED,BAYES_00,RP_MATCHES_RCVD X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: Alfred Perlstein X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Dec 2013 05:14:10 -0000 On 9 Dec 2013, at 11:22, Darren Pilgrim = wrote: > On 12/8/2013 11:02 AM, Alfred Perlstein wrote: >> So if I were going to task the talented Devin Teske with something, >> remember you just asked my opinion, then it would be to look at >> putting Lua in the boot loader, getting python into base, or working >> on making our utilities be able to output standard machine readable >> formats such as yaml, XML and json. >=20 > Can you cite a real-world example of a general-purpose OS where this = was beneficial? Beneficial here means otherwise impossible = functionality or automation gains without adding barriers for low-level = diagnostics, tuning, corner-case configurations and other modes of = advanced control. It is not that parsing the human readable output of the tools is = impossible, it's that it's tedious bullshit code that you shouldn't have = to write in the first place. I would kill for a way to be able to do something like.. output=3D`somecmd -J` foo=3D`jsonextract -f some.field $output` bar=3D`jsonextract -f another.field.here $output` Even nicer would be if the shell could do it internally so you didn't = have to re-parse it all the time but it's a start :) (I don't care if it's JSON, XML or smoke signals just so long as it = isn't hideously slow). -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C