From owner-freebsd-hackers@FreeBSD.ORG Fri May 23 16:37:44 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 3A9703C8 for ; Fri, 23 May 2014 16:37:44 +0000 (UTC) Received: from smtp9.server.rpi.edu (gateway.canit.rpi.edu [128.113.2.229]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D03D92EFE for ; Fri, 23 May 2014 16:37:42 +0000 (UTC) Received: from smtp-auth1.server.rpi.edu (smtp-auth1.server.rpi.edu [128.113.2.231]) by smtp9.server.rpi.edu (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4NGUmdF025617; Fri, 23 May 2014 12:30:48 -0400 Received: from smtp-auth1.server.rpi.edu (localhost [127.0.0.1]) by smtp-auth1.server.rpi.edu (Postfix) with ESMTP id 6153D58114; Fri, 23 May 2014 12:30:48 -0400 (EDT) Received: from [172.16.61.1] (gilead.netel.rpi.edu [128.113.124.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: drosih) by smtp-auth1.server.rpi.edu (Postfix) with ESMTPSA id 574375800E; Fri, 23 May 2014 12:30:47 -0400 (EDT) From: "Garance A Drosehn" To: "Jos Backus" Subject: Re: [GSoC] Machine readable output from userland utilities Date: Fri, 23 May 2014 12:30:38 -0400 Message-ID: <75591BB0-4CF9-49F8-875C-FD5AAEA7A419@rpi.edu> In-Reply-To: References: <49E9736E-AD14-4647-8B15-30603D01360C@mail.bg> <537F0DD9.6090805@highsecure.ru> <537F11A9.8020504@mu.org> MIME-Version: 1.0 X-Mailer: MailMate (1.7.2r3905) X-Virus-Scanned: ClamAV using ClamSMTP X-Bayes-Prob: 0.0001 (Score 0, tokens from: outgoing, @@RPTN) X-Spam-Score: 0.00 () [Hold at 15.10] X-CanIt-Incident-Id: 02M5suMSf X-CanIt-Geo: ip=128.113.124.121; country=US; region=New York; city=Troy; latitude=42.7495; longitude=-73.5951; http://maps.google.com/maps?q=42.7495,-73.5951&z=6 X-CanItPRO-Stream: outgoing X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 128.113.2.229 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:37:44 -0000 On 23 May 2014, at 11: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 FWIW, I've also been interested in doing something like this in the lpr-related programs, although I haven't had much spare time to work on it in the last few years. Another format which looks interesting to me is EDN (Extensible Data Notation), from the world of Clojure/ClojureScript. It looks like there are modules for working with EDN in ruby, python, and perl. https://github.com/edn-format/edn -- Garance Alistair Drosehn = drosih@rpi.edu Senior Systems Programmer or gad@FreeBSD.org Rensselaer Polytechnic Institute; Troy, NY; USA