X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=date:from:to:message-id:in-reply-to:references:subject:mime-version:content-type:user-agent; b=PPrKRibSaURhkUmxInl20ktErP4XitdHUQx1ni2uohw6JppnwdF1amIjeX8kaG8TC1R8J3cW1Sna wCuvFU1y+BXvRhmzV9rI2x30hX568vZcwGU0kDp6UPfXcFpSinHy Date: Sat, 07 Feb 2015 00:31:28 -0500 From: ryanseal To: Message-ID: <14b62812151.e34558b378672.554006307999274698@zoho.com> In-Reply-To: References: <1420499386 DOT 3521 DOT 3 DOT camel AT cam DOT ac DOT uk> <20150202152654 DOT GA13336 AT cuci DOT nl> <54CFD589 DOT 9040702 AT xs4all DOT nl> <20150203112631 DOT 3507a0c1 AT Parasomnia DOT thuis DOT lan> <20150204054256 DOT Horde DOT Pm1JV8RJbICk9SHvIGwZ7A3 AT webmail DOT in-berlin DOT de> <20150204193720 DOT Horde DOT 42xUN-NzhCJRWZne-M5eCQ1 AT webmail DOT in-berlin DOT de> <90236728-E79D-47C7-BFB1-34140DB85ACB AT sbcglobal DOT net> <201502042333 DOT t14NX28o024789 AT envy DOT delorie DOT com> <7C1A5871-3056-482C-BC58-173D90D80F77 AT icloud DOT com> Subject: Re: [geda-user] FOSDEM MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_104186_1689188499.1423287088934" X-Priority: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail 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 ------=_Part_104186_1689188499.1423287088934 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable ---- On Fri, 06 Feb 2015 12:07:51 -0500 John Doty<jpd AT noqsi DOT com> wrot= e ----=20 On Feb 6, 2015, at 9:29 AM, Jason White <whitewaterssoftwareinfo AT gmail DOT c= om> wrote:=20 =20 > For those who have not seen, I implemented an example program in C=20 > using Lua to safely read data defined in Lua files.=20 =20 And that is of little use. The schematic and configuration files need to be= trivially readable/writable by *any* language that the tool maker chooses = (AWK, perl, Python, ObjectiveC, =E2=80=A6). The geda-gaf schematic format i= s already excellent from that perspective. Guile configuration files are le= ss satisfactory. Formats tied to a specific language implementation are not= a good idea.=20 Being someone who deals with file formats on a daily basis, the latest-and-= greatest format is YAML. It's ASCII-based, very simple, much more compact t= han XML, and almost every language under the sun supports it. XML parsers a= re terrible when dealing with nesting and attributes vs. nodes. All YAML pa= rsers I've used store results in a key/value map, which is a dream compared= with DOM/SAX XML parsers.=20 Ryan ------=_Part_104186_1689188499.1423287088934 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =


---- On Fri,= 06 Feb 2015 12:07:51 -0500 John Doty<jpd AT noqsi DOT com> wrote ---= -

On Feb 6, 2015, at 9:29 AM, Jason White <= whitewaterssoftwareinf= o AT gmail DOT com> wrote:

> For those who have not seen, I imp= lemented an example program in C
> using Lua to safely read data def= ined in Lua files.

And that is of little use. The schematic and co= nfiguration files need to be trivially readable/writable by *any* language = that the tool maker chooses (AWK, perl, Python, ObjectiveC, =E2=80=A6). The= geda-gaf schematic format is already excellent from that perspective. Guil= e configuration files are less satisfactory. Formats tied to a specific lan= guage implementation are not a good idea.


Being someone who deals with file formats on a dai= ly basis, the latest-and-greatest format is YAML. It's ASCII-based, very si= mple, much more compact than XML, and almost every language under the sun s= upports it. XML parsers are terrible when dealing with nesting and attribut= es vs. nodes. All YAML parsers I've used store results in a key/value map, = which is a dream compared with DOM/SAX XML parsers. 

Ryan

<= /body> ------=_Part_104186_1689188499.1423287088934--