From owner-freebsd-hackers@FreeBSD.ORG Fri May 23 16:04:29 2014 Return-Path: Delivered-To: freebsd-hackers@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 CE33B302 for ; Fri, 23 May 2014 16:04:29 +0000 (UTC) Received: from mail-qg0-x22c.google.com (mail-qg0-x22c.google.com [IPv6:2607:f8b0:400d:c04::22c]) (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 8E2632C3D for ; Fri, 23 May 2014 16:04:29 +0000 (UTC) Received: by mail-qg0-f44.google.com with SMTP id i50so8246834qgf.17 for ; Fri, 23 May 2014 09:04:28 -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=aCiR4BYpbaXTp2V8IZFPNeo6TJs0UXb4TVYkLAZbiSU=; b=olNkcaodw59rY/CDGwyznM9TGBjjwxFdOMIUAzMJySZaklfj2gBYtOvlYPQOtW1VP7 Grwff9scKgjgbmzCjjG9ZT7t1xLMfOYZA91iS9NSqW8DZ5F3DLinEjdhKZUoySot3lk6 QTPsN8Rl/Ld3OvRr9qxUS9qJTnF+DusTOSoQLRhGlRqeHxqNMQ/oyw5PJTMqLHMZUFI0 D+XRipRdsa44xWhc1Z2tsR921PWQz2qXuHWba9ZaloJqc2pm/LjNz9/yg9RkVSIqrwfK k8c+tEzHnr8HJHhSSU5fSROhJobxA48X+1oVB/GsJlZopYEs5fbWLmoug6Vj6/mzK1P5 uJfg== MIME-Version: 1.0 X-Received: by 10.140.96.51 with SMTP id j48mr7892010qge.24.1400861068697; Fri, 23 May 2014 09:04:28 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.191.201 with HTTP; Fri, 23 May 2014 09:04:28 -0700 (PDT) In-Reply-To: References: <49E9736E-AD14-4647-8B15-30603D01360C@mail.bg> <537F0DD9.6090805@highsecure.ru> <537F11A9.8020504@mu.org> Date: Fri, 23 May 2014 09:04:28 -0700 X-Google-Sender-Auth: gxsvgoQFV6sNLeTHfz3v0FaNVqQ Message-ID: Subject: Re: [GSoC] Machine readable output from userland utilities From: Adrian Chadd To: Jos Backus Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Hackers , Alfred Perlstein 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:04:29 -0000 Hey all, 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? -a On 23 May 2014 08:38, Jos Backus wrote: > On May 23, 2014 2:15 AM, "Alfred Perlstein" wrote >>point to note is that the intent is to have an output that is very > consumable by modern scripting languages and modules. That would very > likely be JSON output. >> >> -Alfred > > I'd actually prefer YAML output. YAML is a much more expressive superset of > JSON (YAML parsers can read JSON), but given that VHS beat out BetaMax, I > fully expect JSON to win, and YAML to fade into oblivion. Sad. > > Jos > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"