www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/02/06/04:40:26

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Proofpoint-Virus-Version: vendor=fsecure
engine=2.50.10432:5.13.68,1.0.33,0.0.0000
definitions=2015-02-06_04:2015-02-06,2015-02-06,1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0
suspectscore=5 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0
reason=mlx scancount=1 engine=7.0.1-1412110000 definitions=main-1502060100
MIME-version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
Subject: Re: [geda-user] FOSDEM
From: Chris Smith <space DOT dandy AT icloud DOT com>
In-reply-to: <201502042333.t14NX28o024789@envy.delorie.com>
Date: Fri, 06 Feb 2015 09:38:17 +0000
Message-id: <7C1A5871-3056-482C-BC58-173D90D80F77@icloud.com>
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>
<CAOFvGD4M48Ap=UQzL_T3yzas2rJrNFfxXRUOkOe8gA8J3bQCHg AT mail DOT gmail DOT com>
<201502042333 DOT t14NX28o024789 AT envy DOT delorie DOT com>
To: geda-user AT delorie DOT com
X-Mailer: Apple Mail (2.2070.6)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t169cfi3010775
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 4 Feb 2015, at 23:33, DJ Delorie <dj AT delorie DOT com> wrote:
> 
> 
>> Also, when your file format is a scripting language, it becomes *very*
> easy to write a virus.
> 
> There, fixed that for you.  Executable content is a no-no.

While that’s generally the case, it’s not true of Lua, which was designed from the ground up as an embedded language rather than a fully fledged scripting language.  All access to system resources, file I/O, etc are provided by libraries which must be explicitly loaded by the host application — the Lua interpreter itself has no native ability to perform those functions.  I chose Lua to provide scripting for a project for exactly those reasons, having initially preferred Python or PERL; after lots of research it turned out to be nigh on impossible to securely embed PERL or Python because so many ‘unsafe’ abilities are implemented directly within the interpreter and it would border on the trivial for a virus writer to circumvent any restrictions imposed upon a script.  By contrast it is trivial, even using the stock Lua interpreter, to provide a sandboxed environment.

Lua was also designed with ‘rich’ configuration/data files as a primary use case and as a result the syntax is very clean and simple — a simple INI file is almost a valid Lua script, except that strings must be quoted.

Lua is hardly a ‘toy’ language either.  It is used in Adobe Lightroom, several Mercedes Benz vehicles and Osmond PCB, as an EDA example.

Regards,
Chris
—
Chris Smith <space DOT dandy AT icloud DOT com>


- Raw text -


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