freenode/#lisp - IRC Chatlog
Search
18:01:35
pve
Can anyone recommend a tool for printing CL code, like on paper? So something to convert the source files into .ps or .pdf..
18:02:02
pve
I know emacs has some printing stuff, but I've never used it, so I don't know how viable it is
18:06:44
_death
I remember lukego had a blog post about it ( https://lukego.github.io/blog/2012/10/24/readable-programs/ ) but I don't print stuff
18:22:14
aeth
heh, I was about to say, "That was 2012, but in 2020, we'd probably just use Markdown"... but the blog's already talking about Markdown. I guess everyone cool was already talking about Markdown even by 2010.
18:26:37
_death
recently I reverted (for no good reason) to the intricate comment convention style mentioned in the clhs.. for some years I only used ;;;; and ;; and stopped inserting Page characters .. still don't know if it's worth it
18:26:51
aeth
pve: You can just add "### filename.lisp~%```common-lisp~%" to the top of a file and "```~%~%" to the bottom and concatenate the files together and use an existing Markdown processor, assuming the comments and docstrings don't need to be handled in a fancy way.
18:56:56
Guest9274
o/ How can I declare function's output value as a composite type? I want to say that a function returns `(or null string)`. I see it's possible to do so for variables, but was wondering if it's possible for function parameters.
19:36:39
phoe
like https://cdn.discordapp.com/attachments/727649887549653212/728694783706529853/Zrzut_ekranu_z_2020-07-03_21-32-49.png that I did real quick in draw.io
2:07:10
gjulio
hey i'm new to the channel and new-ish to lisp. i'm getting stuck with the syntax on using remove with reduce. if i have a blacklist ofsymbols '(a b c) and a list '(a b a c a b b a). I want to use reduce to obtain '(a a b b a).
3:58:26
shukryzablah
is it possible to make + add two vectors element-wise? (+ (vector 1 2) (vector 3 4)) -> #(4 6) . How can I do this?
4:00:49
White_Flame
of course, that's not making + do anything new, but using + element-wise across two vectors
4:05:01
beach
shukryzablah: No, you can't alter the behavior of +, nor of many other basic Common Lisp functions. But you can create your own package and your own + function that is able to add vectors.