Fast process startup for common lisp
-
autoreconf -i
-
./configure
-
make
-
make install
-
Start the server:
cl-zygote
-
Run the client:
clz -e "(print 'hello-world)"
-
The server
cl-zygote
is a lisp process that waits on a unix domain socket for connections from clients. -
The client
clz
connects to the server and passes to an expression to evaluate along with its standard input, output, and error file descriptors. -
The server then forks a child handler, dups the client's file descriptors to its own, and evaluates the passed expression.
Loosely inspired by the Android Zygote process.