|
|
|
|
|
by PuercoPop
2656 days ago
|
|
Roswell and Quicklisp are two different things. Quicklisp takes care of downloading systems (what other languages tend to call packages) and makes them available to ASDF. Roswell and takes care of installing Common Lisp Implementations (think chruby + ruby-install). It also allows you to run lisp programs as scripts iirc. FTW you don't need to install Roswell to try Lem, you can use cl-launch instead |
|
--- xx
#!/usr/bin/clisp
(format t "yup")
---
and then on the command line:
> chmod a+x xx ; ./xx
yup
Caveat: You have to comment out the hashbang if you want to (LOAD 'xx) in the repl, or it will puke unceremoniously. It would be nice if repl devs allowed the LOAD function to simply treat it as a ; symbol since it wouldn't break anything and is more consistent with the cli behaviour.
I've only done this with clisp, so maybe other Lisp variants like sbcl et al already do this. YMMV.
EDIT: Realized the script came out all on one line. Fixed.