From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0398B1391DB for ; Sun, 23 Mar 2014 23:43:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0A45CE0C31; Sun, 23 Mar 2014 23:42:59 +0000 (UTC) Received: from qmta10.westchester.pa.mail.comcast.net (qmta10.westchester.pa.mail.comcast.net [76.96.62.17]) by pigeon.gentoo.org (Postfix) with ESMTP id 10374E0BF3 for ; Sun, 23 Mar 2014 23:42:57 +0000 (UTC) Received: from omta20.westchester.pa.mail.comcast.net ([76.96.62.71]) by qmta10.westchester.pa.mail.comcast.net with comcast id hAod1n0041YDfWL5ABixhD; Sun, 23 Mar 2014 23:42:57 +0000 Received: from [192.168.1.13] ([50.190.84.14]) by omta20.westchester.pa.mail.comcast.net with comcast id hBix1n00E0JZ7Re3gBixqF; Sun, 23 Mar 2014 23:42:57 +0000 Message-ID: <532F717D.60900@gentoo.org> Date: Sun, 23 Mar 2014 19:42:53 -0400 From: Joshua Kinard User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFC GLEP 1005: Package Tags References: <20140323204428.58216f16@pomiot.lan> <532F43BF.7070405@gentoo.org> <20140323220515.22bcced5@pomiot.lan> <532F54C4.7080205@gentoo.org> <20140323225106.5e199f7b@pomiot.lan> <532F6625.4030507@gentoo.org> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1395618177; bh=IwlR0Ex3Hc+b6e1Dcde+ZXAqQCJH4+xqixfUHKfmJTQ=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=BZi6In/8fQo5sEvLrsWISpmenCNlpYTtnKteIhzk6FZ48dLKPbpxa28duQk6yhX5f qwHmtRI4QZIkRDMqqcQuK+ySRrOE9EHacEDUtrQCtsgTF44+GZjf/W0fLaXCjFZ71h cuPsjjd7fyNA5qZobeupzSDK+NyXoeIDqtuAn3grdenwqyzY+WDRQQxtA0dFKIPez7 UdGzY84IXwDFbw6FVNltyUhQDLbB0YKoA6whV41Uu+8XRFXsmjro29vorUBPC9b4Bs GluwiWBKDcfOSJvSm6SBpPGWS8R+9tKUTnOkvGyLzYOPGsLaNtcDI57Y823Q/NDX5Q 3Kvkc85T0xP5Q== X-Archives-Salt: 7ceb827e-e7ec-4d17-a954-2ded01bd6614 X-Archives-Hash: 584534127acb7fefe2d4a933b2249cab On 03/23/2014 19:18, Kent Fredric wrote: > On 24 March 2014 11:54, Joshua Kinard wrote: > >> That said, Is XML that specific that every single atom has to be wrapped by >> an individual tag? A comma-separated list of values in its own XML tag is >> prohibited by the spec? I don't use XML often (if at all), so I am not >> familiar with its intrinsics. >> > > > By nesting CSV inside XML, you've now got 2 formats to deal with instead of > 1. > > In pure XML, you can get a properly decoded array of tag elements with a > simple XPath query: > > //tag > > But with CSV-in-a-tag you have to extract the tag and subsequently parse it. I am probably thinking from a Python perspective then. All you have to do is grab the value of and then split it on the comma. No custom parsing needed, since that function is built into Python. I guess this might not be the case with other languages, though, and it really just adds to my distaste of XML as a format for metadata.xml in the first place. > So you're hand implementing a parser to parse parts of XML that already > convey data without needing to hand-parse. > > Which is more effort for everyone who touches the file, not less. > > Add to that automated ways to update the tags ( again, having to implement > a custom serialiser in addition to the custom parser ) and its just not > worth the tiny amount of savings. > > Because really, if space efficiency was #1 priority, we'd not be using XML > at all, let alone XML with pesky whitespace indentation that consumes > needless bytes. =) I guess I need to start looking for used TARDISes then... Thanks for the explanation. -- Joshua Kinard Gentoo/MIPS kumba@gentoo.org 4096R/D25D95E3 2011-03-28 "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between." --Emperor Turhan, Centauri Republic