From owner-soc-status@FreeBSD.ORG Sun May 25 23:09:29 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 7806FEA5 for ; Sun, 25 May 2014 23:09:29 +0000 (UTC) Received: from mx1.mail.bg (mx1.mail.bg [IPv6:2001:67c:16b8:1::2:17]) by mx1.freebsd.org (Postfix) with ESMTP id ECBB12C56 for ; Sun, 25 May 2014 23:09:28 +0000 (UTC) Received: from [192.168.0.2] (unknown [78.90.84.177]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.mail.bg (Postfix) with ESMTPSA id 9FF8B6000500 for ; Mon, 26 May 2014 02:09:26 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mail.bg; s=default; t=1401059366; bh=7TcSaSmRFbk4ZF6N9HxZ1jMeHAx2BgJ2QmW8yCA9BFk=; h=From:Content-Type:Content-Transfer-Encoding:Subject:Date: Message-Id:To:Mime-Version; b=A2tRWv1g7cnwwmYXFsB/ks1sNp1bePMJZswqQX1UY4kKd/55bOnbFIwBrECZSGyOG eO1bhKwtQd/5zjAeEC40MOZAsMpKEoGkaCzqbLGBk6VwzxYPNZxpdXwYISm0g5Sljs whczTOrfQEk12VHKizSBWvz9WzyWmDbYTzodExWQ= From: Zaro Korchev Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: [Machine readable output from userland utilities] report Date: Mon, 26 May 2014 02:09:25 +0300 Message-Id: <8D1B686D-1AAA-4E07-9270-E42699110561@mail.bg> To: soc-status@freebsd.org Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) 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: Sun, 25 May 2014 23:09:29 -0000 This week I made a simple design for the project and implemented JSON = output for an example application. 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 :) The API is in no way final. I will change it as issues arise in the = future. 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/ here are two examples: ls / = ["COPYRIGHT","bin","boot","dev","entropy","etc","home","lib","libexec","me= dia","mnt","proc","rescue","root","sbin","sys","tmp","usr","var"] 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":"libexec"},{"mode":"drwxr-xr-x","nlink":2,"user":"root","gro= up":"root","size":512,"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"}] 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. Zaro=