freenode/lisp - IRC Chatlog
Search
8:36:20
ck_
That's a good thing too. Too many errata are too long because .. well I can only speculate. Editors place too much faith in the authors? Publishers in the editors? and so on
9:42:23
beach
flip214: That's OK, I'll do it. But another pair of eyes might be appreciated. There are already a few chapters on planet.lisp.org and I think they are still possible to update.
9:43:35
flip214
beach: ack, will try to. so, basically http://lisp-univ-etc.blogspot.com/search/label/lisp, right?
13:29:12
jonatack
beach: good that you are doing it. Dyomkin's content is very good and interesting but the writing does need proofreading. hope he is using it.
13:40:42
Josh_2
what variables do I need to initialize in my top-level function when I save-lisp-and-die?
13:42:56
pjb
Also, variables that reference values that will be different when you ressucitate your lisp image.
13:43:50
pjb
Josh_2: this doesn't mean anything: there can be compilation-time configuration files, and run-time configuration files.
13:45:07
pjb
So the point is to initialize the variable at the time they need to be initialized, with the correct values for that time.
13:46:01
pjb
Josh_2: why do you keep giving irrelevant facts? Being the first file mentionned in a system definition file means nothing.
13:47:24
pjb
Also, it would be a good idea to keep the configuration in a single object or structure…
13:47:50
pjb
It's better to limit the number of global variables, the more so when they are special.
13:48:34
jmercouris
I disagree about limiting the number of global variables, I think that strongly depends on the application
13:49:41
pjb
jmercouris: also be sure to have several variable with the same symbol name in different packages…
13:52:04
p_l
pjb: global variables are common way to implement forms of pub/sub messaging in realtime systems
14:14:11
jmercouris
Xach: did you use any documentation to learn about them, or just look at the source or?
14:14:39
Xach
jmercouris: I had a fairly firm basis of understanding of the underlying Unix API, and the sbcl interface is a very thin layer.
14:15:51
Xach
jmercouris: I don't know how well that would work. section 7 of the unix manual for ip, tcp, and udp could help. as well as IPC chapters of unix books.
14:16:23
jackdaniel
if you want to get a basic communication working take a look at dependents.lisp file in clx
14:18:08
jmercouris
jackdaniel: I only see a dependent.cl file here in https://github.com/franzinc/clx
14:18:22
Xach
unix network programming by stevens helped me back in the day. things have changed a lot with regard to new ways to multiplex and stuff but the fundamentals still work.
14:20:06
jackdaniel
basically you want: (make-instance 'sb-bsd-sockets:local-socket :type :stream) (sb-bsd-sockets:socket-connect * "/foo/bar") (sb-bsd-sockets:socket-make-stream ** :element-type '(unsigned-byte 8) :input t :output t :buffering :none)
14:20:24
jackdaniel
where stars are limited to count of two to avoid being accused of being a three-star-programmer
14:28:51
Xach
I don't particularly like SBCL's socket API, but the good news is that it takes only a small amount of code to make a new API with sb-alien if you like.
14:37:30
Xach
jmercouris: the code of sb-bsd-sockets is relatively small and it uses ffi to do its work.
14:37:48
Xach
jmercouris: if you don't like what it presents, you can make something that you like better without much work.
14:39:37
Xach
In my experience, it was about as easy to add the FFI interface I liked as to build an interface I liked on top of one I didn't like.
15:01:52
mrcode_
I can second Xach . Sb-bsd-socket interface feels awkward enough to warrant making your own. It’s relatively simple and can be done in an afternoon. What I don’t like about sb-bsd-sockets is the random work it tends to do at the times you least expect it to. FFI interface of your own has a more DWIM feel to it
15:32:03
beach
shka_: As I said before today, I spend most of the morning proofreading the chapter on linked lists in Dyomkin's book.
15:55:46
shka_
beach: i am still on vacations, i will likely implement code generation i have been talking about, i am also feeling like going back to that in-place merge sort algorithm again
17:17:15
Josh_2
when loading up asdf-system it isn't auto grabbing the packages in :depends-on with quicklisp, how do I get it to do that, or did I mess something up? do I have to manually load them with quicklisp before hand?
17:41:30
Josh_2
I was gonna ask how you do it, but I had done it correct but I didn't delete the default config
17:42:01
Josh_2
also, if I get https working do I need the certificate on both nginx and hunchentoot?
17:45:14
Xach
but it was only this year i heard someone say "nginx" out loud and i had no idea what they were talking about, technology-wise
18:00:04
Oladon_work
Xach: I think some could make the case that "cdr" might have some unusual pronunciations