www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/12/20/18:42:42

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=QV8yRSBhqofxKS5C56pANbu5pkPvFtPRWMrt6s3GwPA=;
b=eAcz1uG/c6JCZGH0EefCuKC+EAk0D9dDsGEhtoptQm5YOsTHtCmlJYhC+X2u0oXrST
c65b3t3aOPTx/e1DMNUoIEwMIwpej7qlDLSyBACXbWYCQ15KkIjDCTxpP9WV5LsCjCoT
RiLOVu0BcKmCTvZRn0J/TgbOXAK1BqsVSmHmwLtOoCYTe8RzEgvFQH0NPLOYlOMY9SbC
mEYEdoi5AD+V/8TqEUn1E/jbckukUjV28wHfdkeskWhysyDtK8jUa9QqJlHNjesA4y86
GbvMpisSF0MrrsRa0MC+d9ycINxRX5Cp4DGv4ZcTn4F1SV0LJZ3IVuIt9l6AVPp4OtH+
xpwA==
MIME-Version: 1.0
X-Received: by 10.28.3.133 with SMTP id 127mr17792276wmd.101.1450654931602;
Sun, 20 Dec 2015 15:42:11 -0800 (PST)
In-Reply-To: <20151220232415.28b2dd1e2e1f2d927943b7ff@gmail.com>
References: <20151220122659 DOT 378AF809D791 AT turkos DOT aspodata DOT se>
<20151220120219 DOT c4644eef1a65b0eb2fb60d76 AT gmail DOT com>
<20151220125839 DOT 10228 DOT qmail AT stuge DOT se>
<CAC4O8c96b4bGencxy9NfMtUAoCxWWJ2CU7f4dVA6GqN+tpRWcw AT mail DOT gmail DOT com>
<20151220213715 DOT 12bed4bbb43ff067008156a6 AT gmail DOT com>
<5677251C DOT 3050009 AT prochac DOT sk>
<20151220232415 DOT 28b2dd1e2e1f2d927943b7ff AT gmail DOT com>
Date: Sun, 20 Dec 2015 14:42:11 -0900
Message-ID: <CAC4O8c_CXOC9ogSOwLhCd2F4buScnxd7PVMYtRKMOfe7pzGHag@mail.gmail.com>
Subject: Re: [geda-user] XML file format (what could be expected)
From: "Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
To: geda-user AT delorie DOT com
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--001a11452782e3d69205275ceb1f
Content-Type: text/plain; charset=UTF-8

On Sun, Dec 20, 2015 at 1:24 PM, Nicklas Karlsson (
nicklas DOT karlsson17 AT gmail DOT com) [via geda-user AT delorie DOT com] <
geda-user AT delorie DOT com> wrote:

> > >> On Sun, Dec 20, 2015 at 3:58 AM, Peter Stuge (peter AT stuge DOT se) [via
> > >> geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
> > >>
> > >>> Nicklas Karlsson (nicklas DOT karlsson17 AT gmail DOT com) [via
> geda-user AT delorie DOT com]
> > >>> wrote:
> > >>>> I do not think file format is important.
> > >>> You are absolutely right about this, the data model is the challenge,
> > >>> not how to store it, that's trivial.
> > >>>
> > >> But if you're going to go with a plain text format, you'd want a good
> > >> reason to choose XML, as its the least readable option.
> > > It would be very readable if good graphical viewers where avaialable
> for Linux but I searched for linux viewers and did not find in debian. If
> no good parsers are available I guess there is no good reason at all.
> >
> > With good graphical viewer also compressed encrypted binary format is
> > very readable.
> >
> > For readable plaintext format you need nothing more than text editor
> > with functionality of Notepad.
>
> Yes XML look horrible, I would have preferred structures like "C" or
> something similar, only reason i brought it up is because it seems to be
> rather common.
>

There's still a lot of it around but I don't think it's getting used much
in new work.  Requiring end tags for everything guarantees huge redundancy
right up front.  You can use lots of attributes to make the problem
somewhat less, but the trouble with that is there's no clear reason to use
attr versus sub-node, it's a redundant design.  The lisp crowd has long
made fun of XML as a poor reinvention of S-expressions for these reasons.

That said if there was an existing successful part standard that used XML
that would be reason enough to use it.  But I think I've heard J Doty say
in the past that that standard (which I think was being discussed earlier
in this thread) was effectively dead...

Britton

--001a11452782e3d69205275ceb1f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Sun, Dec 20, 2015 at 1:24 PM, Nicklas Karlsson (<a href=3D"mailto:ni=
cklas DOT karlsson17 AT gmail DOT com">nicklas DOT karlsson17 AT gmail DOT com</a>) [via <a href=
=3D"mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>] <span dir=3D"l=
tr">&lt;<a href=3D"mailto:geda-user AT delorie DOT com" target=3D"_blank">geda-use=
r AT delorie DOT com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span=
 class=3D"">&gt; &gt;&gt; On Sun, Dec 20, 2015 at 3:58 AM, Peter Stuge (<a =
href=3D"mailto:peter AT stuge DOT se">peter AT stuge DOT se</a>) [via<br>
&gt; &gt;&gt; <a href=3D"mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT co=
m</a>] &lt;<a href=3D"mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</=
a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;&gt; Nicklas Karlsson (<a href=3D"mailto:nicklas DOT karlsson17 AT gm=
ail.com">nicklas DOT karlsson17 AT gmail DOT com</a>) [via <a href=3D"mailto:geda-user=
@delorie.com">geda-user AT delorie DOT com</a>]<br>
&gt; &gt;&gt;&gt; wrote:<br>
&gt; &gt;&gt;&gt;&gt; I do not think file format is important.<br>
&gt; &gt;&gt;&gt; You are absolutely right about this, the data model is th=
e challenge,<br>
&gt; &gt;&gt;&gt; not how to store it, that&#39;s trivial.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt; But if you&#39;re going to go with a plain text format, you&#=
39;d want a good<br>
&gt; &gt;&gt; reason to choose XML, as its the least readable option.<br>
&gt; &gt; It would be very readable if good graphical viewers where avaiala=
ble for Linux but I searched for linux viewers and did not find in debian. =
If no good parsers are available I guess there is no good reason at all.<br=
>
&gt;<br>
&gt; With good graphical viewer also compressed encrypted binary format is<=
br>
&gt; very readable.<br>
&gt;<br>
&gt; For readable plaintext format you need nothing more than text editor<b=
r>
&gt; with functionality of Notepad.<br>
<br>
</span>Yes XML look horrible, I would have preferred structures like &quot;=
C&quot; or something similar, only reason i brought it up is because it see=
ms to be rather common.<br></blockquote><div><br></div><div style=3D"">Ther=
e&#39;s still a lot of it around but I don&#39;t think it&#39;s getting use=
d much in new work.=C2=A0 Requiring end tags for everything guarantees huge=
 redundancy right up front.=C2=A0 You can use lots of attributes to make th=
e problem somewhat less, but the trouble with that is there&#39;s no clear =
reason to use attr versus sub-node, it&#39;s a redundant design.=C2=A0 The =
lisp crowd has long made fun of XML as a poor reinvention of S-expressions =
for these reasons.</div><div style=3D""><br></div><div style=3D"">That said=
 if there was an existing successful part standard that used XML that would=
 be reason enough to use it.=C2=A0 But I think I&#39;ve heard J Doty say in=
 the past that that standard (which I think was being discussed earlier in =
this thread) was effectively dead...</div><div style=3D""><br></div><div st=
yle=3D"">Britton</div></div><br></div></div>

--001a11452782e3d69205275ceb1f--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019