Search
Sunday, 16th of February 2020, 16:35:36 UTC
21:33:25
akhetopnu
hello. has anyone here tried to use websocket-driver and send messages to clients from a different thread? It doesn't seem to work. I'm not sure if I'm going crazy or if I'm doing something wrong...
0:17:08
vms14
I cannot declare a variable once I've loaded cl-ncurses
0:17:16
vms14
it says I'm declaring an alien one
0:17:32
vms14
how I'm supposed to switch to "normal" declaration or whatever?
0:17:41
vms14
Cannot proclaim a ALIEN variable SPECIAL: *COLORS*
0:18:09
vms14
(defparameter *colors* '((red 1) (blue 2) (green 3)))
0:18:29
vms14
the only thing I'm doing is to load cl-ncurses, then create a package and :use ncurses with commonlisp
0:18:42
vms14
and try to create that variable
0:19:16
_death
instead of :use, only import the symbols you care about with :import-from
0:20:26
vms14
_death: there isn't another way?
0:22:03
_death
vms14: what happens is that cl-ncurses exports cl-ncurses:*colors* and you attempt to redefine it
0:22:49
_death
vms14: luckily, you get an error instead of silently redefining it, so you can either not import it, or choose a different symbol
0:23:29
_death
or you can shadow it.. but it's best to just not import symbols you don't care about
0:24:58
vms14
I thought I was on some weird state or alike
0:25:06
vms14
I'll just use another name, thanks _death
0:40:52
vms14
(let ((i 0)) (mapcar (lambda (color) (init-pair (incf i) color COLOR_BLACK)) (list COLOR_RED COLOR_BLUE COLOR_GREEN)))
0:41:00
vms14
there's a better way to do that?
0:41:08
vms14
I don't like that let
0:42:10
no-defun-allowed
(loop for color in (list +color-red +color-green+ +color-blue+) for i from 0 do (init-pair color i +color-black+))
0:44:40
vms14
ty no-defun-allowed, much better
1:19:56
vms14
it is "#\ " part of the ansi standard? or I it's #\Space?
1:21:23
vms14
which one should I use?
1:21:29
no-defun-allowed
Yes, #\Space is standardised as well as some other names.
1:22:26
no-defun-allowed
clhs 13.1.7
1:22:27
specbot
Character Names: http://www.lispworks.com/reference/HyperSpec/Body/13_ag.htm
1:22:48
aeth
I think #\ is standard, too, but obviously it's way less readable (I mean, just look at my line, when I didn't put it in quotes like you did)
1:25:19
vms14
thanks to both, I'll use Space for aeth's reason
1:26:01
vms14
although the code won't be much readable anyway
1:26:56
no-defun-allowed
Speaking of which, do people have any strategies for making (foo bar #\)) look less awkward?
1:26:57
vms14
https://termbin.com/tobq
1:30:09
vms14
and doesn't work as expected xD now it's putting colors by words, not by characters
1:30:48
vms14
oh wrong paren position
1:31:19
pjb
vms14: what do you expect with this paste?
1:31:40
vms14
tell it won't be readable
1:32:12
vms14
but if you have corrections, even better
2:13:07
sjl
Xach: is there a way to find the git/hg commit hash for a particular library in a quicklisp dist?
2:13:43
sjl
I see a "content-sha1" in releases.txt but that doesn't appear to be the commit hash (I'm guessing it's a SHA of the tarball or something)
3:53:54
Lord_of_Life_
** NICK Lord_of_Life
3:59:24
beach
Good morning everyone!
4:06:06
Nilby
and good morning to all the bots
4:06:32
beach
minion: Good morning!
4:06:34
minion
does torturing a poor bot with things beyond its comprehension please you?
4:21:20
beach
So I take it nobody wants to appear in the Acknowledgments section of this paper: http://metamodular.com/SICL/representing-method-combinations.pdf
Monday, 17th of February 2020, 4:35:36 UTC