Digital Mark λ 📚 🕹 💾 🥃 on Nostr: Compiling! % cat hello.scm ;; hello.scm ;; -*- coding: utf-8 -*- (module-name ...
Compiling!
% cat hello.scm
;; hello.scm
;; -*- coding: utf-8 -*-
(module-name <hello>)
(module-compile-options main: #t)
(let* ( (args (command-line))
(name (cond
((<= (length args) 1) "World" )
(else (cadr args) )
))
)
(format #t "Hello, ~A!~%" name)
)
% kawa -C hello.scm
(compiling hello.scm to hello)
# the classpath is ugly:
% java -cp /usr/local/share/kawa/lib/kawa.jar:. hello
Mark
Hello, Mark!
#scheme #kawa
Published at
2025-02-19 02:59:49Event JSON
{
"id": "756446161a4085dc5034ce20328872b110b5aba546026239e9a1ea5571399665",
"pubkey": "fb87acbaf8ba707e56cf4f028fd6cc1e99b8a78fe8327cab70915f15631b0672",
"created_at": 1739933989,
"kind": 1,
"tags": [
[
"e",
"36d8b89b67cc4fa0678f3e91e3e6d86bbe890c584af7151290d4d0e9475ca6c2",
"wss://relay.mostr.pub",
"reply"
],
[
"t",
"t"
],
[
"t",
"scheme"
],
[
"t",
"Kawa"
],
[
"proxy",
"https://appdot.net/users/mdhughes/statuses/114028313940712725",
"activitypub"
]
],
"content": "Compiling!\n\n% cat hello.scm\n;; hello.scm\n;; -*- coding: utf-8 -*-\n\n(module-name \u003chello\u003e)\n(module-compile-options main: #t)\n\n(let* ( (args (command-line))\n (name (cond\n ((\u003c= (length args) 1) \"World\" )\n (else (cadr args) )\n ))\n )\n (format #t \"Hello, ~A!~%\" name)\n)\n\n% kawa -C hello.scm\n(compiling hello.scm to hello)\n# the classpath is ugly:\n% java -cp /usr/local/share/kawa/lib/kawa.jar:. hello\nMark\nHello, Mark!\n\n#scheme #kawa",
"sig": "eb2483e49c10514eefe6b198828301866d0105326ac459f75e72022225e6a51d3cc8a8ce9db8bd798773e84b5cfe9776fa7ca39428557391ac9a4e7f3892a476"
}