Why Nostr? What is Njump?
2023-07-09 20:32:29
in reply to

Louis on Nostr: npub1s2kql…p8cla Assuming you use SBCL: Load your stuff into the Common Lisp image ...

Assuming you use SBCL: Load your stuff into the Common Lisp image and execute:

(sb-ext:save-lisp-and-die #P"path/name-of-executable" :toplevel #'my-app:main-function :executable t)

This will result in an executable for your platform that will run the main-function of your app.

See here:
https://lispcookbook.github.io/cl-cookbook/scripting.html

Another strategy would be to put this as the first line of your .lisp script:

#!/usr/bin/env sbcl --script
(format t "Hello, World")
...

Then chmod +x my-script.lisp and it will be run like any other scripting language.
Author Public Key
npub1tp9e9qhmc02khh3jzpn8vmqwhj3u25yw352ed2x87zs4e2ps2uwqhadzfn