From owner-soc-status@FreeBSD.ORG Mon May 26 10:34:28 2014 Return-Path: Delivered-To: soc-status@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 98D1D7B3; Mon, 26 May 2014 10:34:28 +0000 (UTC) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cloud.theravensnest.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 715FD2209; Mon, 26 May 2014 10:34:27 +0000 (UTC) Received: from [192.168.0.96] (cpc14-cmbg15-2-0-cust307.5-4.cable.virginm.net [82.26.1.52]) (authenticated bits=0) by theravensnest.org (8.14.7/8.14.7) with ESMTP id s4QAYLTM089661 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 26 May 2014 10:34:24 GMT (envelope-from theraven@theravensnest.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: [Machine readable output from userland utilities] report From: David Chisnall In-Reply-To: <8D1B686D-1AAA-4E07-9270-E42699110561@mail.bg> Date: Mon, 26 May 2014 11:34:16 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <4890861C-FC91-445D-AE9B-31CD5FDFD0A9@theravensnest.org> References: <8D1B686D-1AAA-4E07-9270-E42699110561@mail.bg> To: Zaro Korchev X-Mailer: Apple Mail (2.1874) Cc: soc-status@freebsd.org, Eitan Adler , jonathan@FreeBSD.org X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2014 10:34:28 -0000 Hi Zaro, A few comments - hopefully your mentors can chime in with a bit more: Your repo appears to contain GNU coreutils, which is not part of the = FreeBSD base system and is GPLv3 code, so for legal reasons a lot of = FreeBSD developers can't look at it and most shouldn't if they are = planning on working on any similar parts of the FreeBSD system. I = believe that the socsvn server is isolated from the main svn repository, = but putting GPLv3 code in any FreeBSD svn server can open the project to = liability, so I would ask you to remove it as soon as possible. Second, your SOL appears to be using yajl. This project was intended to = use libucl and libnv as the human-readable and binary serialization = mechanisms, as those are already present in the base system. Have you = spent any time yet looking at them? Are there limitations in their APIs = and the structures that they can represent? David On 26 May 2014, at 00:09, Zaro Korchev wrote: > This week I made a simple design for the project and implemented JSON = output for an example application. >=20 > I made research on several libraries that I may use for my project. I = designed a simple API for structured output. At the moment I call it SOL = (Structured Output Library). I'm open to better name suggestions :) >=20 > The API is in no way final. I will change it as issues arise in the = future. >=20 > I have a prototype version of ls that uses the API to output JSON. = There are still some issues to resolve but the modified ls is basically = working. > The code is accessible in the GSoC 2014 repository: > https://socsvn.freebsd.org/socsvn/soc2014/zkorchev/ >=20 > here are two examples: >=20 > ls / > = ["COPYRIGHT","bin","boot","dev","entropy","etc","home","lib","libexec","me= dia","mnt","proc","rescue","root","sbin","sys","tmp","usr","var"] >=20 > ls -l / > = [{"mode":"-r--r--r--","nlink":1,"user":"root","group":"root","size":6201,"= time":"Jan 17 = 00:41","name":"COPYRIGHT"},{"mode":"drwxr-xr-x","nlink":2,"user":"root","g= roup":"root","size":1024,"time":"Jan 17 = 00:40","name":"bin"},{"mode":"drwxr-xr-x","nlink":8,"user":"root","group":= "root","size":1024,"time":"Mar 18 = 20:42","name":"boot"},{"mode":"dr-xr-xr-x","nlink":12,"user":"root","group= ":"root","size":512,"time":"May 23 = 15:22","name":"dev"},{"mode":"-rw-------","nlink":1,"user":"root","group":= "root","size":4096,"time":"May 23 = 15:22","name":"entropy"},{"mode":"drwxr-xr-x","nlink":21,"user":"root","gr= oup":"root","size":2048,"time":"May 22 = 18:51","name":"etc"},{"mode":"lrwxr-xr-x","nlink":1,"user":"root","group":= "root","size":8,"time":"Mar 18 = 17:37","name":"home","link":"usr/home"},{"mode":"drwxr-xr-x","nlink":3,"us= er":"root","group":"root","size":1536,"time":"Jan 17 = 00:40","name":"lib"},{"mode":"drwxr-xr-x","nlink":3,"user":"root","group":= "root","size":512,"time":"Mar 18 17:28","name":"libe > = xec"},{"mode":"drwxr-xr-x","nlink":2,"user":"root","group":"root","size":5= 12,"time":"Jan 17 = 00:39","name":"media"},{"mode":"drwxr-xr-x","nlink":2,"user":"root","group= ":"root","size":512,"time":"Jan 17 = 00:39","name":"mnt"},{"mode":"dr-xr-xr-x","nlink":2,"user":"root","group":= "root","size":512,"time":"Jan 17 = 00:39","name":"proc"},{"mode":"drwxr-xr-x","nlink":2,"user":"root","group"= :"root","size":2560,"time":"Jan 17 = 00:40","name":"rescue"},{"mode":"drwxr-xr-x","nlink":7,"user":"root","grou= p":"root","size":512,"time":"May 23 = 17:53","name":"root"},{"mode":"drwxr-xr-x","nlink":2,"user":"root","group"= :"root","size":2560,"time":"Jan 17 = 00:41","name":"sbin"},{"mode":"lrwxr-xr-x","nlink":1,"user":"root","group"= :"root","size":11,"time":"Jan 17 = 00:42","name":"sys","link":"usr/src/sys"},{"mode":"drwxrwxrwt","nlink":6,"= user":"root","group":"root","size":512,"time":"May 23 = 17:51","name":"tmp"},{"mode":"drwxr-xr-x","nlink":17,"user":"root","group"= :"root","size":512,"time":"Mar 18 17:37","name":"usr > = "},{"mode":"drwxr-xr-x","nlink":24,"user":"root","group":"root","size":512= ,"time":"May 23 15:22","name":"var"}] >=20 > As I implemented this example modified version of ls, I got some ideas = about where problems can arise in the future and I got some insight on = how I can approach to solve them. >=20 >=20 > Zaro > _______________________________________________ > soc-status@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/soc-status > To unsubscribe, send any mail to "soc-status-unsubscribe@freebsd.org"