delorie.com/archives/browse.cgi | search |
--Sig_/00jrIsQ8oAZZ4Bjx=2tQ/rB Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 8 Jan 2016 20:15:24 -0900 "Britton Kerin (britton DOT kerin AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda= -user AT delorie DOT com> wrote: > The way to think about YAML/JSON is as portable text-based > serialization formats for the couple most popular datatypes that get > built into modern languages, in particular arrays, hashes, and scalar > values (basically numbers and strings). JSON doesn't support native > (non-tree) references so you have to add your own id field if what > you want to refer to doesn't have already have a unique name. YAML > does. JSON is much more common but unfortunately also more noisy. > Some people like the noise because they don't trust any > whitespace-based approach (bad experiences with make). Ok. I try to express my data model in YAML. The only problem is that I don't have any experience in YAML, but hopefully I catch up some in the weekend. Then we might write a library that is able to read write gpcb object to/from either YAML or SQL. It might be double work, but we can make performance te= sts at the end. So could we first think about an API? So we might work together parallel. F= or example, you implement the API in current pcb, and I write the file handler? I think the first step would be to implement the current capability of pcb, and later, when the infrastructure is there, we can fiddle with the GUI and other logic. Another idea came in my mind to separate the exporter HIDs from the main pc= b. For example, the gerber exporter would be a separate piece of program (using shared libraries). Lev --Sig_/00jrIsQ8oAZZ4Bjx=2tQ/rB Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWkODpAAoJECHeg32hsZ8oywQH/jIwlIU5cKY3stZJjIFxND9x xl8z6k+SUU4rXX6CmTdLeVlL3lfZWRQDEk0/Axg7hnIetP8AhOSv6gYGDMxHsoRD QQ66ga/yyOui4Zo3Fe8AxHR87+oYOY9WlAhRVPamIikZ17p7SQdIz47RDgg5w7Hf ltrYPpLK+R4Fxa8rrAVL+KHfRdNcLF6rHhi36vuaKZMC7LqBSYwUuBLbrNjPBh+Y eh+O3T7PHumSGAQNTjZLOOG8vhOC4uDOXbfLWhxhoFIx7jlTebOf2BDIBOQoQzmz 1uETRKGzJoQa0qQpGgIHUqPET5mcdIhndrufJwiYJgsIEUnSMR/u1/O1Q4u+QH8= =b1Wa -----END PGP SIGNATURE----- --Sig_/00jrIsQ8oAZZ4Bjx=2tQ/rB--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |