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.
15:48:08
russellw
I forgot about circular lists. To clarify: what I actually need to test for is a dotted list. - ah! okay, thanks
15:48:55
russellw
I'll probably write my own function, so that will probably involve (and (consp a) (not (consp (cdr a))))?
16:12:13
nixfreak
Does anyone use lisp to create bash 1liners like to find something or parse something out, trying to see if its better to use lisp than bash on linux ?
16:14:21
|3b|
CL tends to be a bit verbose for things that you would usually do in bash, but i think some people have utility libs for making shell-like things more convenient
16:14:49
|3b|
though also depends on whether you already have the data in memory in a running lisp image
16:14:57
Shinmera
As soon as you need to use arrays in bash it gets terrible enough so quick that pretty much anything else would be better.
16:15:34
|3b|
yeah, i guess it depends on where you cutoff is for "something reasonable to do in bash"
16:16:17
on_ion
nixfreak: i would look at emacs' eshell and elisp. it allows mixing lisp (without parens usually) and bash.
16:17:49
|3b|
also CL's spec for file naming and operations doesn't make it very nice for general processing of files at the name/directory level
16:29:05
shka_
https://github.com/sirherrbatka/cl-data-structures/blob/master/src/file-system/find.lisp
16:30:12
shka_
so the code is more complicated, but it works with other things i wrote that expect range as a input
16:32:31
nixfreak
thats really cool , so why not just use find and grep , not being mean about it just curious why you did
16:33:54
shka_
and I already have general utils that work on ranges, so i can leverage those if i have something that works like find
16:34:59
nixfreak
I keep going back and fourth with languages and keep coming back to lisp for some reason
16:35:17
shka_
https://github.com/sirherrbatka/cl-data-structures/blob/master/src/file-system/line-by-line.lisp
16:37:28
shka_
this does not require reading everything to memory at once, works with my aggregation functions, can be chained into multithreaded processing and so one
16:43:16
shka_
nixfreak: anyway, i really prefer to write in lisp so if there is simply no tool that cuts it for me it is natural choice
16:47:45
nixfreak
shka I'm still a big noob in CL but I'm going to focus my attention to it instead of other languages