https://github.com/swuecho/src-lisp
lisp-repo
https://github.com/swuecho/src-lisp
Last synced: about 1 month ago
JSON representation
lisp-repo
- Host: GitHub
- URL: https://github.com/swuecho/src-lisp
- Owner: swuecho
- Created: 2015-03-21T04:15:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-30T03:34:24.000Z (over 8 years ago)
- Last Synced: 2025-01-22T15:46:06.246Z (3 months ago)
- Language: Common Lisp
- Size: 7.81 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ASDF2's default setup also scans a directory called ~/.local/share/common-lisp/source
so, after create a project, create a symbol link.
```bash
ln -s ~/dev/src-lisp/lisp/swatchblade ~/.local/share/common-lisp/source/
```## quicklisp init
```lisp
* (ql:add-to-init-file)
I will append the following lines to #P"/home/hwu/.sbclrc":;;; The following lines added by ql:add-to-init-file:
#-quicklisp
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp"
(user-homedir-pathname))))
(when (probe-file quicklisp-init)
(load quicklisp-init)))Press Enter to continue.
#P"/home/hwu/.sbclrc"
* (user-homedir-pathname)#P"/home/hwu/"
```after install quicklisp, load 'swatchblade'
```lisp
* (ql:quickload "swatchblade")
To load "swatchblade":
Load 1 ASDF system:
swatchblade
; Loading "swatchblade"
To load "vecto":
Install 5 Quicklisp releases:
cl-vectors salza2 vecto zpb-ttf zpng
; Fetching #
; 15.16KB
```run the fun in the package
```lisp
* (swatchblade::square_echo 500000)250000000000
*
```
above works, because the symbol link created#Roswell
```bash
ln -s ~/dev/src-lisp/lisp/swatchblade ~/.roswell/local-projects
```
#TODO
change swatchblade to echo```
ack swatchblade -l | xargs perl -p -i -E 's/swatchblade/echo/'
```REF: https://arxiv.org/pdf/1209.5626v1.pdf