On Sat, 23 Nov 2002, Thomas Arp wrote: > lisp (gcl2.4.3) is roughly 12MB, perl 5.8.0 takes up a stunning 48MB and > python 2.2.2 is 29MB. The standard libraries for these languages are quite expansive; especially for Common Lisp. In the case of Lisp, there are many quite small implementations around -- including a simple interpreter implemented in JavaScript and weighing in at 13K. For Python and Perl, many UNIX and most Linux systems feature one or both out of the box, so the issue is moot on those systems. > The corresponding number for dg scripts is 790KB, and with that it > already has ten times the funtionality of the lua package currently > available. How are you defining functionality? Lua is a complete, procedural programming language featuring garbage collection, first-class functions, continuations, and associative arrays (which can be used for representing actual data structures). Its standard library provides support for mathematics, file I/O, and string handling. To my knowledge, DG scripts implements none of these (primarily because its niche application does not require it). > Functionality comes at a price. Seen from my perspective most shell > scripts and perl scripts look like greek[1]. I've never seen a lua script, > so I figure it'd be the same. Given the following example of DG scripts (stolen from the DG scripts distribution): #2 mob greet test~ 0 g 100 ~ if %direction% say Hello, %actor.name%, how are things to the %direction%? else say Where did YOU come from, %actor.name%? end ~ the hypothetical Lua equivalent would be: function exGreetTest (me, actor, direction) if direction then me:say "Hello, " .. actor.name .. ", how are things to the " .. direction .. "?" else me:say "Where did YOU come from, " .. actor.name .. "?" end end -dak -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT