freenode/#lisp - IRC Chatlog
Search
14:13:15
beach
Right. So that if the user wants to change the value, it will only accept values of the right type.
16:11:23
phoe
msmith: make a broadcast stream that listens from the concatenated stream and sends its output into two different directions
16:19:45
msmith
phoe: hmmm. no sure I follow. without extra plumbing, how would I create a broadcast stream from the concatenated stream as broadcast streams take output streams. and were you referring to a two way stream when you said, "sends its output into two different directions"?
16:29:24
phoe
Basically, you want to be able to send output from your concatenated stream into two different locations.
16:30:41
phoe
Therefore get your two destination streams - let's call it destination-stream and tap-stream. Then, (make-broadcast-stream destination-stream tap-stream). Then, redirect the data from your source stream into the broadcast stream.
18:37:19
pjb
now, ok the behavior of listen is a tad disappointing. But it's the way it's specified: you cannot count on it too much anyways.
18:46:05
ym
Anybody familiar with CLX? Where do I pass wm-size-hints instance to make it take effect?
18:54:49
drmeister
Does anyone have a quick guide on when to use with-accessors vs with-slots. My google search wasn't very illuminating.
18:55:50
drmeister
Erik Naggum says use with-accessors when you don't know anything about the class internals.
18:56:39
jackdaniel
drmeister: http://www.gigamonkeys.com/book/object-reorientation-classes.html , section WITH-SLOTS and WITH-ACCESSORS
18:57:39
jackdaniel
with-accessors may be useful if you want to access slots of two objects having slots of the same name
19:00:54
ym
Well, I do. I see wm-size-hints class definition and set-wm-hints definition, but no set-wm-size-hints definition. And that's why I'm asking.
19:01:21
jackdaniel
drmeister: also what Eric Naggum says is correct, because initially there might be slots, but they may get removed in favor of generic functions which are outside the class
19:01:45
jackdaniel
so if you use with-accessors then that change to internal class implementation won't affect your code
19:57:28
jurov
ah, this looks like it: https://stackoverflow.com/questions/45730012/common-lisp-asdf-tests-compile-system-with-different-optimization-levels
20:04:56
jurov
phoe: it can be overriden somewhere else then .asd or .lisp file belonging to the system?
20:09:35
phoe
a Lisp file can contain (locally (declare (optimize (speed 3) (safety 0) (debug 0))) ....)