kenran has quit [Remote host closed the connection]
v88m has quit [Read error: Connection reset by peer]
amb007 has quit [Ping timeout: 246 seconds]
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
theruran has joined #commonlisp
v88m has joined #commonlisp
NotThatRPG has joined #commonlisp
JuanDaugherty has joined #commonlisp
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
johnjaye has quit [Ping timeout: 264 seconds]
johnjaye has joined #commonlisp
notzmv has quit [Remote host closed the connection]
treflip has joined #commonlisp
m3tti has joined #commonlisp
notzmv has joined #commonlisp
King_julian has quit [Ping timeout: 244 seconds]
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
eddof13 has joined #commonlisp
JuanDaugherty has quit [Quit: JuanDaugherty]
Guest1070 is now known as lieven
treflip has quit [Ping timeout: 272 seconds]
treflip has joined #commonlisp
cqst has joined #commonlisp
Th30n has quit [Quit: going off]
jonatack has quit [Ping timeout: 246 seconds]
mrcom has joined #commonlisp
jonatack has joined #commonlisp
X-Scale has joined #commonlisp
pranav has quit [Read error: Connection reset by peer]
v88m has quit [Remote host closed the connection]
NotThatRPG has quit [Remote host closed the connection]
v88m has joined #commonlisp
lucasta has quit [Quit: Leaving]
mistivia has quit [Ping timeout: 252 seconds]
mistivia has joined #commonlisp
semarie has joined #commonlisp
treflip` has joined #commonlisp
treflip has quit [Ping timeout: 252 seconds]
jonatack has quit [Read error: Connection reset by peer]
<jfloren_>
I've been working on a music player web frontend using ningle. My music is mounted via NFS, and it seems that if I try to fetch & load dozens of album covers in parallel things get real slow. Wondering if there's something I could use to limit things to at most N threads in that particular handler at any given time. Suggestions? I forget what this is called, but basically when the cover image
<jfloren_>
endpoint gets hit, I want it to grab one of a limited # of tokens during execution
pranav has joined #commonlisp
eddof13 has quit [Quit: eddof13]
eddof13 has joined #commonlisp
<disruptek>
rate-limiting; leaky bucket?
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
<cage>
Hi! can someone help me about matching #\ZERO_WIDTH_SPACE with cl-ppcre? I tried (cl-ppcre:scan "\\x{200B}" ...) with no luck :(
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
mrcom has quit [Read error: Connection reset by peer]
mrcom has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
NotThatRPG has joined #commonlisp
v88m has joined #commonlisp
amb007 has quit [Ping timeout: 276 seconds]
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
amb007 has joined #commonlisp
treflip` has quit [Read error: Connection reset by peer]
v88m has quit [Ping timeout: 252 seconds]
v88m has joined #commonlisp
zxcvz has quit [Quit: zxcvz]
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alcor has quit [Remote host closed the connection]
alcor has joined #commonlisp
X-Scale has quit [Quit: Client closed]
chkhd is now known as chkhd`
chkhd` has quit [Quit: ZZZzzz…]
chkhd has joined #commonlisp
Akbar-Birbal has left #commonlisp [#commonlisp]
chkhd has quit [Quit: ZZZzzz…]
NotThatRPG has joined #commonlisp
dnhester26 has joined #commonlisp
<dnhester26>
MOP question: Does anyone know why the classes for the objects in (closer-mop:class-direct-slots *c3*) are different than for those here? (closer-mop:class-slots *c3*)
<dnhester26>
The ones with the slot definition I want are in the direct slots, but that
<dnhester26>
but that's an issue if I have inheritance
<dnhester26>
class-slots gives #<SB-MOP:STANDARD-EFFECTIVE-SLOT-DEFINITION MITO-VALIDATE::NAME> which is *not* what I expect
<Shinmera>
the direct slots gives you the slots that are defined directly on the class. The slots gives you all effective slots that are computed.
<Shinmera>
direct slots and effective slots are different things :shrug:
pranav has quit [Remote host closed the connection]
<bike>
if you want a direct slot, you don't want to concern yourself with inheritance, since an inherited slot is not direct.
<jackdani1l>
effective slot is a compilation of all direct slots associated with a name
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
henriquegogo has joined #commonlisp
henriquegogo has quit [Remote host closed the connection]
henriquegogo has joined #commonlisp
jonatack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
zxcvz has joined #commonlisp
johnjaye has quit [Ping timeout: 272 seconds]
zxcvz has quit [Remote host closed the connection]
zwr has quit [Read error: Connection reset by peer]
johnjaye has joined #commonlisp
zwr has joined #commonlisp
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
henriquegogo has quit [Remote host closed the connection]
lucasta has joined #commonlisp
droideqa has quit [Quit: Connection closed for inactivity]
olnw has quit [Ping timeout: 240 seconds]
<dnhester26>
I want both direct and inherited slots. The problem I had is that the class of the slot I am getting back is not the same. If you note, from class slots I got an instance of an object of SB-MOP class, and from class-direct-slots I got back an instance of an object of mito-validate-standard-direct...
danieli has quit [Quit: Ping timeout (120 seconds)]
<bike>
why do you want both direct and inherited slots? they're totally different things.
danieli has joined #commonlisp
<dnhester26>
I just found out the answer, it's because I was defining (defmethod closer-mop:effective-slot-definition-class expecting it to give me what I wanted just like I did for (defmethod closer-mop:direct-slot-definition-class, when in reality I had to define (defmethod closer-mop:compute-slots
<dnhester26>
Now this I don't understand why would compute slots not use closer-mop:effective-slot-definition-class, if direct slots uses closer-mop:direct-slot-definition-class
<dnhester26>
bike: yeah, I wanted all available slots, the problem was that the classes of the slot objects were not what I was expecting
<bike>
class-slots gives you all available slots, inherited or not
<dnhester26>
One class was SB-MOP:STANDARD-EFFECTIVE-SLOT-DEFINITION and I needed the class of the slot object to be MITO-VALIDATE-STANDARD-DIRECT-SLOT-DEFINITION
scymtym has quit [Ping timeout: 244 seconds]
<bike>
they'll be effective slots, since that's what the list of all slots is
scymtym has joined #commonlisp
<bike>
compute-slots calls compute-effective-slot-definition, which calls effective-slot-definition-class to tell what class of slot it ought to make
<dnhester26>
Yeah, that's what I needed, the problem was the classes of those slot objects themselves
<bike>
if you truly need direct slots, you don't also need inherited slots
<dnhester26>
bike: I don't think so. That was exactly the problem I had and the answer is that it doesn't. I had defined (defmethod closer-mop:effective-slot-definition-class ((class mito-validate-metaclass) and was getting a different class than expected. I had to define (defmethod closer-mop:compute-slots ((class mito-validate-metaclass)) myself
<dnhester26>
No, I needed all the slots of the object. Again, the problem was not the slots themselves, rather the classes of the slot objects
tucktuck has joined #commonlisp
szkl has quit [Quit: Connection closed for inactivity]
<bike>
if you need all the slots you're not going to get direct slots. you said you needed them to be of class mito-validate-standard-direct-slot-definition. that is presumably a direct slot definition class. so the effective slots are not going to be that.
<Shinmera>
Fascinating, have we discovered an entirely new reason that ORMs are a bad idea here
<dnhester26>
bike: actually you were right. compute-slots does call effective-slot-definition-class, so why in the world did it not work when I defined (defmethod closer-mop:effective-slot-definition-class ((class mito-validate-metaclass) but it did work when I defined (defmethod closer-mop:compute-slots ((class mito-validate-metaclass))
<dnhester26>
bike: just read your comments, thanks for the link, I had just finished reading that code in emacs when I wrote what I wrote.
<dnhester26>
So now i really don't understand. Here's my code now: https://plaster.tymoon.eu/view/4634#4634 before redifining compute-slots, the classes where not correct. I really don't understand why that would be if I had redefined closer-mop:effective-slot-definition-class
<bike>
these are the slots you're getting from class-slots? not class-direct-slots?
<bike>
making a slot-definition directly like you're doing is definitely wrong. that's an abstract class.
<dnhester26>
jackdani1l: thanks will read it
<dnhester26>
bike: which line in the pastebin are you refering to with "making a slot-definition directly like you're doing is definitely wrong. that's an abstract class."?
<dnhester26>
Oh right, that's the stuff I just added because I was getting the output in the second plaster I just sent. Because the classes of the slots were not my custom classes as defined in line 27 of the first plaster
olnw has joined #commonlisp
kevingal has joined #commonlisp
mulk has joined #commonlisp
<jackdani1l>
dnhester26: just take a look at the mop definitions
<jackdani1l>
the rest is rather irrelevant to your problem I think
pranav has joined #commonlisp
<dnhester26>
jackdani1l: thanks, will take a look, was just reading your post
opinionplatform_ has quit [Ping timeout: 248 seconds]
opinionplatform_ has joined #commonlisp
eddof13 has quit [Quit: eddof13]
dnhester26 has quit [Remote host closed the connection]
v88m has quit [Read error: Connection reset by peer]
treflip` has quit [Remote host closed the connection]
triffid has quit [Remote host closed the connection]
eddof13 has joined #commonlisp
tucktuck has quit [Remote host closed the connection]
triffid has joined #commonlisp
mistivia has quit [Ping timeout: 252 seconds]
mistivia has joined #commonlisp
henriquegogo has joined #commonlisp
mwnaylor has joined #commonlisp
benkard has joined #commonlisp
mulk has quit [Ping timeout: 244 seconds]
benkard is now known as mulk
varjagg has joined #commonlisp
eddof13 has quit [Quit: eddof13]
rcs has joined #commonlisp
varjagg is now known as varja
varja is now known as varjagg
ndanilov has quit [Read error: Connection reset by peer]
ndanilov has joined #commonlisp
rcs has quit [Client Quit]
alcor has quit [Remote host closed the connection]
alcor has joined #commonlisp
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
akoana has joined #commonlisp
Everything has joined #commonlisp
pve has quit [Quit: leaving]
eddof13 has joined #commonlisp
amb007 has quit [Ping timeout: 252 seconds]
henriquegogo has quit [Ping timeout: 276 seconds]
henriquegogo has joined #commonlisp
johnjaye has quit [Ping timeout: 252 seconds]
contrapunctus has left #commonlisp [#commonlisp]
henriquegogo has quit [Remote host closed the connection]
henriquegogo has joined #commonlisp
johnjaye has joined #commonlisp
pranav has quit [Remote host closed the connection]
mgl_ has quit [Ping timeout: 246 seconds]
eddof13 has quit [Quit: eddof13]
cage has quit [Quit: rcirc on GNU Emacs 29.4]
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
dilaver_5 has joined #commonlisp
danieli has quit [Quit: Ping timeout (120 seconds)]
danieli has joined #commonlisp
dilaver_ has quit [Read error: Connection reset by peer]
dilaver_5 is now known as dilaver_
Everythi1g has joined #commonlisp
srji has joined #commonlisp
henriquegogo has quit [Ping timeout: 265 seconds]
Everything has quit [Ping timeout: 276 seconds]
henriquegogo has joined #commonlisp
contrapunctus has joined #commonlisp
mwnaylor has quit [Remote host closed the connection]
mwnaylor has joined #commonlisp
srji has quit [Ping timeout: 252 seconds]
pranav has joined #commonlisp
dnhester26 has joined #commonlisp
ym has quit [Ping timeout: 265 seconds]
dnhester_ has joined #commonlisp
dnhester26 has quit [Ping timeout: 252 seconds]
shka has quit [Ping timeout: 265 seconds]
henriquegogo has quit [Ping timeout: 260 seconds]
mgl_ has joined #commonlisp
amb007 has quit [Ping timeout: 276 seconds]
henriquegogo has joined #commonlisp
<dnhester_>
Thanks everyone bike danieli Shinmera . I deleted all the effective slot definitions I made, it was a mistake as you all pointed out. Turns out I had already coded this a few months ago and it ended up being getting all the direct slots for a class and doing a search over it's superclasses to get their direct slots is what I needed to do for my specific need
<bike>
well. i've never used an ORM and now i think that may be for the best
henriquegogo has quit [Ping timeout: 260 seconds]
Everythi1g has quit [Quit: leaving]
alternateved has quit [Remote host closed the connection]
mishoo has quit [Remote host closed the connection]
troojg has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
contrapunctus has joined #commonlisp
henriquegogo has joined #commonlisp
<dnhester_>
hm, well I'm really extending the ORM, not as a user but as a developer, so I'm not sure how that's a fair statement. Also, just because I'm a newbie doesn't mean that you would have any of the difficulties that I'm having
<bike>
if it makes you gather direct slots from parent classes something has gone wrong
<dnhester_>
I just needed the standard slot definition class for all the class-slots
contrapunctus has left #commonlisp [#commonlisp]
Shinmera has quit [Read error: Connection reset by peer]
<ixelp>
mito/src/core/class/table.lisp at master · fukamachi/mito · GitHub
<dnhester_>
What should I do then? When I get the class-slots they don't have all the information I need because the classes are not the classes of the slots I defined, so they are missing the slots I need to query
<bike>
on L206 it's checking through superclasses for direct slots. i don't know all the details of how this works, but it seems inappropriate to have to do that. that information should be in the effective slots.
<bike>
it doesn't seem to be in mito, and of course that's hardly you're doing.
<bike>
your
varjagg is now known as erjag
<dnhester_>
I basically have a class (defclass c1 ((name :validation-function (lambda (x) ... ))(:metaclass mymm)). So when I get the obj, I want to get the slots, and do (funcall (validation-function (slot-value obj 'name))
<dnhester_>
But the effective slot is of a class sb-mop:effective slot or something like that, so I don't know how I can access the validation-function
<dnhester_>
That's all I needed
alcor has quit [Remote host closed the connection]
<dnhester_>
Do you know how to do that with the effective slot?
<erjag>
*sigh* multiple values handling is so ugly in so many different ways
Shinmera- is now known as Shinmera
<bike>
dnhester_: you should compute the effective slot definition in such a way that the validation function from the direct slots is carried over to the effective slot.
<dnhester_>
When I did (inspect) in sly the validation-function wasn't there in the effective slot
<bike>
dnhester_: this lets you define things like what happens if a subclass gives a different :validation-function for the same slot
<bike>
dnhester_: yeah, you have to put it in yourself (and the interface for this is admittedly a little bad). let me dig up an example
<dnhester_>
bike: thanks for that. How can I do that?
<ixelp>
common-lisp-jupyter/src/widgets/traits.lisp at 3555a009f6d8734751bda1feadc8a09e7b0099b6 · yitzchak/common-lisp-jupyter · [...]
<dnhester_>
I would like to use the subclass's validation-function instead
<bike>
in this case it just gets the trait-type from the most recent direct slot
<dnhester_>
thanks, reading it now
mgl_ has quit [Ping timeout: 252 seconds]
contrapunctus has joined #commonlisp
kevingal has quit [Ping timeout: 272 seconds]
<dnhester_>
bike: I'm trying to do per the example and I'm getting an error where 2 arguments are passed to the function. Do you know why? https://plaster.tymoon.eu/view/4635#4635
<dnhester_>
thanks so much for the help
<dnhester_>
with the example
eddof13 has joined #commonlisp
<dnhester_>
ah take it back, it was the setf, sorry, my bad, missed the message because it didn't just say setf, got confused