libera/#lisp - IRC Chatlog
Search
21:41:08
jcowan
find has the problem that if you are looking for nil (or #f in scheme) the answer doesn't mean much. Member doesn't have that problem because it returns a list.
21:54:45
aeth
(defmacro python[] (&rest items) `(make-array ,(length items) :initial-contents ',items :adjustable t))
21:56:43
aeth
(next, you can use a reader macro to turn #[1 2 3] into (python[] 1 2 3) and a parser to turn [1, 2, 3] into #[1 2 3] and the rest of Python is left as an exercise to the reader)
3:18:13
bl0rt
working on a little dummy project to learn lisp, I generated a project using make-project and added a dependency to the depends-on section there and also added an import-from line in defpackage at the top, will I still have to run ql:quickload on the dependencies every time I open a new repl, or is there a step I'm missing?
3:18:38
bl0rt
or should I put the quickload statements at the top of the file in main.lisp? I'm not clear on whether those should ever exist in an actual project file
3:24:59
White_Flame
when you quickload your project, it should auto-load all the dependencies, using only the .asd file
3:25:33
White_Flame
your .lisp files don't have to worry about finding or loading anything regarding those
3:30:28
bl0rt
ah ok, what does the quickload command for that look like? I tried running quickload on the .asd file and it didn't work, and doesn't seem to do it automatically when I connect to the repl from main.lisp
3:31:19
White_Flame
it needs to be in your path, either asdf's path or linked from/under ~/quicklisp/local-projects/
3:43:17
White_Flame
cool, you could also simply put your projects directly under local-projects, but the symlink method is nice, especially if you need to remove thigns from visibility