www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/02/09/18:50:56

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Envelope-From: paubert AT iram DOT es
Date: Tue, 10 Feb 2015 00:49:31 +0100
From: Gabriel Paubert <paubert AT iram DOT es>
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Using Lua to safely read configuration and layout
files (program attached)
Message-ID: <20150209234931.GB29988@visitor2.iram.es>
References: <CAOFvGD7pJTo8A=MXVbuuXO=++0vGukUyqVfckVtnCi99ziqWJQ AT mail DOT gmail DOT com>
<3252013 DOT jziFbvHuEb AT jasum>
<130419BB-B323-48C5-907B-40C543EECBD6 AT noqsi DOT com>
<11893470 DOT abMVPv7LQC AT jasum>
<EFE01D80-593C-4C7E-9BEF-413F8F3FC609 AT noqsi DOT com>
<2E68A9E3-2B53-4D59-9C1C-FB0662F4273E AT icloud DOT com>
<alpine DOT DEB DOT 2 DOT 11 DOT 1502100018360 DOT 23048 AT nimbus>
MIME-Version: 1.0
In-Reply-To: <alpine.DEB.2.11.1502100018360.23048@nimbus>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Spamina-Bogosity: Unsure
X-Spamina-Spam-Score: -0.2 (/)
X-Spamina-Spam-Report: Content analysis details: (-0.2 points)
pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60%
[score: 0.4434]
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

On Tue, Feb 10, 2015 at 12:21:29AM +0100, Roland Lutz wrote:
> You don't gain anything by formatting the data differently.
> 
> No matter if the file format looks like XML, Lua, or plain numbers,
> you have to parse it to do anything useful with it, and you have to
> put it into a context to do most interesting things.  Whether you do
> the former using a XML/Lua library or a mostly trivial parser
> doesn't make much of a difference.
> 
> The one benefit from the current format is that it can easily be
> processed by almost any tool; the drawback being that editing it by
> hand requires a reference in another window.  The only thing which
> can be achieved by changing the data formatting other than
> optimizing for different user preferences is reducing the need for
> this reference, probably at the cost of degrading parseability.
> 

Actually, the PCB format became much more readable after the binary
flags were replaced by readable strings. If there is one defect in the
gEDA format, it is the large number of single digit numeric data in an 
arbitrary order on some lines.

    Gabriel

- Raw text -


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