Max Rottenkolber
4/3/2015 11:34:00 AM
On Wed, 01 Apr 2015 02:53:25 -0700, Faré wrote:
> d- Therefore, I implemented --dispatched-entry in a way mostly
> compatible with buildapp, to let the user build a "multi-call binary" in
> the genre of busybox. I can then dump a single image for all my scripts,
> and they start super fast, evaluate super fast, and only occupy those
> those tens of megabytes once.
>
> e- This --dispatched-entry feature is implemented as a thin layer that
> delegates everything to a small new library call cl-launch-dispatch
> distributed with cl-launch. That means it will actually slow things down
> a tiny bit if you use it without dumping an image, but won't slow things
> down at all if you don't use it and don't dump an image.
May I ask why you don't just keep your Lisp running? E.g. I use Emacs as
my primary UI, it is started when I log in, along with a CCL instance. In
Emacs I have functions to execute arbitrary CL code. Running a script for
me is:
(package:some-function ...)[C-x e]
(Even including some job management, etc.)
Why do you try to force CL into the UNIX world and not the other way
around? I found it easier and more powerful to enslave a UNIX to a Lisp
instead of the other way around.
I have seen the busybox-style executable in other projects with multiple
sub programs but compiling your shell scripts into your shell seems weird.