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:37:41 beach mountainman1312: If you have never made a GUI before, how come you decided on Qt?
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 :)
4:45:56 beach I see.
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.
5:07:24 Bubblegumdrop Server backend with REST API and your clients can run on the web
6:44:34 srji \o/
8:00:05 alcor` ** NICK alcor
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:10:29 cosimone i'll try later on the very latest sbcl version to see if the phenomenon persists
9:34:25 beach Sounds like a bug to me.
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:48:13 beach Heh!
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:49:33 cosimone i don't see anything mentioning :initargs as a valid slot option
10:49:53 cosimone the class-wide :default-initargs option is another thing entirely
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:08:41 q3cpma nil: huh, good idea. Actually pretty ashamed I didn't think of it!
12:10:23 q3cpma Thanks!
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:14:54 jackdaniel is CCL's clos derived from PCL?
12:40:48 cosimone nil: i wasn't aware of that, interesting
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