Post #2385539
2026-05-10 20:34 UTC
Replies (2)
-
@tealeg@mastodon.online 2026-05-11 10:41
@mason@partychickens.net I do like the way lazy-ffi uses read syntax, though you could of course do something similar with normal macros. I’m slowly exploring the forces on the Haiku API and I’m tempted to make a syntactic shortcut for this stuff. I won’t go too early though. Premature macroisation can really spoil things.
-
@izder456@fe.disroot.org 2026-05-13 16:42
@mason@partychickens.net @tealeg@mastodon.online neat! i can pledge() my programs easily now! ~ $ rlwrap chicken-csi CHICKEN (c) 2008-2022, The CHICKEN Team (c) 2000-2007, Felix L. Winkelmann Version 5.4.0 (rev 1a1d1495) openbsd-unix-clang-x86-64 [ 64bit dload ] Type ,? for help. #;1> (import lazy-ffi) ; loading /usr/local/lib/chicken/11/lazy-ffi.import.so ... ; loading /usr/local/lib/chicken/11/lazy-ffi.so ... ; loading /usr/local/lib/chicken/11/srfi-1.so ... ; loading /usr/local/lib/chicken/11/srfi-69.so ... ; loading /usr/local/lib/chicken/11/bind.so ... #;2> (import chicken.memory) ; loading /usr/local/lib/chicken/11/chicken.memory.import.so ... #;3> (begin #~"libc.so") (libc.so) #;4> (define null (address->pointer 0)) #;5> (define rc (#~pledge "stdio" null)) #;6> (print rc) # #;7> (#~printf "pledged\n") pledged #;8> (#~open "/etc/passwd" 0) chicken-csi[81735]: pledge "rpath", syscall 5 rlwrap: warning: chicken-csi crashed, killed by SIGABRT. rlwrap itself has not crashed but, for transparency, it will now kill itself (without dumping core) with the same signal warnings can be silenced by the --no-warnings (-n) option zsh: abort rlwrap chicken-csi ~ $