X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f X-Recipient: geda-help AT delorie DOT com X-TCPREMOTEIP: 100.0.183.69 X-Authenticated-UID: jpd AT noqsi DOT com From: John Doty Content-Type: multipart/alternative; boundary="Apple-Mail=_9D0BFFD5-0861-4B57-A1B2-18AA229F0FC4" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [geda-help] Linux Date: Fri, 4 Sep 2020 10:34:45 -0400 References: <20200829221451 DOT GA2565 AT newvzh DOT lokolhoz> <664de6c2-ad96-8298-1b64-ad550acfca64 AT k4gvo DOT com> <20200901193434 DOT GB19839 AT newvzh DOT lokolhoz> <20200902141116 DOT GA2911 AT newvzh DOT lokolhoz> <20200902165424 DOT GB2911 AT newvzh DOT lokolhoz> <333FD0E9-238C-445F-AEE4-850B0EA19A88 AT ece DOT orst DOT edu> <2A687A4D-3219-431E-8866-2D11C2418C81 AT noqsi DOT com> <0839C430-BE38-4A0C-AD1A-0DD9F75A8DDD AT noqsi DOT com> To: geda-help AT delorie DOT com In-Reply-To: Message-Id: <5F6945F0-1226-4FD1-9DE5-3FFB930B45B3@noqsi.com> X-Mailer: Apple Mail (2.3273) Reply-To: geda-help AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-help AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --Apple-Mail=_9D0BFFD5-0861-4B57-A1B2-18AA229F0FC4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Sep 4, 2020, at 9:11 AM, Roland Lutz wrote: >=20 > On Thu, 3 Sep 2020, John Doty wrote: >> On Sep 3, 2020, at 6:01 PM, Roland Lutz wrote: >> > On Wed, 2 Sep 2020, John Doty wrote: >> > > I favor Lepton [because] it=E2=80=99s agnostic about which layout = program > > you use: it has no favored layout component. [=E2=80=A6] >> > > The layout people I work with all have different favorite tools, = so > > decoupling schematic entry and layout is very important to me. >> > > This is absolutely the same for gEDA/gaf. >> No, gEDA/gaf is joined to PCB. The tail wags the dog. >=20 > gEDA/gaf supports a variety of layout programs via netlister backends, = some of which you contributed yourself. There's even backends for SPICE = and cascade simulation which doesn't involve layout at all. Yes, but there=E2=80=99s no new development happening here. I was the = last holdout. There seems to be neither developer nor user interest in = anything except PCB support. >=20 >=20 >>> Xorn is an internal component; you don't have to understand or even = consciously interact with it in any way. (But even if you did, it's not = more complicated than the Scheme API.) >> Except if you=E2=80=99re writing back ends, you do. >=20 > There's a Scheme and a Python variant of the gnetlist API. You can = use either to write a backend. >=20 >=20 >> I=E2=80=99ve done things in Python. It wasn=E2=80=99t the problem. = The problem was to figure out the API. >=20 > Let's stay at the example of the Osmond PCB backend. It accesses the = netlist in the following ways: >=20 > - netlist.packages (the packages in the netlist) > - netlist.nets (the nets in the netlist) >=20 > - package.refdes (the refdes of the package) > - package.get_attribute('footprint', 'unknown') (gets the "footprint" = attribute of the package, with "unknown" as the default) >=20 > - net.name (the name of the net) > - net.connections (a list of pins connected to the net) >=20 > - pin.number (the pinnumber) > - pin.package (the package to which the pin belongs) >=20 > What about that do you consider hard to figure out? When I first looked at this years ago, there was no API documentation, = just a very confusing high level description of Xorn. Maybe there is = better documentation now, but I=E2=80=99ve moved on. And as far as I can = tell, nobody but you has actually used this API to write anything. It = seems to be your personal environment in which you are impressively = productive but nobody else is. At least the old gEDA scheme API, poorly = documented as it was, attracted contributors. >=20 >=20 > Roland John Doty Noqsi Aerospace, Ltd. jpd AT noqsi DOT com --Apple-Mail=_9D0BFFD5-0861-4B57-A1B2-18AA229F0FC4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Sep 4, 2020, at 9:11 AM, Roland Lutz <rlutz AT hedmen DOT org> = wrote:

On Thu, 3 Sep 2020, John Doty wrote:
On Sep 3, 2020, at 6:01 PM, Roland Lutz <rlutz AT hedmen DOT org> = wrote:
> On Wed, 2 Sep 2020, John Doty wrote:
> > I favor Lepton [because] it=E2=80=99s agnostic = about which layout program > > you use: it has no favored layout = component. [=E2=80=A6]
> > The layout people I work = with all have different favorite tools, so > > decoupling = schematic entry and layout is very important to me.
> = > This is absolutely the same for gEDA/gaf.
No, = gEDA/gaf is joined to PCB. The tail wags the dog.

gEDA/gaf supports a variety of = layout programs via netlister backends, some of which you contributed = yourself.  There's even backends for SPICE and cascade simulation = which doesn't involve layout at all.

Yes, but = there=E2=80=99s no new development happening here. I was the last = holdout. There seems to be neither developer nor user interest in = anything except PCB support.



Xorn is an internal component; you don't have = to understand or even consciously interact with it in any way. =  (But even if you did, it's not more complicated than the Scheme = API.)
Except if you=E2=80=99re writing back = ends, you do.

There's a Scheme = and a Python variant of the gnetlist API.  You can use either to = write a backend.


I=E2=80=99ve done things in Python. It wasn=E2=80= =99t the problem. The problem was to figure out the API.

Let's stay at the example of the = Osmond PCB backend.  It accesses the netlist in the following = ways:

- netlist.packages (the packages in = the netlist)
- netlist.nets (the nets in the netlist)

- package.refdes (the refdes of the = package)
- package.get_attribute('footprint', 'unknown') = (gets the "footprint" attribute of the package, with "unknown" as the = default)

- net.name (the name of the = net)
- net.connections (a list of pins connected to the = net)

- pin.number (the pinnumber)
- pin.package (the package to which the pin belongs)

What about that do you consider hard to figure = out?

When I first looked at this years ago, there was = no API documentation, just a very confusing high level description of = Xorn. Maybe there is better documentation now, but I=E2=80=99ve moved = on. And as far as I can tell, nobody but you has actually used this API = to write anything. It seems to be your personal environment in which you = are impressively productive but nobody else is. At least the old gEDA = scheme API, poorly documented as it was, attracted = contributors.



Roland

John Doty    =           Noqsi = Aerospace, Ltd.

jpd AT noqsi DOT com




= --Apple-Mail=_9D0BFFD5-0861-4B57-A1B2-18AA229F0FC4--