I've done a small comparative of emacs, clisp and scsh with respect to
their script abilities.
I find that clisp or emacs are better at scripting than scsh, either
for performance or ease of use (ease of access to the documentation,
etc) reasons.
While the specific functions added to scheme by scsh to manipulate
commands, processes, pipes, etc, are attractive, 80 % of that can be
done easily in emacs too.
I think it would be more interesting if scsh was ported to Common-Lisp
(over clisp for example).
-------------- ------------------ ------------------ ------------------
emacs scsh clisp
-------------- ------------------ ------------------ ------------------
Loading a one statement script ten times:
Real Time: 0m1.939s 0m8.327s 0m1.089s
User Time: 0m0.350s 0m1.670s 0m0.160s
System Time: 0m0.010s 0m0.030s 0m0.170s
Faster Much slower Fastest
-------------- ------------------ ------------------ ------------------
Running a small script ten times:
Real Time: 0m12.841s 0m59.303s 0m7.138s
User Time: 0m03.400s 0m16.260s 0m1.890s
System Time: 0m00.220s 0m00.560s 0m0.300s
Running a small compiled script ten times:
Real Time: 0m10.822s 0m6.603s
User Time: 0m03.250s 0m1.400s
System Time: 0m00.110s 0m0.440s
Faster Much slower Fastest
-------------- ------------------ ------------------ ------------------
One statement script:
Virtual Size: 6996 KB 17356 KB 6848 KB
Real Size: 3108 KB 4460 KB 2616 KB
Fair Memory Hog Lightest
-------------- ------------------ ------------------ ------------------
At the end of a small script:
Virtual Size: 7212 KB 17356 KB 7100 KB
Real Size: 3632 KB 16192 KB 2872 KB
Fair Memory Hog Lightest
-------------- ------------------ ------------------ ------------------
Documentation: Good Bad Fair
(in-line doc, (no in-line doc. (minimal in-line
(describe-function, reference split doc (describe,
describe-variable, between several apropos),
apropos, info,...) docs (scsh, Common-Lisp Ref.)
easily accessible scheme)).
on-line full
reference, etc).
Language: ELisp / CommonLisp Scheme Common Lisp
Scripting: Best set of file Better set of
editing functions. scripting (process
management) functions.
Libraries: Full range of Few existing lib. Full range of
libraries & appl. or script/appl. libraries & appl.
-------------- ------------------ ------------------ ------------------
--
__Pascal_Bourguignon__ http://www.informatimago.com/
----------------------------------------------------------------------
|