freenode/#lisp - IRC Chatlog
Search
7:31:45
d4ryus
is there a system in quicklisp to benchmark/compare runtime speed of cl implementations?
7:55:04
no-defun-allowed
|3b|: I've read how to implement box blur as a two-pass O(n) procedure, don't you worry.
7:55:22
beach
d4ryus: Oh, but maybe I'm mistaken about what it does. Now that I think about it, I think Shinmera created a system for exactly the purpose you want.
7:56:10
Shinmera
beach: trivial-benchmark is for benchmarking user code, it won't automatically compare the performance of implementations across a standardised set of forms for you.
7:57:19
Shinmera
my other project, cl-all can help you compare implementation behaviour though, by invoking them for you
7:57:45
no-defun-allowed
I should add start and end keywords for ffmpeg to allow it to create high quality Lisp ytp.
11:16:36
makomo
how exactly does one achieve indentation like this https://i.imgur.com/oWepfcn.png as opposed to this https://i.imgur.com/HwhEoqp.png
11:17:50
makomo
i hope it's clearly visible what i mean but to describe it a little: i want a "body form" within my macro's custom syntax to be indented just like macros' body forms are usually indented
11:18:29
makomo
note how in the first picture the body is indented nicely under :lambda, while in the second the body is aligned with the previous form
11:22:09
makomo
the nice indentation started working only once i loaded ESRAP (i think, checking now), so i suppose there's a way to do it
11:29:09
makomo
:lambda indents nicely without loading ESRAP, but :destructure requires ESRAP to be loaded to indent nicely
11:43:10
_death
https://github.com/scymtym/esrap/blob/master/src/editor-support.lisp also see trivial-indent
11:44:12
beach
no-defun-allowed: I'll add it at some point, but there is no great point in doing that until I have something that can be experimented with.
11:44:36
makomo
_death: oh boy, if only i looked carefully at the file list -- i was looking at macros.lisp and now interface.lisp...
11:58:30
scymtym
makomo: what _death said. SB-EXT:WITH-CURRENT-SOURCE-FORM is for associating macro expansion errors with sub-forms. for example to allow SLIME to highlight a sub-form instead of the whole macro form
12:03:45
makomo
scymtym: ah, that confirms the vague idea i formed by reading the docstring a couple of times. gooling for it doesn't really give much except for messages in #sbcl and sbcl mailing lists posts, both of which are yours :-)
12:16:57
k-stz
cffi:load-foreign-library searches for library.so but cant find those with number extensions library.so.<number>, is there some setting that does that? My linux distribution saves only the newest library with number extensions and cant (no symlink "libfreetype.so -> libfreetype.so.6")
12:22:56
jmercouris
it is pretty standard practice to have a symlink pointing to the latest version of a shared library
12:40:56
scymtym
makomo: all SBCL users benefit though, as this is used in SBCL itself as well. compare left (with WITH-CURRENT-SOURCE-FORM) to right (without) in https://techfak.de/~jmoringe/macroexpansion-condition-locations.png
12:55:49
k-stz
I can symlink no problem, but I'd rather fix it at the source or it won't work on all distributions. And the bindings aren't mine, so you'd say its a bug and I should tell the maintainer?
16:36:46
phoe
you can put multiple forms inside a DEFUN - it has an "implicit PROGN", or so it's called.
16:37:12
phoe
*counter* instead of +counter+, as beach said. It's just notation - +foo+ denotes constants, *foo* variables.
16:39:04
beach
j`ey: If the (WHEN DFS-RES is supposed to be inside the LET, then the line is badly indented.
16:40:23
phoe
there's packages called slimv or vlime - they allow live interaction with Lisp images and should get you the best experience
16:40:41
phoe
I'm a spacemacs user myself, so won't be able to help you with vim setup - but perhaps someone else on the channel has that.
16:41:01
dim
j`ey: for growing a style and learning so many tricks when starting with CL I did like reading https://www.cs.umd.edu/~nau/cmsc421/norvig-lisp-style.pdf ; I should give it another read even
16:41:03
phoe
j`ey: please do. half a fun of doing Lisp is its interactivity - and you need a toolkit that leverages that interactivity, so a mere text editor won't do
16:41:30
phoe
dim: and yeah, the three basic things: reading other people's code, writing your own code, and sending it for reviews
16:41:59
j`ey
my friend has looked at my code, but he's been too busy to look at some of the recent changes
17:09:17
drmeister
The first one is from the (defgeneric foo (page &key if-exists &allow-other-keys) ) definition
17:24:28
Colleen
Clhs: section 7.6.4 http://www.lispworks.com/documentation/HyperSpec/Body/07_fd.htm
17:24:34
Colleen
Unknown command. Possible matches: 8, mop, roll, set, say, get, login, block, award, time,
18:23:14
drmeister
makomo: Thank you - I encountered those incongruent lambda lists in some code from someone that I trust and I know that it is accepted in sbcl. I couldn't believe that clasp/ecl determined correctly that the lambda lists were correct and that the author and sbcl were incorrect.
18:35:34
drmeister
s/I couldn't believe that clasp/ecl determined correctly that the lambda lists were correct and that the author and sbcl were incorrect./I couldn't believe that clasp/ecl determined correctly that the lambda lists were INCONGRUENT and that the author and sbcl were incorrect./