freenode/#lisp - IRC Chatlog
Search
17:05:52
dim
I'm not sure how common it is around here (I think not much), I am now publishing my docs for pgloader at http://pgloader.readthedocs.io/en/latest/ ; using a Python based tooling --- that's the end-user docs, that said
17:06:37
sebboh
jasom: help! The free code your provided which I used for a local utility stopped working after I apt-get upgrade'd!
17:09:24
beach
KZiemian: Just to tell you what we think you should be doing with CLUS? OK, I'll give it some thought.
17:10:37
KZiemian
beach: you know, I work better and faster when someone ask: hey when it will be read?
17:13:55
KZiemian
pbj: read and understand source code of ccldoc enough that we can rewrite it to suits CLUS
17:15:44
KZiemian
other people in CLUS project works on diffrent things, you must ask them for more information
17:19:45
KZiemian
pbj: we also want make it possible to load not one page but bunch of hyperlinked pages
17:48:54
rpg
sebboh: I just checked -- the latest CFFI has this fixed. So if you get CFFI from git instead of from Quicklisp, you'll be fine.
17:57:41
asarch
Can you create a cons cell pointing its both CAR and CDR pointers to itself? If yes, how?
17:59:18
asarch
And if yes, can you mix them (its CAR pointer points to its CDR pointer and viceversa)?
18:00:30
pjb
asarch: (setf *print-circle* t) (let ((k (cons nil nil))) (setf (car k) k (cdr k) k)) #| --> #1=(#1# . #1#) |#
18:04:52
dmiles
like: (let ((c (cons () ()))(loc (make-locative))) (setf (car c) loc) (setf (cdr c) loc))
18:08:49
asarch
I just was re-reading my logs from the channel when I asked about: (cons '(x y z) 'w)
18:44:06
jasom
rpg: I changed it to a defsystem-depends-on and :cffi-grovel-file instead of cffi:grovel-file which seems the "right way"
18:46:01
jasom
rpg: https://github.com/jasom/clinenoise/commit/c3d3f89f0fe876b2549e28aa1c67a5aa5f6d6b69#diff-13f67aea30a79b6c1016c707babd1dec This change is the "right way" correct? Was the old version actually wrong or just frowned upon?
18:46:12
rpg
jasom: The change in https://github.com/jasom/clinenoise/commit/c3d3f89f0fe876b2549e28aa1c67a5aa5f6d6b69 yes, looks like the right way.
18:46:54
rpg
The old version wasn't actually wrong (or at least detected as such), but the new one is better because if cffi-grovel changes then ASDF will properly detect that fact -- it wouldn't before.
18:48:04
rpg
I was just confused because before I was looking at the use of MAKE-INSTANCE on OPERATION problem, which was fixed.
18:50:48
jasom
I think the latest CFFI in QL doesn't have that issue either, so perhaps sebboh needs to update his quicklisp dist
18:51:58
rpg
jasom: No, the EVAL-WHEN would not have caused an ASDF failure. But your change makes things potentially better.
19:23:30
sebboh
jasom, there's an unused variable warning in the C grovel stuff. Not important to me, only mentioning it because I'm already here. /home/hobbes/.cache/common-lisp/sbcl-1.4.2.debian-linux-x64/home/hobbes/quicklisp/local-projects/clinenoise/termios-grovel__grovel.c:13:7: warning: unused variable ‘autotype_tmp’ [-Wunused-variable]
19:30:07
emaczen
If slime and SBCL have trouble finding my sources what should I do? I think I've had this problem before and for some odd reason it keeps reoccuring...
19:31:18
jmercouris
Shinmera: If I run "ls -la ~/" for example, it doesn't show the contents of my home dir
19:31:27
jmercouris
Shinmera: These docs lol? https://gitlab.common-lisp.net/asdf/asdf/blob/master/uiop/README.md
19:35:16
Bike
if you just tried to give it "ls -la ~/" that's not going to work, it's not a shell, yeah?
19:37:08
Bike
i don't have an sbcl installed from source on this system, so i can't tell you the directory tree off the top of my head
19:38:14
jasom
jmercouris: contrast with (uiop:run-program `("ls" "-la" ,(uiop:native-namestring (user-homedir-pathname))) :output :string)
19:49:55
jasom
jmercouris: it's implementation dependent, but usually /bin/sh on *nix and cmd.exe on windows
19:50:45
jasom
jmercouris: if you want a specific shell then do something like: (uiop:run-program ("/bin/bash" "-c" "ls -la ~/")) ;; though this breaks on e.g. nixos that has no /bin/bash
22:42:33
sebboh
Where are the McCLIM people at? Hey, I'm sure you've heard about how BountySource has been eaten by some ICO jerks who apparently think that they now own us "users" of BountySource. So, are you going to accept donations via some other mechanism?
23:13:14
sebboh
What were those modern aliases for (car ...) and (cdr ...)? (first ...) and? (rest ...)? Any other convention?
23:24:57
aeth
I'm not sure there's any other convention other than head/tail (not in standard) and the in-standard car/cdr first/rest. Possibly "next" instead of "tail", but that's more of a doubly linked list thing ("previous" and "next" for the links)
23:26:30
aeth
When you use "next" as the convention, you usually use "data" instead of "car" or "head" or "first".
23:26:54
aeth
Knowing alternative names can be helpful, e.g. when you want to implement your own doubly linked list or something.
1:11:06
peterppp
so I just installed sbcl and usocket on ubuntu and am trying to load usocket with the line (require :usocket)
1:12:50
aeth
ASDF knows where to find usocket, if it's installed in a place where it looks for ASDF system definition files. And Quicklisp uses ASDF to go beyond that, downloading dependencies for you.
1:13:02
aeth
Generally the only reason not to use Quicklisp for handling your dependencies is if you're packaging something.
1:15:59
aeth
Usually, the way to handle dependencies is to create a your-project.asd file (just look how existing projects set up their ASDF files) at the top level of the directory, and put a link to that directory in ~/quicklisp/local-projects/ so you can treat your project as if it's included in Quicklisp and just (ql:quickload :your-project)
1:16:26
aeth
There's actually a library that can automate this. https://www.xach.com/lisp/quickproject/
1:30:24
aeth
I do just this: cp -t . ../some-old-project/LICENSE.txt ../some-old-project/.gitignore ../some-old-project/some-old-project.asd
1:30:37
aeth
And base everything on some old project of mine, with edits to update the name, copyright year, etc.
3:24:28
jack_rabbit
Results from a little toy I built in CL: https://www.youtube.com/watch?v=T2ODLTn3ifk&list=PLvoUoqQqEHItOnsGSmiVDp2iMFyU9yUmK
3:27:33
jack_rabbit
loke, Not quite. The process in the second half is similar to the reverse of the first.
3:28:46
loke
Xach_: thanks for merging my zs3 fixes. I'm starting to have some concerns that I might have introduced a small bug, and I need your opinion on this: