libera/#commonlisp - IRC Chatlog
Search
7:52:21
hirez
its so elegant looking in cl, lol. If anyone has any feedback on how I can make this more...canonical lisp I'd appreciate it
7:56:16
moon-child
hirez: I think it would be cleaner to avoid the pushes in the body, as in (let* ... (stack (list (pop sorted) min))
7:56:46
hirez
Could I? I basically have to hold an element in `sorted` based on the `left` function. I will read up on collect.
7:57:10
hirez
Im not sure how I could avoid the push because the algorithm is dependent on a stack. I'd be interested in hearing how to avoid it.
7:59:42
moon-child
(that's a matter of personal style, though; others would consider it more consistent to view the algorithm as a sequence of pushes onto an empty list)
8:08:35
dsk
hirez: It's best not to try to destructively modify a literal object. That has undefined consequences.
8:10:40
moon-child
'() is a perfectly fine, well-understood, and self-documenting way of producing an empty list
8:11:29
phoe
the only thing I can imagine is modifying the SYMBOL-NAME of NIL, but that has nothing to do with lists
8:19:22
dsk
It seems obvious that (push thing stack) is equivalent (setf stack (cons thing stack)) so that wouldn't be an issue. But is (setf (car '(foo)) 'bar) okay?
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.