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: <5D8980D1-7456-476C-80B5-9FB01E8530AE@icloud.com> Date: Mon, 9 Feb 2015 07:56:04 -0700 Message-Id: <4310B108-CB83-488F-A4BB-62D2F92CAD1F@noqsi.com> References: <3709636 DOT NVszrDDjOR AT jasum> <20150208135925 DOT 6f6ddab6 AT Parasomnia DOT thuis DOT lan> <1897145 DOT BbSdS1MRWc AT jasum> <66DD3BF9-092C-4EFF-B12D-6214141C152D AT icloud DOT com> <52E0C8E3-2FD3-4D79-A01D-962E7EFA6D4F AT noqsi DOT com> <638942CE-E278-40ED-8C36-6A89C33FD158 AT noqsi DOT com> <54D7CC55 DOT 1090602 AT ecosensory DOT com> <5D8980D1-7456-476C-80B5-9FB01E8530AE AT icloud DOT com> 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 t19Eu48f012399 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 9, 2015, at 2:04 AM, Chris Smith wrote: > >> On 8 Feb 2015, at 20:51, John Griessen wrote: >> >> On 02/08/2015 12:54 PM, Svenn Are Bjerkem wrote: >>> I can't help myself asking: Why isn't the gnetlist code exposing the needed information to the API? Too difficult to do, or too >>> boring to get done? >>> >> >> It must be the temperament of those that decide to spend time on the project. >> >> a. Too boring to do. >> b. Requires too much slogging for too little braggable results. >> c. Does not pay well. >> d. It's a large enough task that some cooperation would be a great help, but it's hard to find any... >> e. "Where to start?" *AND* "I don't like writing documentation." >> >> Just my guesses. > > No, I just think it’s the inherent problem with domain-specific parsers and interpreters. Those things were not implemented simply because the author didn’t envisage a need for them. That’s the advantage of generic, structured file formats like XML or Lua: any parser or interpreter must be complete, because there is no way of predicting what may or may not be useful. In this case, the parser *is* complete, so you don’t understand what the problem really is, do you? > The advantage of picking a format which is also native to a language, like Lua, means that scripting and manipulation of that data is also much easier, because there no need for a secondary parser or interpreter. geda-gaf already has that with configuration files (they are Scheme). It has been a serious problem. The development version has support for configuration via .conf files: common, familiar, trivial to parse. That’s what we need: not a fancy format tuned to somebody’s favorite language, but a format that’s easy to read/write for everybody. John Doty Noqsi Aerospace, Ltd. http://www.noqsi.com/ jpd AT noqsi DOT com