Search
Sunday, 7th of October 2018, 23:35:15 UTC
23:57:00
no-defun-allowed
how can i stop hunchentoot logging requests?
0:37:34
on_ion
https://edicl.github.io/hunchentoot/#logging
0:38:03
no-defun-allowed
that seems to be for errors
0:38:19
no-defun-allowed
tracing log-message* revealed no calls to it too
0:38:37
on_ion
have you read the first sentence/paragraph though
0:38:46
on_ion
its an 'error handler' which also sometimes means 'hook'
0:39:12
on_ion
after describing the log handler, second sentence explains how to disable.
0:39:16
no-defun-allowed
:ACCESS-LOG-DESTINATION nil should do
2:40:33
comborico1611
I'm looking for a pdf of Common LISP: The Reference. Anyone know where to get it?
2:42:46
beach
Good morning everyone!
2:44:02
beach
Why would you look for such a book? It predates the standard.
2:44:24
comborico1611
I'm just curious to scan through it.
2:44:44
beach
It was probably never made public.
3:25:36
no-defun-allowed
morning beach
3:42:06
minion
shka_, memo from phoe: https://github.com/phoe/list-named-class
3:42:06
minion
shka_, memo from phoe: https://github.com/phoe/list-named-class
5:38:37
no-defun-allowed
bored, writing a http server
5:39:53
p_l
beach: Common LISP: The reference was published
5:39:58
p_l
I had it in my hands, even
5:40:49
beach
p_l: What I meant was that it was perhaps never put up on the Internet as PDF.
5:44:28
p_l
interestingly enough, it looks like Google doesn't have an example of its cover
5:44:39
p_l
at least the version I had in my hands
5:45:39
no-defun-allowed
i wonder if lparallel has good latency
5:55:58
no-defun-allowed
2383requests/second
5:56:05
no-defun-allowed
not too bad tbh
6:08:52
no-defun-allowed
ab and wrk can't agree on if my server is creating "read errors"
6:10:41
no-defun-allowed
now ab is convinced i'm doing 24,000 requests/second and wrk only thinks i'm doing about 1000
7:07:32
no-defun-allowed
morning splittist
7:18:37
beach
Hello splittist. Long time no see.
7:19:21
beach
splittist: Did you notice the creation of the channel #sicl, where I can blab as much as I want about what I am doing?
7:19:36
splittist
I'm usually lurking. I did not. I will join and lurk there, too (:
7:20:15
beach
I have no news right now, but I am working pretty hard on bootstrapping at the moment.
7:20:35
beach
Though, I also have to finish my report on Jim Newton's thesis.
7:22:41
splittist
sicl (and the general beachverse of projects) is one of my favourite contemporary examples of people (not you) overestimating what can be done in a year, but underestimating what can be done in 5/10 years.
7:23:16
beach
Interesting observation.
7:24:10
beach
Yeah, I never said I would finish in 10 years. :)
7:24:34
beach
Instead, I planned it so that intermediate results are independently useful.
7:26:33
shka_
i literally loled at this
7:27:03
no-defun-allowed
using sbcl internals to turn off nagles algorithm takes the speed from 24,000 to 31,800 requests a second.
7:27:51
jackdaniel
http://i.imgur.com/cfjq2XE.png (multiline text positioning test array in McCLIM)
7:29:21
zigpaw
the "character not found" (empty box) glyph on the last line was intentional?
7:29:37
shka_
jackdaniel: looks cool
7:29:58
no-defun-allowed
actually, nagles doesn't really slow it down
7:30:08
jackdaniel
I still need to get the whole bounding box right, but I need other codebases to attend to now
7:30:26
no-defun-allowed
sbcl decided to go 8000 reqs/second faster cause it could
7:31:26
shka_
this should be really useful
7:34:32
no-defun-allowed
ab and wrk still aren't agreeing, wrk says woo is two magnitudes faster than my http server but ab says they're about the same
7:35:52
galdor
isn't ab the one which isn't that good at parallelizing connections ?
7:36:01
galdor
wrk is much more efficient iirc
7:36:15
galdor
in your case you would be limited by ab, not by the server
7:36:37
no-defun-allowed
that's a shame
7:37:22
no-defun-allowed
wrk goes slower than ab too
7:38:15
galdor
in any case, most of these benchmarks actually measure the kernel
7:38:33
astronavt_
** NICK astronavt
7:38:51
galdor
unless you manage to test with access patterns and data related to your real workload, it's not really significant
7:39:28
no-defun-allowed
i'm fairly confident this lparallel-based solution is pretty fast but i can't tell
7:40:19
shka_
lparallel based solution to what?
7:42:11
no-defun-allowed
multithreaded http server
7:42:41
shka_
eeee, that does not sound like a great idea
7:42:56
galdor
you can use a thread pool to process requests
7:43:13
galdor
as long as you are not using one thread per request, you're fine
7:44:01
no-defun-allowed
yeah, that's where i'm getting the thread pool from
7:44:08
shka_
using one thread per request is not always wrong
7:49:59
no-defun-allowed
i tried different thread counts and cpu count seemed to work best
7:50:39
shka_
no-defun-allowed: in lparallel? Yes.
7:51:04
shka_
anyway, don't dismiss one thread per request so easy
7:51:19
shka_
sometimes it is perfectly sufficient approach
7:51:29
no-defun-allowed
this worked fine here
7:51:34
no-defun-allowed
i've done one thread per request before
8:05:59
russellw
What are the situations where a dot can occur in lisp source code, apart from 'loop for (a . more) on s'? It's not used for rest parameters of functions the way it is in scheme, right?
8:06:36
no-defun-allowed
you can use it in destructuring-bind, and it's also used a lot in alists
8:06:58
no-defun-allowed
eg (loop for (key . value) in '((a . 42) (b . 3)))
8:07:01
phoe
'(a . b) denotes a quoted cons
8:07:11
phoe
these are very common when you create alists
8:07:18
russellw
ah, quotes, yes, good point
8:17:36
beach
phoe: Not anywhere. (a . b . c) is not valid syntax.
8:18:41
no-defun-allowed
in WTFCL, . in a vector means the rest of the vector is in c /s
8:18:50
beach
russellw: You can use it as a rest parameter in a macro lambda list.
8:19:31
russellw
you can? okay, thanks
8:20:04
beach
no-defun-allowed: #( means a literal vector. A, B, and C are not variables.
8:20:44
phoe
beach: yes, I generatelized it way too much.
8:20:46
no-defun-allowed
wtfcl is not real, it's a joke language
8:20:52
beach
no-defun-allowed: And a vector is not a linked structure, so there is no concept of "rest of the vector".
8:21:05
no-defun-allowed
exactly, that's the joke
8:21:51
phoe
beach: no-defun-allowed is not being serious over here, as denoted by the /s at the end of his post
8:22:26
no-defun-allowed
phoe's wtfcl also comes with other absolutely useful stuf like constructuring-bind
8:22:46
no-defun-allowed
enough misinformation, dots are very useful when you want to save a cons or want the "rest" of something
8:24:25
_death
if you're tired of plain ,@ and feeling destructive, there's ,.
8:25:24
no-defun-allowed
how's that work?
8:26:12
_death
`(a b ,.(list 'c 'd))
8:26:24
beach
phoe: too subtle for me.
8:27:51
no-defun-allowed
maybe the acronym didn't quite set it up
8:28:13
russellw
huh, ,. does work. how? I though , had to be followed by a form? CLHS doesn't mention ,.
8:28:50
no-defun-allowed
yeah, that's new to me
8:29:20
specbot
Backquote: http://www.lispworks.com/reference/HyperSpec/Body/02_df.htm
8:29:43
_death
http://www.lispworks.com/documentation/HyperSpec/Body/02_df.htm
8:29:52
russellw
aha! I stand corrected
8:29:59
no-defun-allowed
cool beans though
8:30:18
phoe
,. is like ,@ except it is usable for lists that are destroyable
8:30:31
phoe
in practice, I haven't seen it used anywhere though
8:30:42
beach
Not terribly useful though. Saving a few CONS cells in the reader is typically not worth the effort.
8:31:10
phoe
especially since the reader is rarely exercised in working code
8:38:27
varjag
was there some software that tracks the licenses of systems via their .asd dependencies?
8:39:10
jackdaniel
sjl's utilility library has a snippet which looks for GPL libraries
8:41:06
jackdaniel
varjag: https://github.com/sjl/print-licenses
8:41:57
phoe
https://github.com/vindarel/print-licenses has more commits than that
8:43:43
varjag
aha.. thankyou folks
9:50:27
Myon
svillemot: thanks for the cl-nibbles fix
9:50:45
Myon
unfortunately pgloader is still failing, Compilation failed: Compile-time package lock violation:
9:50:48
Myon
Lock on package SB-X86-64-ASM violated when binding EA as a local function
9:50:51
Myon
while in package SB-VM.
9:54:34
svillemot
Myon: np, I didn't check that it fixes pgloader, but I guess it does
9:54:49
svillemot
oh ok it does not
9:55:09
Myon
I think the error was different before
9:55:33
svillemot
yes, for sure something has been fixed in nibbles, so this must be something else
9:56:24
Myon
afaict the fix in https://github.com/sharplispers/nibbles/pull/6 does not help either, but maybe I was testing badly
9:57:00
Myon
(I had not seen your upload yet when I built a local package)
10:58:51
no-defun-allowed
Alright, time for me to GC. (TODO: use faster collector.) Night.
Monday, 8th of October 2018, 11:35:15 UTC