libera/#commonlisp - IRC Chatlog
Search
4:33:29
mountainman1312
I've never made a GUI before, always a text-only kind of guy. I'm about to be making a program for my employer (manufacturing, not software company) and it has to be GUI. It also has to work on both Windows and FreeBSD. I'm wondering what's the current recommended Qt bindings for Common Lisp?
4:45:21
mountainman1312
It's the one that is both cross-platform and I've heard of it before. No real technical reasons as I realize I have no idea what I'm doing in terms of GUI yet :)
5:06:51
Bubblegumdrop
I don't know if anyone is maintaining a Qt backend right now, I think there's some work on Qt6?
5:07:10
Bubblegumdrop
It has to work on both Windows and FreeBSD? That sounds like a good choice for a web app if you ask me.
9:09:35
cosimone
hello, i found something weird the other day, i'm on sbcl 2.2.9. apparently, when using defclass, i can use the :initargS slot option (notice the trailing s), which compiles fine, altohugh i don't se it in the available options in the hyperspec (i only see :initarg)
9:09:39
cosimone
here is an example: define this class (defclass point () ((x :initargs :x) (y :initarg :y))) then make an instance: (make-instance 'point :x 0 :y 0), i get the following error: "Invalid initialization argument: :x"
9:09:42
cosimone
my question is, is this some kind of sbcl extension i wasn't aware of? is there some part of the spec that i missed? or, worst case scenario, could this be an implementation bug?
9:47:56
dino_tutter
i just spent 5+ hours debugging a macro that was using `macrolet` and giving me weird compiler errors when what i wanted was `symbol-macrolet`, oops
9:52:17
dino_tutter
maybe LLMs have a future in "this obscure SBCL error" -> "you are using function X when you want function Y" ?
10:35:14
cosimone
beach: i see, i tried looking up the macroexpansion, but i couldn't understand exactly what was going on
10:45:00
beach
cosimone: You might try to read the relevant section of the AMOP to see what i supposed to happen.
10:46:00
beach
Like this one: http://metamodular.com/CLOS-MOP/initialization-of-class-metaobjects2.html
11:54:33
q3cpma
Hello, I have the ambition of locally "fixing" cl:search to provide :key1 and :key2 instead of (or in addition to) the standard :key that applies to both sequences, but while keeping speed. How would you do such a thing? At first, I tried forking some of SBCL's code, but it's basically impossible to get the banana without the gorilla and jungle here...
11:57:54
nil
It seems in Lisps with CLOS derived from PCL, like sbcl and ccl, since slots have a "initargs" slot, you can conveniently set it from defclass.
12:05:42
nil
q3cpma: I'd say just make a search wrapper that wraps the test function. Compilers may do a lot of tricks to make ‘search’ faster. I guess you could write one from scratch or out of other sequence functions and compare performance.
12:11:12
q3cpma
(am I the only one that was annoyed to find that search can't easily act as a generalization of find with a sequence needle?)
12:41:10
cosimone
still, :initargs doesn't seem to be allowed as an individual slot option in standard CL if i'm not mistaken