delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/02/08/14:38:01

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-TCPREMOTEIP: 207.224.51.38
X-Authenticated-UID: jpd AT noqsi DOT com
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Subject: Re: [geda-user] Using Lua to safely read configuration and layout files (program attached)
From: John Doty <jpd AT noqsi DOT com>
In-Reply-To: <11893470.abMVPv7LQC@jasum>
Date: Sun, 8 Feb 2015 12:36:38 -0700
Message-Id: <EFE01D80-593C-4C7E-9BEF-413F8F3FC609@noqsi.com>
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>
To: geda-user AT delorie DOT com
X-Mailer: Apple Mail (2.1878.6)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t18JafHZ032128
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 Feb 8, 2015, at 12:19 PM, Christian Riggenbach <criggenbach AT magahugu DOT ch> wrote:

> On Sunday 08 February 2015 11.21:21 you wrote:
>> A step backward from the files unless you’re writing in Lua. Any application
>> can read a file, but FFI’s are messy.
> 
> Just pipe the output of a custom backend to another tool. With a simple, 
> consistent and *complete* representation of the data, this is the next step.

Let’s see: you want to change our generalized format into a language-specific format to suit your language. You suggest that the rest of us use a tool to convert your format back.

> 
>> Except that every application needs an internal representation that’s
>> different from Lua’s if it’s not in Lua.
> 
> That's just normal, as every application does something only it can. Why 
> should it exist otherwise?

Yes, but that makes your change of representation less than useless. Just read the existing files with Lua if you want, and stay out of the way of everybody else.

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com



- Raw text -


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