On Saturday, June 21, 2014 6:54:16 AM UTC+9, Evgenii wrote:
>
> I would really prefer Python parser. I've never heard of Lua before I read 
> about Tup. There will be several people working on the project, and most of 
> them probably never heard of Lua either.
>
 
Lua is a very typical straightforward imperative language, the main quirks 
being: lists (tables with only numeric indices) are indexed from 1, nil and 
false are false and everything else is true, ~= means not equals.  Lua has 
block scoping but you have to declare variables with "local".  I truly 
believe that it shouldn't take more than 10 minutes to pick up (excepting 
objects + metatables).  It's used by Cisco ASA's, Wireshark, and World of 
Warcraft... I think there might be a couple other high-profile uses though.

Lua has a very small code base and binary size which makes it well suited 
for domain-specific environments.  The Lua parser is built into the Tup 
binary so the embeddability is appreciated.  

Python is comparatively large, and in general I think it's hard to separate 
Python from it's os-level methods and therefore difficult to sandbox 
(reading/writing files, connecting to the internet, etc.).
 

> While there are really good introduction examples for using tupfiles, 
> there's nothing for using Lua other than one page API description. On the 
> other hand, sometimes I would need to run calculation to figure the list of 
> inputs and outputs, so without a scripting support this could be tricky. In 
> the face of these uncertainties I might have to go with SCons, although it 
> is reportedly very slow :( I've already tried Waf and found it not 
> intuitive at all.
>
>
Have you seen this: http://gittup.org/tup/ex_lua_examples.html ?  It has 
one line examples with no magic and I think there's a very clear 1-1 
connection with the non-Lua tupfile syntax.  It should be straightforward, 
but if anything is at all unclear I'll try to fix it.

Not to rag on Waf and Scons but I couldn't make heads or tails of them 
either.

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to