www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/02/04/17:48:49

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=tkU2iCIdo9AzEtrizi3PSUH4/PfpiF36WSAu3JpJMtc=;
b=NtoXqvKkaul8m5MhcUMOERl1J/oe5P4IrKojokCU5Jp84hBiWxqAexiV5pbhn4tCSO
bS42KdAP43MXawCEHWNyN19+8om7EX/HWmAk27OzQeypNtu5vGMY9GKJon69kj8WWVnN
tehaIcXeB824CN/LQA1nWdJjNd6kpL411ozYqio5eTFmOhUy3CeaW4QpC0VlAfo4q5TO
KQbyXlOdRmJuBvDEWjURiAY4wxH+do/JCzy/pezruVfGlLhGz6P0aQeYOTF4WVq89InR
kIAL8a7keWWk7bAQEKGMWap6x7GR02upZLPv1mPFz94zLS294Fpg7dhlvTmqYvtEgUMg
zhlA==
MIME-Version: 1.0
X-Received: by 10.202.193.214 with SMTP id r205mr331642oif.63.1423090038623;
Wed, 04 Feb 2015 14:47:18 -0800 (PST)
In-Reply-To: <90236728-E79D-47C7-BFB1-34140DB85ACB@sbcglobal.net>
References: <1420499386 DOT 3521 DOT 3 DOT camel AT cam DOT ac DOT uk>
<20150202152654 DOT GA13336 AT cuci DOT nl>
<54CFD589 DOT 9040702 AT xs4all DOT nl>
<CAHBYzfRkn-nJb4JfrDYyaD0WwPrpZvAgi0QdHCusgz185iNoHA AT mail DOT gmail DOT com>
<CAGde_xN-iNZUvHh-E47kx1EyoPRt1018wWiDwHhYQ9+od+cJwA AT mail DOT gmail DOT com>
<20150203112631 DOT 3507a0c1 AT Parasomnia DOT thuis DOT lan>
<20150204054256 DOT Horde DOT Pm1JV8RJbICk9SHvIGwZ7A3 AT webmail DOT in-berlin DOT de>
<CAOP4iL2stWVCy3WK0=SNu2zAbs8t6B0uyAgFuOnzG8v_MrYNfw AT mail DOT gmail DOT com>
<CAGde_xN5gs5r_on=HP2RN7cy6E=2EL9eK3cp+sd9BfBaWNLVew AT mail DOT gmail DOT com>
<20150204193720 DOT Horde DOT 42xUN-NzhCJRWZne-M5eCQ1 AT webmail DOT in-berlin DOT de>
<90236728-E79D-47C7-BFB1-34140DB85ACB AT sbcglobal DOT net>
Date: Wed, 4 Feb 2015 17:47:18 -0500
Message-ID: <CAOFvGD4M48Ap=UQzL_T3yzas2rJrNFfxXRUOkOe8gA8J3bQCHg@mail.gmail.com>
Subject: Re: [geda-user] FOSDEM
From: Jason White <whitewaterssoftwareinfo AT gmail DOT com>
To: geda-user AT delorie DOT com
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

I really like Lua (for ease of use) and Python (for the language and
libraries). I suspect Lua is lighter-weight and more straight-forward
to technically implement.

Because of that, I recommend Lua (lua.org). A lightweight, embeddable
scripting language which is very popular in the video game industry.
Lua is written as a plain C library and is licensed under the MIT
license. I myself have used Lua on multiple occasions (for scripting
and configuration files) and found it very straightforward to use.

Honestly, I wonder why we don't use something like Lua (or Python) for
our PCB and schematic file formats. Instead of having to write custom
text interpreters with yaml (or by even hand!) would could simply read
elements from an array defined in a Lua file. With Lua doing all of
the heavy lifting, instead of a bunch of hand crafted code, it would
be much simpler for us to extend the format to represent complex
things (buried vias and asymmetrical pins come to mind).

Also, when your file format is a scripting language, it becomes *very*
easy to write scripts to modify PCB/schematic files!

See the power point on embedding Lua, it contains some example C and
Lua programs: http://www.dcc.ufrj.br/~fabiom/lua/13Embedding.pdf

-- 
Jason White

- Raw text -


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