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 Content-Type: text/plain; charset=windows-1252 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 In-Reply-To: <11893470.abMVPv7LQC@jasum> Date: Sun, 8 Feb 2015 12:36:38 -0700 Message-Id: References: <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) Content-Transfer-Encoding: 8bit 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 Precedence: bulk On Feb 8, 2015, at 12:19 PM, Christian Riggenbach 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