delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to geda-user-bounces using -f |
X-Recipient: | geda-user AT delorie DOT com |
From: | Christian Riggenbach <criggenbach AT magahugu DOT ch> |
To: | geda-user AT delorie DOT com |
Subject: | Re: [geda-user] Using Lua to safely read configuration and layout files (program attached) |
Date: | Sun, 08 Feb 2015 20:19:24 +0100 |
Message-ID: | <11893470.abMVPv7LQC@jasum> |
User-Agent: | KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) |
In-Reply-To: | <130419BB-B323-48C5-907B-40C543EECBD6@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> |
MIME-Version: | 1.0 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id t18JIWfl030249 |
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 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. > 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? You can add custom data to an variable in lua, so this data can be saved inside the core too. http://www.lua.org/pil/28.1.html > But gnetlist already does 1-3. That’s not the hard part, so you haven’t > helped. All you’ve done is break a lot of existing code. We habe to break some eggs to make an omelet... > Python? AWK? Perl? Scheme? Matlab? C and Lua are not the universe. But any > of these can read a line-oriented file, especially one that’s essentially > pre-parsed. Same as answer #1 -- mit freundlichem Gruss Christian Riggenbach
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |