67 lines
1.9 KiB
Common Lisp
67 lines
1.9 KiB
Common Lisp
|
|
;; that's for initial installation
|
|
;; (load "~/Downloads/quicklisp.lisp")
|
|
|
|
;; that prints into repl -
|
|
;; (quicklisp-quickstart:help) and (quicklisp-quickstart:install) are paths forward
|
|
;; would I maybe want to install it with nix?
|
|
;;
|
|
;; I could try
|
|
;; I guess it works, there's binary and /lib in ~/.nix-profille
|
|
;; /home/efim/.nix-profile/lib/common-lisp/quicklisp/setup.lisp
|
|
|
|
;; so, "loading after installation" from https://www.quicklisp.org/beta/#loading
|
|
;; is what I'd want
|
|
|
|
;; (load "~/.nix-profile/lib/common-lisp/quicklisp/setup.lisp")
|
|
;; error! "Can't create directory", welp
|
|
;; then how would I load it?
|
|
;; do I need to modify sbcl startup?
|
|
;; sbcl is also installed with nix, so it could probably integrate loading of quicklisp?
|
|
|
|
;;; welp, I've asked a question on discourse
|
|
;; maybe somebody will help, and then I'd document this
|
|
;; https://discourse.nixos.org/t/how-to-use-quicklisp-with-sbcl/20539
|
|
|
|
;; I'll proceed with manual installation
|
|
;; https://www.quicklisp.org/beta/#loading
|
|
|
|
;; well, that seems to work. with manual step of adding to ~/.sblcrc
|
|
;; now restarting sly I have quicklisp
|
|
;; I guess that's ok
|
|
|
|
;;; Now, how to use it?
|
|
;; one commad is already present in installation guide
|
|
(ql:system-apropos "vecto")
|
|
(ql:system-apropos "matrix")
|
|
(ql:system-apropos "cells")
|
|
|
|
;; and there's
|
|
#'ql:quickload
|
|
|
|
;; and counterpart
|
|
#'ql:uninstall
|
|
|
|
;; this is of course absolutely not pure or nixy
|
|
;; ok, now, I just go about reading on the packages themselves, and there's not much on the quicklisp?
|
|
;; maybe
|
|
|
|
;;; could look into "awesome-cl" list
|
|
;; maybe I'd find something to play with
|
|
;; https://github.com/CodyReichert/awesome-cl
|
|
|
|
;;; ?? what is "in-package"?
|
|
(ql:quickload "fset")
|
|
|
|
(in-package fset-user)
|
|
(isetq s (map ('a 2) :default 1))
|
|
|
|
|
|
(in-package cl-user)
|
|
(isetq s (map ('a 2) :default 1)) ; error, yay
|
|
|
|
;; promising things to look at are
|
|
;; cl21 http://cl21.org/
|
|
;; Alexandria
|
|
;; FSet https://fset.common-lisp.dev/Site/FSet-Tutorial.html
|