Mail Archives: geda-user/2015/02/07/00:33:04
------=_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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>=
<meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"></h=
ead><body ><div style=3D'font-size:10pt;font-family:Verdana,Arial,Helvetica=
,sans-serif;'><br><div class=3D"zmail_extra"><div id=3D"1"><br>---- On Fri,=
06 Feb 2015 12:07:51 -0500 <b>John Doty<jpd AT noqsi DOT com></b> wrote ---=
- <br></div><blockquote style=3D"border-left: 1px solid #0000FF; padding-le=
ft: 6px; margin:0 0 0 5px"><br>On Feb 6, 2015, at 9:29 AM, Jason White <=
<a href=3D"mailto:whitewaterssoftwareinfo AT gmail DOT com" target=3D"_blank" mail=
id=3D"whitewaterssoftwareinfo%40gmail.com" subj=3D"">whitewaterssoftwareinf=
o AT gmail DOT com</a>> wrote: <br> <br>> For those who have not seen, I imp=
lemented an example program in C <br>> using Lua to safely read data def=
ined in Lua files. <br> <br>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. <br><br></blockquote><br></div><d=
iv class=3D"zmail_extra">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. </div><div class=
=3D"zmail_extra"><br></div><div class=3D"zmail_extra">Ryan</div><br></div><=
/body></html>
------=_Part_104186_1689188499.1423287088934--
- Raw text -