Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 May 2014 14:59:50 -0700 (PDT)
From:      "Chris H" <bsd-lists@bsdforge.com>
To:        "Adrian Chadd" <adrian@freebsd.org>
Cc:        Alfred Perlstein <bright@mu.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: [GSoC] Machine readable output from userland utilities
Message-ID:  <a395020730eda21a49b07d780be7c4ec.authenticated@ultimatedns.net>
In-Reply-To: <CAJ-VmomBDfePkKXMf_piG%2BhnhmwhhTREm5a5m2Qt=7U8E585Ww@mail.gmail.com>
References:  <49E9736E-AD14-4647-8B15-30603D01360C@mail.bg> <537F0DD9.6090805@highsecure.ru> <537F11A9.8020504@mu.org> <CAETOPp0k8kESHkYShksovDm04pm4as9DoAfCm2-ojJ3in=4hsw@mail.gmail.com> <CAJ-VmomBDfePkKXMf_piG%2BhnhmwhhTREm5a5m2Qt=7U8E585Ww@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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?
>
+1

...and thanks for mentioning it. :)
>
>
> -a
>
>
> On 23 May 2014 08:38, Jos Backus <jos@catnook.com> wrote:
>> On May 23, 2014 2:15 AM, "Alfred Perlstein" <bright@mu.org> 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"
> _______________________________________________
> 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"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a395020730eda21a49b07d780be7c4ec.authenticated>