libera/#commonlisp - IRC Chatlog
Search
8:31:16
dsk
Right. Somehow my brain went on the fritz and told me that NIL is actually a cons, the CAR and CDR of which are both NIL.
8:31:55
dsk
But I understand that while the CAR and CDR of NIL are both NIL, it is not a cons, though it is a list, and there's only one of it.
9:32:44
Duuqnd
If I wanted to have a reader macro that works in one file or one package (whichever is easier) how would I go about doing that?
9:34:11
beach
You put it in a specific readtable and you make sure that readtable is current in the file.
13:20:25
beach
jmercouris: I don't have any plans to look at the code for Nyxt. I was just planning to use it.
14:08:13
Fade
I'm seeing a weird failure in Sly I haven't encountered before. When I press ',' to enter a REPL shortcut, the comma isn't captured and secondary shortcut entry doesn't pop up. I just get the raw comma in the REPL. have any of you encountered this?
14:09:41
Fade
if there's a space it doesn't exist in any context that I can interact with it using the standard emacs machinery.
14:11:39
jmercouris
it is a library used by circe and others to show like a prompt and history, like in the REPL
14:12:18
Fade
I'm not getting an error, I'm just not getting the command, so I'm not surehow to debug it.
14:19:31
Colleen
us: Unknown command. Possible matches: 8, time, set, say, mop, roll, get, search, login, grant,
14:23:11
Fade
hum. it only seems to be happening with the one system I'm trying to work on. my other systems behave normally. sly behaves normally prior to any nonefault systems being loaded.
15:37:24
Fade
well, for posterity, the answer is loading the system :clog will do some violence to your Sly REPL
16:29:22
Josh_2
Hi, I have these classes https://plaster.tymoon.eu/view/2486#2486 but when I try to make an instance of one-hundred I get the condition "IPN-PAYMENT-SUCCESS is a forward referenced class .. IPN-PAYMENT-SUCCESS is a direct superclass" how do I fix this?
17:34:41
Inline
there is a xlib:display-force-output *display* when replaced with xlib:display-finish-output it works as expected
17:42:28
Inline
ok, the only difference between the two seems to be this: both force any buffered output to be sent to the X server, but finish-output is the only one waiting till all requests are received and processed by the X server
17:45:32
Nilby
When I'm working with CLX interactively I often make it put an implicit display-finish-output after every repl comamnd.
18:20:07
Inline
the windows themselves are supposed to be empty, but the windows themselves are the bouncing ones
18:27:46
Inline
the bounce and shove bounce demos are not about things jumping inside windows, they are about the windows itself jumping around in some manner
18:28:21
Inline
mine head down to the bottom of my screen as if i have left a ball down on the floor
18:31:43
Inline
if i knew who the maintainer of CLX was i'd just post the examples (the corrections as a diff file) maybe
18:34:22
dieggsy
is there an easy way of calling some code inline at macro expansion time without another defmacro ?
18:37:23
Nilby
You can just call any function that's allready defined when the macro is being defined.
18:39:28
Nilby
I'm not sure if that's what you mean? but something like: (defmacro foo (x) `(print ,(sqrt x)))
18:41:06
dieggsy
Nilby: i think im basically asking for the macro-equivalent of a lambda. like an unnamed macro that i can call/expand inline
18:43:11
Josh_2
With ironclad a 'sha512 hmac' requires making a hmac-digest with my private key, then using hmac-digest with the octets I wish to digest?
18:53:24
flip214
Josh_2: I'm using (ironclad::hkdf-extract 'ironclad:sha256 secret string), what are you doing?
18:57:52
Nilby
dieggsy: If you have an example of what you want to do, it's likely someone here can come up with a nice way.
19:01:14
dieggsy
Nilby: it would literally be like an inline (mexpand (format nil "~a~b" "foo" "bar")) becomes "foobar" in the compiled code. As opposed to having to (defmacro thing () (format nil "~a~b" "foo" "bar")) and calling (thing). I can of course just write that mexpand macro myself, was just wondering if there's some clever built-in i don't know about
19:11:59
dieggsy
i'm not against writing a macro, just would be nice if we had a built-in inline form that does the same. of course, when you can write that yourself, no point baking in every little thing into the language lol
19:56:17
dieggsy
I'm doing something kind of weird and injecting a "git status" output into code as a string at macro expansion time
19:56:51
dieggsy
is that just chance, or is it somehow guaranteed that files are somehow compiled within the context of where they are in the file ssytem