delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/02/08/08:58:05

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Sun, 8 Feb 2015 14:56:47 +0100 (CET)
X-X-Sender: igor2 AT igor2priv
To: geda-user AT delorie DOT com
X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu"
From: gedau AT igor2 DOT repo DOT hu
Subject: Re: [geda-user] Using Lua to safely read configuration and layout
files (program attached)
In-Reply-To: <1897145.BbSdS1MRWc@jasum>
Message-ID: <alpine.DEB.2.00.1502081452540.7324@igor2priv>
References: <CAOFvGD7pJTo8A=MXVbuuXO=++0vGukUyqVfckVtnCi99ziqWJQ AT mail DOT gmail DOT com> <3709636 DOT NVszrDDjOR AT jasum> <20150208135925 DOT 6f6ddab6 AT Parasomnia DOT thuis DOT lan> <1897145 DOT BbSdS1MRWc AT jasum>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
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


On Sun, 8 Feb 2015, Christian Riggenbach wrote:

> On Sunday 08 February 2015 13.59:25 you wrote:
>>> My dream
>>> would be a console in gschem (or standalone) for executing our own
>>> scriptlets directly on the life data.
>>
>>
>> When using gschem try hitting the ':'-key, voila a console! Now you
>> need to brush up on your Guile coding skills...
>
> Like that? http://www.gnu.org/software/guile/manual/guile.html#Running-Guile-Interactively
>
> Yeah, very straighforward. Call me ignorant, but we all know C on some level,
> and learning yet another language with a completely different syntax sounds not
> like efficiently spent time to me. Simple scriptlets should be a mater of a couple
> of lines, not a jungle of brackets. Especialy as we wan't to attract new
> developers, we should lower the hurdles, not make them higher.

I agree. Of course this also depends on what the users are familiar with.

Offtopic: I love using awk for scripting, both because the whole language 
is minimalistic and because the syntax is so close to C.

>
> I once wanted to change a netlister backend to my needs, but I gave up and
> used grep/awk/cut because of the (IMHO) obscure syntax of scheme. Simple

Had the same issue. I finally decided to bite the bullet and wrote a 
couple of exporters in guile to do the netlisting and dump everything in 
various text formats then I can use grep/sed/awk to process one of the 
text formats.

Regards,

Igor2

- Raw text -


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