Search
Thursday, 8th of April 2021, 14:33:52 UTC
14:47:49
VincentVega
With a macro's lambda list &key, is it possible to identify the order in which the keys were supplied?
14:48:05
phoe
if you need that, do (&rest args &key ...)
14:50:35
VincentVega
phoe: great, thank you!
15:00:51
jmercouris
phoe: the implementation should know though right?
15:01:00
phoe
jmercouris: what do you mean, the implementation?
15:01:16
phoe
with &key, the order is absolutely unimportant unless you have duplicates
15:01:26
jmercouris
SBCL would know exactly the lambda list passed into a funcall
15:01:29
phoe
:foo 1 :bar 2 is the same as :bar 2 :foo 1
15:01:40
jmercouris
Sure, SBCL should know what I sent
15:01:44
phoe
jmercouris: this isn't really a SBCL issue
15:02:00
jmercouris
Wouldnt it be possible though?
15:02:05
phoe
every Lisp implementation does know exactly what you send, because it can make it available if you pass &rest
15:02:22
jmercouris
Iām not making much sense
15:02:26
jmercouris
Forget what I said lol
16:03:03
Josh_2
What crazy thing are we gonna talk about today? How about the performance of CL? jk jk
16:31:14
contrapunctus
Anyone here use redshank? It sounds quite cool but I've not heard much about it.
16:33:11
contrapunctus
It's a bunch of commands for performing some common insertions and modifications in CL code.
16:43:47
ck_
I have used it sometimes in the past, yes. Some functions more than others, mostly the moderately simple stuff like extract-defun
16:44:43
ck_
it didn't feel like a significant improvement over manually (par-)editing; maybe I didn't spend enough time with it
16:51:47
attila_lendvai
is rpav of c2ffi fame around?
16:52:42
mfiano
attila_lendvai: He stopped lisping a few years ago
16:53:03
mfiano
You can find him in our gamedev channel, #bufferswap if you need him immediately though.
16:53:19
attila_lendvai
mfiano, much appreciated, thanks!
16:54:09
attila_lendvai
ACTION is trying to compile c2ffi on nixos
17:15:54
Josh_2
Shinmera: have you used Chirp recently?
17:16:29
Shinmera
I used it approximately a day ago to post a drawing.
17:16:46
Shinmera
Why does this matter? What is your actual question?
17:17:17
Josh_2
I'm getting an error trying to quickload it
17:17:33
Josh_2
"don't know how to REQUIRE sb-rotate-byte"
17:17:47
Josh_2
but it worked when I attempted to quickload in a fresh image
17:18:08
Shinmera
that's an ironclad issue.
17:19:10
Josh_2
I guess I will just redumping this image with chirp as a dependency, see if that works
17:19:48
Shinmera
whatever the case the issue is not with chirp.
17:26:05
jmercouris
I've noticed when loading my own code which depends on other libraries, slime compilation will report their warnings, any way to get rid of those?
17:26:26
jmercouris
I'm not interested in stuff like: Unknown location: redefinition: redefining CL-PREVALENCE:GET-ID in DEFGENERIC
17:29:38
shka_
jmercouris: yes, you can rebind the error stream
17:33:44
Josh_2
Shinmera: when using (complete-authentication <pin>) pin is supposed to be the url returned by initiate-authentication?
17:34:28
Shinmera
no, the pin you get from visiting that page.
17:35:00
Shinmera
it says that in the readme.
17:37:28
Nilby
jmercouris: My advice is always wrong, so you definitely shouldn't do this: https://plaster.tymoon.eu/view/2380#2380
17:37:41
jmercouris
Nilby: true true, you and me give wrong advice
17:37:53
jmercouris
we should be ashamed, really
17:38:51
jmercouris
lol, I like the macro name
17:45:01
_death
you could also fix the warnings.. but that advice is the wrongest
17:49:57
Nilby
(ql:system-apropos "") | wc -l ā 4491 , so that might take a while. My systems have no unintentional warnings
17:51:36
Josh_2
Yay I tweeted using Chirp
17:52:56
_death
Nilby: hah! (length (ql:system-apropos-list "")) => 4726
17:53:22
Xach
(length (ql:provided-systems t))
17:54:37
Nilby
I think I have a lot of stuff I forgot about in my local-projects
17:55:53
Josh_2
Shinmera: do you have any example code showing how to upload an image?
17:56:23
shka_
jmercouris: sorry, was afk
17:56:47
shka_
jmercouris: https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node183.html
17:57:37
shka_
so you can https://github.com/sirherrbatka/vellum/blob/1315f04382547f938f4569f2b99ba038e93f75b6/run-tests.lisp#L11
17:57:54
shka_
however, this will muffle ALL conditions
17:58:10
shka_
which is perhaps not exactly what you want
17:58:10
jmercouris
right, I'm only interested in other libraries
17:58:15
jmercouris
I will just have to live with it for now
18:17:54
Nilby
I still have a CL twitter client with a TUI back from when you had to send your password in cleartext over http, but then I never looked a twitter again.
18:22:56
Nilby
I'm simultaneously atounded at how hard it is now, and by Shinmera's productivity.
18:59:38
Josh_2
Shinmera: the fun (statuses/update-with-media ..) says it takes either a pathname, usb-8 array or a base64 encoded string (in the docstring), I have just given it a usb-8 array and I get the error "Wanted one of (FUNCTION FILE-STREAM STREAM PATHNAME)."
19:04:18
Josh_2
I will just use a temp file
19:20:27
jmercouris
Josh_2: what is a usb array?
19:50:43
Lord_of_Life_
** NICK Lord_of_Life
19:58:59
Josh_2
I got it working by just writing to a tmp file
19:59:08
Josh_2
obviously this is less than ideal but whatever
20:11:43
Josh_2
Shinmera: once I have my pin and I've verified, do I ever have to do it again?
20:12:02
Shinmera
Please just read the docs.
20:15:33
Nilby
Every minute we distract Shinmera is like an hour of normal Lisper time.
20:18:38
contrapunctus
Uh, what's going on here :\ (ql:quickload :mcclim) => System "mcclim" not found š¤
20:20:25
phoe
contrapunctus: ql:update-all-dists?
20:20:41
contrapunctus
Same goes for, say, alexandria
20:21:00
phoe
do you even have the quicklisp dist?
20:21:10
contrapunctus
phoe: yup, tried that. Although rather suspiciously, it said "1 dist to check"
20:21:15
phoe
(ql-dist:dist "quicklisp")
20:21:40
phoe
and asdf:*central-registry* - what is the value of this?
20:21:42
contrapunctus
phoe: #<QL-DIST:DIST quicklisp 2021-02-28>
20:21:49
Bike
"1 dist to check" is what it usually says.
20:21:57
phoe
so the dist is there, okay
20:22:14
phoe
can ASDF find quicklisp systems though?
20:22:37
contrapunctus
phoe: asdf:*central-registry* => (#P"/home/anon/quicklisp/quicklisp/")
20:23:12
Shinmera
Josh_2: oAuth tokens don't expire unless they're manually revoked. You have to actually save the info though.
20:23:16
phoe
so (asdf:find-system :alexandria) should find the system
20:23:49
mfiano
First check (ql:where-is-system :alexandria) to see if Quicklisp even has it downloaded
20:24:09
contrapunctus
phoe: Component "alexandria" not found
20:24:48
Bike
have you done anything weird lately? deleted systems.txt or something?
20:25:08
contrapunctus
mfiano: nil š¤ but I have a /home/anon/quicklisp/dists/quicklisp/archives/alexandria-20200925-git.tgz
20:25:37
contrapunctus
Bike: upgraded from Debian Stable to Testing, if that's weird š
20:26:09
Bike
do you have cl-asdf or anything installed? maybe your global asdf configuration is something odd now
20:26:10
mfiano
but do you have a quicklisp/dists/quicklisp/software/alexandria-20200925-git/
20:26:27
phoe
right, do you have any cl-* packages installed from apt?
20:27:20
contrapunctus
Oh. I did install cl-asdf, because before that, SBCL was not seeing ASDF š¤
20:27:31
phoe
SBCL should have ASDF bundled
20:27:46
contrapunctus
My thoughts exactly š
20:27:47
phoe
and quicklisp should load it automatically via #+sbcl (require :asdf)
20:28:03
phoe
and if for some reason it isn't available, quicklisp has its own fallback asdf that it uses for such situations
20:28:15
phoe
but this should never happen because SBCL has its ASDF bundled, like, in general
20:30:28
phoe
remove the fasl cache, restart, let's see if this works better
20:31:11
contrapunctus
ASDF is being detected now, but the Quicklisp issue persists
20:31:28
phoe
does it still not see alexandria?
20:32:09
contrapunctus
phoe: Where's the FASL cache? O.o Did restart, it does not.
20:32:26
phoe
contrapunctus: any other cl-foo packages on your system?
20:32:39
phoe
contrapunctus: ~/.cache/common-lisp/
20:32:40
mfiano
Normally $XDG_CACHE_HOME/common-lisp/
20:32:57
contrapunctus
phoe: cl-quiclisp :o
20:32:59
phoe
listen to mfiano, he is wise in the ways of the XDG
20:33:11
mfiano
Well, (typep *debian-testing* '(and still-older-than-crap unstable) ; => T
20:33:23
phoe
mfiano: likely not a testing issue
20:35:59
contrapunctus
phoe: removed cl-quicklisp, deleted the cache, restarted Emacs, still the same Quicklisp issue x-P
20:36:25
mfiano
I assume the stacktrace doesn't have any meaningful locals?
20:37:12
phoe
do you have the alexandria asd file anywhere in ~/quicklisp/dists/quicklisp/software/?
20:37:30
contrapunctus
mfiano: http://ix.io/2VqF
20:37:40
phoe
yes, but I did not see the answer
20:38:24
contrapunctus
phoe: there's a /home/anon/quicklisp/dists/quicklisp/software/alexandria-20200925-git/alexandria.asd
20:39:10
contrapunctus
Maybe I can nuke ~/quicklisp and reinstall? š¤
20:39:14
phoe
so for whatever reason ASDF does not see this
20:39:20
phoe
contrapunctus: I think you could try
20:39:32
phoe
back your local projects up, nuke, reinstall from quicklisp.org
20:47:46
contrapunctus
Thanks everyone ^_^
Friday, 9th of April 2021, 2:33:52 UTC