Louis on Nostr: npub1s2kql…p8cla Assuming you use SBCL: Load your stuff into the Common Lisp image ...
Published at
2023-07-09 20:32:29Event JSON
{
"id": "eb975da9bf17d8f025f3ca32e91a75d1ee0d6ac5197831bc26aa660d07f3fc7e",
"pubkey": "584b9282fbc3d56bde321066766c0ebca3c5508e8d1596a8c7f0a15ca830571c",
"created_at": 1688934749,
"kind": 1,
"tags": [
[
"p",
"82ac0fd58858a39b32fe7820c761e4259d0ae3865b5e5bf5e27d8dee24287a6c",
"wss://relay.mostr.pub"
],
[
"p",
"bf1957ed6b9c28a6ed19f6d4f3b146eeadaee1bbc9d03767b8624f0c09b2d0c5",
"wss://relay.mostr.pub"
],
[
"e",
"7483e2470ffa2d983c07cd6ca6f5610e84416d726b76c4d2a5bc4191b5c0254e",
"wss://relay.mostr.pub",
"reply"
],
[
"t",
"p"
],
[
"mostr",
"https://emacs.ch/users/louis/statuses/110686027741725699"
]
],
"content": "nostr:npub1s2kql4vgtz3ekvh70qsvwc0yykws4cuxtd09ha0z0kx7ufpg0fkqhp8cla Assuming you use SBCL: Load your stuff into the Common Lisp image and execute:\n\n(sb-ext:save-lisp-and-die #P\"path/name-of-executable\" :toplevel #'my-app:main-function :executable t)\n\nThis will result in an executable for your platform that will run the main-function of your app.\n\nSee here:\nhttps://lispcookbook.github.io/cl-cookbook/scripting.html\n\nAnother strategy would be to put this as the first line of your .lisp script:\n\n#!/usr/bin/env sbcl --script\n(format t \"Hello, World\")\n...\n\nThen chmod +x my-script.lisp and it will be run like any other scripting language.",
"sig": "cafb39c5cf4dca5ff7287a0d5cbc62849d8201c946787c5f76ddce63a07d93ed99e6d9c8ba5a00d741913494f6e7c1fd9a528f7eb916860cad5c4b78c819371e"
}