5 ms·
sbcl can compile to a single executable (the image is embedded in the binary). From a deployment standpoint, the only real issue is if you depend on a dynamical
by fiddlerwoaroof 2mo ago
sbcl can compile to a single executable (the image is embedded in the binary). From a deployment standpoint, the only real issue is if you depend on a dynamically linked C library like OpenSSL.
- mark_l_watson 2mo agoI used to do this to build command line utilities in SBCL, with millisecond initialization times. Good technique, and compress the image so executables are fairly small.
- attila-lendvai 2mo agorandom note: it's possible to incorporate C libs at compile time, e.g.: https://github.com/sionescu/sbcl-goodies https://github.com/sionescu/sbcl-goodies
- fiddlerwoaroof 2mo agoYeah, I’ve done that in a slightly hacky way (manually run the various stages of the sbcl build and statically link c libs before building the actual image).