So I think I can probably get this into SBCL 0.7.13 (which will be released on Sunday, all being well) by claiming it's a bugfix for my very old standaloneize-file hack

So I think I can probably get this into SBCL 0.7.13 (which will be released on Sunday, all being well) by claiming it's a bugfix for my very old standaloneize-file hack

So I think I can probably get this into SBCL 0.7.13 (which will be released on Sunday, all being well) by claiming it's a bugfix for my very old standaloneize-file hack.

  • (require :sb-executable) NIL
  • (with-open-file (o "test1.lisp" :direction :output) (format o "(princ \"hello world\")")) NIL
  • (compile-file "test1") ; compiling file "/home/dan/test1.lisp" (written 21 FEB 2003 07:04:41 PM): ; compiling top level form:

; /home/dan/test1.fasl written ; compilation finished in 0:00:00

  1. P"/home/dan/test1.fasl" NIL NIL
    • (sb-executable:make-executable "hello" *) T 0
and then in the shell:
:; ./hello
hello world:; 
:; time ./hello
hello world
real    0m0.089s
user    0m0.060s
sys     0m0.020s

Yes, that bold green thing really is my shell prompt. The point is that I can select commands by triple-clicking them and then paste them into any other xterm.


Comments?

This blog has no comment-publishing facility: it's all done by hand. Feedback is welcome, though: if you would like to get in touch, email me on comment2010 @ telent . net and I will publish your thoughts (unless you tell me you don't want me to) as an addendum to the article, provided only that in my view they are interesting, amusing, relevant, accurate, or (best) some combination of the four. Relevant links are welcome in support of your argument: spam and untargeted requests for help are not.

telent netowrks

Geeky stuff about what I do. Many include Lisp, Android, Javascript, Linux and matters arising. For my other personality (less tech and more skating/cycling), see coruskate