delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/09/14/06:17:42

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Wed, 14 Sep 2016 12:14:52 +0200 (CEST)
From: Roland Lutz <rlutz AT hedmen DOT org>
To: "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Subject: Re: [geda-user] Attribute namespaces (was: Can an attribute be
attached to text for later inclusion in gnetlist backend?)
In-Reply-To: <20160913183206.GA21178@localhost.localdomain>
Message-ID: <alpine.DEB.2.11.1609141214480.2756@nimbus>
References: <20160823053301 DOT 865f671a1b40b5a422e59ce7 AT gmail DOT com> <da433c1d-c711-e0d8-f9ff-a6e843bfe266 AT sbcglobal DOT net> <AB0B2DAD-9075-4AEC-B33E-A57DA050B079 AT noqsi DOT com> <CAGde_xOYrkv-4eWyR4OOTT+XQMPcr4MxmT1xomB9uCneZBCT6A AT mail DOT gmail DOT com>
<20160824185818 DOT GD14293 AT localhost DOT localdomain> <CAGde_xNfx_VmpWTm6EwHac2QaKQCRefs1cKK=s9gE8OOuMiWdA AT mail DOT gmail DOT com> <20160831221409 DOT GA2585 AT localhost DOT localdomain> <CAGde_xMDpUFy5P05Mg+zmzDtvbshvZAghR13F4UkSxxMqtw7yw AT mail DOT gmail DOT com> <20160906213426 DOT GA10224 AT localhost DOT localdomain>
<alpine DOT DEB DOT 2 DOT 11 DOT 1609071254540 DOT 1888 AT nimbus> <20160913183206 DOT GA21178 AT localhost DOT localdomain>
User-Agent: Alpine 2.11 (DEB 23 2013-08-11)
MIME-Version: 1.0
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

What makes using common "spice", "bom", and "pcb" namespaces attractive to 
me is that they are not defined by technical implementation details 
("What's the name of the backend I use?") but by a meaningful category 
("What's that attribute used for?") which is intuitively obvious to the 
user.

On Tue, 13 Sep 2016, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via 
geda-user AT delorie DOT com] wrote:
> Agreed, if the backends are compatible. I mean, e.g., that John Doty's 
> spice backend is not compatible with spice-sdb, IIUC. Otherwise we have 
> either to ensure they're compatible or to use separate namespaces.

I'm not so sure about that.  The spice-sdb and spice-noqsi backends aren't 
separate "problem domains" in the way SPICE simulation and PCB layout are; 
most people will probably pick one or the other and stick to it, at least 
within one project.  So the attributes can't conflict.

This could in theory be an issue with different PCB layout software, too, 
or even with one PCB layout software and different footprint libraries. 
What if someone wants to layout a schematic both in Osmond and pcb-rnd to 
see which software fits them best?

It would be possible to address this by adding optional "flavor" 
specifiers to the namespace, as in

     pcb[osmond]:footprint=
     pcb[pcb-rnd]:footprint=

However, I believe this is over-engineering a rare problem, and in reality 
the user would just have two different schematics, just like they would 
now.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019