www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/09/11/20:07:25

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-TCPREMOTEIP: 207.224.51.38
X-Authenticated-UID: jpd AT noqsi DOT com
From: John Doty <jpd AT noqsi DOT com>
Message-Id: <0F3A77B2-E19E-4D38-A955-E7EF9E147ABB@noqsi.com>
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Subject: Re: [geda-user] Guile snippets
Date: Fri, 11 Sep 2015 18:06:52 -0600
References: <20150911215322 DOT GC7946 AT localhost DOT localdomain> <D1C8547E-A899-4865-8416-EB7F03958C1C AT noqsi DOT com> <CAGde_xPiL8Y7Cp2XcOpnwzk1bY9e0TYRaxii71MkThO=TNsqkQ AT mail DOT gmail DOT com>
To: geda-user AT delorie DOT com
In-Reply-To: <CAGde_xPiL8Y7Cp2XcOpnwzk1bY9e0TYRaxii71MkThO=TNsqkQ@mail.gmail.com>
X-Mailer: Apple Mail (2.1878.6)
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

--Apple-Mail=_ACFADAD3-D5D8-4E71-BC38-DDCD45E147F8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


On Sep 11, 2015, at 4:53 PM, Svenn Are Bjerkem =
(svenn DOT bjerkem AT googlemail DOT com) [via geda-user AT delorie DOT com] =
<geda-user AT delorie DOT com> wrote:

> On 12 September 2015 at 00:22, John Doty <jpd AT noqsi DOT com> wrote:
>=20
> On Sep 11, 2015, at 3:53 PM, Vladimir Zhbanov (vzhbanov AT gmail DOT com) =
[via geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
>=20
> > I'm trying to make Guile more interesting / less awful for gEDA =
users.
> >
> > As a first attempt, I've added some example scripts at [1].
> >
> > Please look at them, try them and ask questions if something is =
unclear.
> >
> > I'm planning to add other info since I have some (I hope) useful
> > scripts, e.g. making symbols using Guile or transforming hierarchy =
into
> > a symbol (grown from from the geda_sch2sym shell script on =
Launchpad).
> >
> > Any feedback is appreciated.
>=20
> Really cool stuff!
>=20
> The only thing I=92d change is the header "Scripting examples=94. It =
should be =93Gschem Scripting Examples=94. The gschem and gnetlist Guile =
API=92s are very different, so it could confuse readers.
>=20
>=20
> Currently the language confuse me. I wrote a lot of helper scripts =
during my Cadence days. SKILL is also a kind of LISP, but it strikes me =
how different the notation is. Where SKILL hardly used any other magic =
characters but ', guile seems to use *,? and ! in ways I am not able to =
grok by just looking at the code.

They=92re not special, just part of names, often used to indicate =
something about a function. For example, the name of a function that =
tests some condition conventionally ends with =93?=94. But that=92s only =
a convention. Similarly, functions that work =93in place=94, modifying =
their arguments, conventionally have names ending in =93*=94. Scheme =
does not enforce these conventions.

>=20
> I would be happy if the scripts were elaborated a bit more regarding =
'how to think when programming guile in geda' for people who has =
programmed before, but not in guile.
>=20
> I just got started with John's example for back-end programming in =
gnetlist, and I really think that gnet-devel.scm should be a part of the =
distribution.

=93gnetlist -i=94 now gives you all of the gnet-devel functionality =
(thanks, Peter B.), so that would be redundant.

> Playing around on the REPL command line reminds me of the CIW window =
in Cadence. Does the same exist for gschem too?
>=20
> --=20
> Svenn

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com



--Apple-Mail=_ACFADAD3-D5D8-4E71-BC38-DDCD45E147F8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: =
after-white-space;"><br><div><div>On Sep 11, 2015, at 4:53 PM, Svenn Are =
Bjerkem (<a =
href=3D"mailto:svenn DOT bjerkem AT googlemail DOT com">svenn DOT bjerkem AT googlemail DOT com<=
/a>) [via <a =
href=3D"mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>] &lt;<a =
href=3D"mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div dir=3D"ltr"><div class=3D"gmail_extra"><div =
class=3D"gmail_quote">On 12 September 2015 at 00:22, John Doty <span =
dir=3D"ltr">&lt;<a href=3D"mailto:jpd AT noqsi DOT com" =
target=3D"_blank">jpd AT noqsi DOT com</a>&gt;</span> wrote:<br><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><span class=3D""><br>
On Sep 11, 2015, at 3:53 PM, Vladimir Zhbanov (<a =
href=3D"mailto:vzhbanov AT gmail DOT com">vzhbanov AT gmail DOT com</a>) [via <a =
href=3D"mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>] &lt;<a =
href=3D"mailto:geda-user AT delorie DOT com">geda-user AT delorie DOT com</a>&gt; =
wrote:<br>
<br>
&gt; I'm trying to make Guile more interesting / less awful for gEDA =
users.<br>
&gt;<br>
&gt; As a first attempt, I've added some example scripts at [1].<br>
&gt;<br>
&gt; Please look at them, try them and ask questions if something is =
unclear.<br>
&gt;<br>
&gt; I'm planning to add other info since I have some (I hope) =
useful<br>
&gt; scripts, e.g. making symbols using Guile or transforming hierarchy =
into<br>
&gt; a symbol (grown from from the geda_sch2sym shell script on =
Launchpad).<br>
&gt;<br>
&gt; Any feedback is appreciated.<br>
<br>
</span>Really cool stuff!<br>
<br>
The only thing I=92d change is the header "Scripting examples=94. It =
should be =93Gschem Scripting Examples=94. The gschem and gnetlist Guile =
API=92s are very different, so it could confuse =
readers.<br><br></blockquote><div><br></div><div>Currently the language =
confuse me. I wrote a lot of helper scripts during my Cadence days. =
SKILL is also a kind of LISP, but it strikes me how different the =
notation is. Where SKILL hardly used any other magic characters but ', =
guile seems to use *,? and ! in ways I am not able to grok by just =
looking at the =
code.</div></div></div></div></blockquote><div><br></div>They=92re not =
special, just part of names, often used to indicate something about a =
function. For example, the name of a function that tests some condition =
conventionally ends with =93?=94. But that=92s only a convention. =
Similarly, functions that work =93in place=94, modifying their =
arguments, conventionally have names ending in =93*=94. Scheme does not =
enforce these conventions.</div><div><br><blockquote type=3D"cite"><div =
dir=3D"ltr"><div class=3D"gmail_extra"><div =
class=3D"gmail_quote"><div><br></div><div>I would be happy if the =
scripts were elaborated a bit more regarding 'how to think when =
programming guile in geda' for people who has programmed before, but not =
in guile.</div></div></div><div><br></div>I just got started with John's =
example for back-end programming in gnetlist, and I really think that =
gnet-devel.scm should be a part of the distribution. =
</div></blockquote><div><br></div>=93gnetlist -i=94 now gives you all of =
the gnet-devel functionality (thanks, Peter B.), so that would be =
redundant.</div><div><br><blockquote type=3D"cite"><div =
dir=3D"ltr">Playing around on the REPL command line reminds me of the =
CIW window in Cadence. Does the same exist for gschem too?<br =
clear=3D"all"><div><br></div>-- <br><div =
class=3D"gmail_signature">Svenn</div></div>
</blockquote></div><br><div apple-content-edited=3D"true">
<span class=3D"Apple-style-span" style=3D"border-collapse: separate; =
border-spacing: 0px;"><p style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font =
face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica">John =
Doty<span class=3D"Apple-converted-space">&nbsp; &nbsp; &nbsp; &nbsp; =
&nbsp;<span class=3D"Apple-converted-space">&nbsp;</span><span =
class=3D"Apple-converted-tab">&nbsp; &nbsp;<span =
class=3D"Apple-converted-space">&nbsp;</span></span></span>Noqsi =
Aerospace, Ltd.</font></p><p style=3D"margin: 0.0px 0.0px 0.0px =
0.0px"><a href=3D"http://www.noqsi.com/">http://www.noqsi.com/</a></p><p =
style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><font face=3D"Helvetica" =
size=3D"3" style=3D"font: 12.0px Helvetica"><a =
href=3D"mailto:jpd AT noqsi DOT com">jpd AT noqsi DOT com</a></font></p><br =
class=3D"Apple-interchange-newline"></span>
</div>
<br></body></html>=

--Apple-Mail=_ACFADAD3-D5D8-4E71-BC38-DDCD45E147F8--

- Raw text -


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