5 ms·
I would like to use it to produce fully static executables for simple utilities written in Common Lisp, but I haven’t successfully gotten it to work yet. Basica
by schemescape 3y ago
I would like to use it to produce fully static executables for simple utilities written in Common Lisp, but I haven’t successfully gotten it to work yet. Basically, in any case where a 50 MB SBCL binary would be overkill (eg performance is not critical and portability is the top concern).
I’ve also read elsewhere that ECL runs on OpenBSD, where other CLs have traditionally not been fully featured.
Edit: also seems like it could help with compiling to WebAssembly (again, when performance is not critical), although I think their work there is not complete yet.
- tgbugs 3y agoIf you are willing to use somewhat older version of SBCL (2.1.11) then you can use daewok's static executable branch and link against musl. That version only supports gzipped images, but even so you can get it down under 15mb for small programs.
- schemescape 3y agoYes, thanks, I forgot to mention that as an option. I’d like a solution that doesn’t involve patching SBCL, but I’ve been following that project and it’s exciting!
- ducktective 3y agoThere is also http://ciel-lang.org/#/scripting http://ciel-lang.org/#/scripting for scripting in Common Lisp (similar to Janet)
- schemescape 3y agoI had not run across this. Thanks!
- schemescape 3y agoLooks like this doesn't support musl libc-based distributions? Also, it seems to require an account to download, which seems odd.
- jackdaniel 3y agoHey! Emscripten port works (it will be merged somewhere soon, and we anticipate a release later this year), the next thing to target is "pure" WASI. Yes, ECL runs fine on OpenBSD (as well as on Windows, Linux, other BSD, haiku, iphone, android and - in a branch - wasm).
- schemescape 3y agoThat’s awesome news!