libera/#commonlisp - IRC Chatlog
Search
16:33:20
nij-
Anyone uses parenscript? While it supports some lisp constructs (e.g. let, defun, loop), it misses some too (e.g. mapc, mapcar). Is there a way to extend parenscript to support those without hacking the code base?
16:46:16
phoe
(parenscript:ps (defun mapcar (function list) (loop for element in list collect (funcall function element))) (mapcar (lambda (x) (+ x 10)) '(1 2 3)))
16:52:36
josrr
ACTION nij-: there is the runtime library https://parenscript.common-lisp.dev/reference.html#section-runtime-library
17:10:09
nij-
Well.. the lib only contains 7 functions. I suppose I need to write some of the ones i like.
17:25:51
foxfromabyss
hi! is it possible to get something like `:a :b` as a result of a macro expansion, is opposed to `(:a :b)` ?
17:32:57
beach
Unfortunately I can't stick around. I need to go fix dinner for my (admittedly small) family. Sorry.
17:33:14
foxfromabyss
`(splice-into-outer (x y z)` `=>` `:x x :y y :z z`, where the keys have the same name as the variables, and it supports multiple variables
17:34:21
phoe
in particular, something like (list 1 (foo) 3) then this is always a list of length 3 - (FOO) can only expand to a single Lisp value
17:36:22
phoe
doesn't jsown have some sort of semiautomated facility to turn json objects into CL instances?
17:37:15
Josh_2
foxfromabyss: you do not need to remove the list from (:x x ..) you can simply use (apply #'make-instance <your plist>)
17:38:11
Josh_2
(apply #'make-instance '%api-call-failure '(:object 1 :processor 1 :hash 1 :c 1)) => <%API-CALL-FAILURE {1008694863}>
18:37:17
foxfromabyss
`(apply #'make-instance 'testobj (:x 5))` this fails with `:x` being an undefined function
18:37:18
foxfromabyss
i can quote it it this example, but if i do smth like `(apply #'make-instance 'testobj (get-values-for-x))`, i can't quote the values for `apply` :(
18:40:42
Xach
Someone keeps emailing me questions about Vecto and fonts, but their email box is full and my replies keep getting held up :(
18:40:42
skeemer
what common lisp library do you suggest to plot stuff... i need something similar to matplotlib, or ggplot
19:17:16
edgar-rft
skeemer: I usually write gnuplot data into a file and then use gnuplot from the commandline, but here are some other alternatives -> https://www.cliki.net/plotting
19:32:05
phoe
literate programming time - https://github.com/phoe/articles/blob/main/2022-01-29-static-let/static-let.md
19:37:25
White_Flame
isn't literate programming usually about being documentation with code interspersed?
19:40:08
phoe
White_Flame: I think it is - I kind of abuse this idea to also include stuff that teaches writing Lisp in general
19:51:23
moon-child
phoe: 'we did not supply the second argument to LOAD-TIME-VALUE, which creates constant data' I think this would be clearer as 'we did not supply a second argument to LOAD-TIME-VALUE, which lets us create constant data'
19:52:23
moon-child
I'm also not sure if the use of the uninterned symbol clarifies or obscures intent. Depends on your audience, probably, but
22:39:01
phoe
flip214: https://github.com/armedbear/abcl/issues/433 looks like Alexandria might need to adjust its TYPE= tests for cases where one SUBTYPEP returns T T and the inverse SUBTYPEP returns NIL NIL
0:06:09
etimmons
Shinmera: trivial gray streams has file-position, and I'm pretty sure it works on most implementations
2:49:32
Guest74
is there a way to add/view documentation for a specific method of a generic function?