freenode/#lisp - IRC Chatlog
Search
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: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:20:15
beach
I have no news right now, but I am working pretty hard on bootstrapping at the moment.
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: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:30:08
jackdaniel
I still need to get the whole bounding box right, but I need other codebases to attend to now
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: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
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: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: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:28:13
russellw
huh, ,. does work. how? I though , had to be followed by a form? CLHS doesn't mention ,.
8:30:42
beach
Not terribly useful though. Saving a few CONS cells in the reader is typically not worth the effort.
8:38:27
varjag
was there some software that tracks the licenses of systems via their .asd dependencies?
9:50:45
Myon
unfortunately pgloader is still failing, Compilation failed: Compile-time package lock violation:
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
13:56:49
Xof
I know this was yesterday or even the day before, but it's still in my scrollback and I had a showerthought, so...
13:56:51
Xof
(defun prefix (strings) (reduce (lambda (x y) (subseq x 0 (mismatch x y :end1 (length x)))) strings))
14:12:57
hjudt
do people nowadays use slime or sly? i've tried sly recently and found it offers some good improvements over slime.
14:13:36
phoe
I'm a spacemacs+slime user. I don't really complain, but then again, I haven't tried sly.
14:14:30
ggole
(defun prefix (strings) (if (null strings) "" (subseq (car strings) 0 (loop for string in (cdr strings) minimizing (or (mismatch (car strings) string) (length (car strings)))))))
14:44:19
hjudt
phoe: didn't know about spacemacs, but then i like following the standard emacs way because that's what my distribution provides... i also think about that way about sly, but quicklisp now provides it too so in that case it is fine and i like the features stickers and repl backreferences.
14:46:15
jackdaniel
I think that tasks like codegolf are superficial - there is quite a lot occasions when programmer is in need for small one-time utility during normal course of coding, that's a perfect occasion to make something and be proud of it
14:47:36
hjudt
shka_: it is like slime but has some additional nifty features (i also like the fuzzy search btw) and spares you some config lines. but that's probably it. might also be a matter of taste, but some things just seem to be easier to handle to me.
14:48:13
hjudt
i've only started using it a week ago and never was a very experienced slime user though.
14:49:12
hjudt
the only thing you have to set up in contrast to slime is a keymap for the selector which comes out-of-the-box with slime. that hasn't been very difficult to achieve though.
14:50:16
hjudt
it also has good documentation which helped me a lot, though slime isn't bad in that regard too
14:51:58
hjudt
the great thing was that you can also try it without removing slime. so it's easy to switch back and forth.
14:58:57
hjudt
shka_: sure, you can read up on it here: https://github.com/joaotavora/sly it also has nice demo videos.
15:00:17
hjudt
would be glad if you share your experience with it since you're probably a more experienced slime user than me
15:04:54
hjudt
yes, and there is also a tutorial or walkthrough that works and is perhaps more easier to follow (at least if you aren't a 144hz-accustomed hardcore gamer).
15:15:05
russellw
How do you programmatically generate '(1 2 3 . 4)? cons wants just two parameters, and append and list* both correctly complain that the last element is not a list
15:45:28
beach
But there is a little trick you can use if you don't want to use an external library.
15:47:21
russellw
list-length: Returns the length of list if list is a proper list. Returns nil if list is a circular list. ... It doesn't say what the result is for a dotted list?
15:47:49
beach
Should signal an error of type type-error if list is not a proper list or a circular list.