From owner-freebsd-hackers@FreeBSD.ORG Fri May 23 16:30:55 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29D33DBB for ; Fri, 23 May 2014 16:30:55 +0000 (UTC) Received: from mail-qg0-x22b.google.com (mail-qg0-x22b.google.com [IPv6:2607:f8b0:400d:c04::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DCAFC2E9F for ; Fri, 23 May 2014 16:30:54 +0000 (UTC) Received: by mail-qg0-f43.google.com with SMTP id 63so8593706qgz.30 for ; Fri, 23 May 2014 09:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=eH21r3G8rrZaikZpBfwpBBtLiSZ4pSHR3cEtGHQFq5A=; b=BUSfDwJRVxY1CYiQ1zHcoxFR8ynjmsVqLs3q2EPzwOPt+hwG0/WjS2HZVa752e75jf EaBaQhRXgOEqYWB9Sgasxh3619FQcDoRNt3lVxQmNr7g2gBn8p+Nff1xA4GkhWvzte07 n/jzVcaiJLIocgSmh05ySebNSG26kbLUzfqxcHAhkjbjOWMeRFnk5UC9/fyvUX8biN1d 6iQgDg0V7UxHEHLoeDMMYbdqyHLf7u7Vj4SDdaqyQDXDc97B3xIvpHvdcvdXewmj7CI3 ViWhfrPrM299fw0fVmqj/kthvrznN+fsXQ5Eqjex/KngkEztWzVRrPcUSfwwgfO0ZrLO koFQ== MIME-Version: 1.0 X-Received: by 10.140.35.212 with SMTP id n78mr7743170qgn.87.1400862654034; Fri, 23 May 2014 09:30:54 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.191.201 with HTTP; Fri, 23 May 2014 09:30:53 -0700 (PDT) In-Reply-To: <9D7D4A7D-31F0-45D8-8C16-977D4FA879D6@gmail.com> References: <49E9736E-AD14-4647-8B15-30603D01360C@mail.bg> <537F0DD9.6090805@highsecure.ru> <537F11A9.8020504@mu.org> <9D7D4A7D-31F0-45D8-8C16-977D4FA879D6@gmail.com> Date: Fri, 23 May 2014 09:30:53 -0700 X-Google-Sender-Auth: sZx-rbDLLkwu8lnxgwG8LSf0Wto Message-ID: Subject: Re: [GSoC] Machine readable output from userland utilities From: Adrian Chadd To: Jonathan Anderson Content-Type: text/plain; charset=UTF-8 Cc: Alfred Perlstein , FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2014 16:30:55 -0000 ayup. -a On 23 May 2014 09:11, Jonathan Anderson wrote: > On 23 May 2014, at 13:34, Adrian Chadd wrote: > > I'd actually prefer that some library API (like what's in libstatfoo) > gets fleshed out to cover what hooks and options are required so you > don't have to have the bikeshed argument of "what format." You only > need to write some code to output it in the format you want. > > The UNIX way is tools, not policy. The library is a policy, sure, but > it's a policy to let you define your own policies. It won't be locking > anyone into anything like "json or bust." > > So how about the focus be on that, rather than trying to teach > individual tools about individual encoding types? > > > I think that's pretty much what the proposal says: > >> I'm planning to create a unified output abstraction in the form of a >> library. The tools supporting the machine-readable output feature >> will write output exclusively using the library. The exact output format >> will be customizable. Several backend libraries (like libucl and libnv) >> can be used to implement different formats. > > Am I perhaps misunderstanding you, and you're actually saying "let's not get > distracted by bikesheds, the proposal is terrific as-is"? > > > Jon > -- > Jonathan Anderson > > jonathan@FreeBSD.org > http://freebsd.org/~jonathan/