freenode/#lisp - IRC Chatlog
Search
10:14:49
no-defun-allowed
minion: memo to heisig: I'm not sure if I'll be awake when you come online but happy third birthday to Petalisp!
18:11:42
gaze___
hey folks, I'm getting back into lisp after a long hiatus and I've hit a bit of a snag. I have a directory with a file called main.lisp and a file called foo.asd... foo.asd contains (asdf:defsystem foo ...). I open emacs, I open main.lisp, I M-x sly, and then I M-x load-system foo, and I get an ASDF/FIND-SYSTEM:MISSING-COMPONENT
18:13:58
Xach
gaze___: or there must be some way it can find the foo.asd file through its various ways
18:14:08
Acru
hey, I am having a problem with compiling a lisp program: when running it, I include "split-sequence" via (ql:quickload "split-sequence"), but when I complile it i get the error *** - READ from #<INPUT BUFFERED FILE-STREAM CHARACTER #P"/home/antono/Projects/codenchill/median.lisp" @15>: there is no package with name "SPLIT-SEQUENCE", and when I declare (asdf:load-system "split-sequence") I still get the error
18:15:35
Xach
Acru: the call to ql:quickload does not happen in time for it to make the package name available for reading in the same file.
18:16:21
Xach
katco: one way is to push the symbol 'cl:*default-pathname-defaults* to asdf:*central-registry*
18:16:46
Xach
Acru: one option is to wrap the quickload form in (eval-when (:compile-toplevel :load-toplevel :execute) ...)
18:17:01
Xach
Acru: another option is to use a system definition that sets up all the things to load before loading your code.
18:17:28
gaze___
Xach: let's suppose I add a (pushnew "~/path-to-project/root/" asdf:*central-registry* :test #'equal) to my .sbclrc... does that mean that it'll find ~/path-to-project/root/project1/project1.asd, ~/path-to-project/root/project2/project2.asd?, etc.?
18:17:40
Xach
gaze___: i use quicklisp so i usually stick projects in ~/quicklisp/local-projects/ - those are found automagically
18:18:00
katco
ACTION sent a long message: < https://matrix.org/_matrix/media/v1/download/matrix.org/orfeuFcrDhIHhGtpgCxpKdFb >
18:19:27
katco
Acru: https://www.common-lisp.net/project/asdf/asdf.html#Controlling-where-ASDF-searches-for-systems
18:19:53
gaze___
just to be clear, when you start new projects, you just put them in local-projects?
18:20:53
katco
gaze___: they just need to be under the root of one of the places asdf knows to search for projects. if you're using quicklisp, `local-projects` is one such place
18:21:19
katco
i used to put my projects where i liked them to reside and then symlink them to `local-projects`, but i like the conf file solution better
18:21:34
Xach
https://xach.com/tmp/quickstart.html has a self-contained simple project with a system definition.
18:28:07
jackdaniel
another kind of chart for polyclot (wip integration with cl-bench): https://files.mastodon.social/media_attachments/files/014/697/322/original/c1c1e5a45dbd4a25.png
18:29:48
jackdaniel
putting there clisp results would make two things happen: charts would be less readable and ecl would look much better in comparison ,)
19:00:41
gaze___
okay, maybe a goofy question but what's the recommended way to patch additional functionality into a library? pzmq for instance doesn't have the encryption functions implemented. Suppose I don't yet want to submit a pull request, I just sorta want to hack the functionality in place for testing and I don't want to edit pzmq itself
19:03:03
Bike
for temporary patching that kind of thing is fine. it gets dicey when you try to maintain it, though.
20:12:00
asdf_asdf_asdf
Hi. How get signature callback (function) in SBCL (Common Lisp)? I try: (* func), not working. I defined callback, it: (define-alien-callback ...).