dipper_ has quit [Remote host closed the connection]
<mfiano>
Can you see what the warning changes to if you return NIL or (VALUES) instead of NEW-VALUE?
jon_atack has quit [Ping timeout: 248 seconds]
<mfiano>
or CONS for that matter
<mfiano>
I don't think it is upset about the return value, but I would like to make sure first.
jon_atack has joined #commonlisp
<mfiano>
Oh it included source information. Nevermind.
<mfiano>
I am not seeing anything, for whatever that's worth.
<beach>
You mean, you are not seeing anything wrong with the code?
<beach>
If so, thanks for looking!
msavoritias has joined #commonlisp
ahc has joined #commonlisp
<beach>
Now, CLtL2 is freely available, but what are we allowed to do with the material? I am asking because it could be an excellent starting point for a language reference.
<saturn2>
beach: i think you wrote (list) when you meant list in the last line of cadr*
<beach>
Oh, right you are! Thank you!
rgherdt has joined #commonlisp
asarch has quit [Ping timeout: 256 seconds]
perrierjouet has quit [Quit: WeeChat 3.8]
perrierjouet has joined #commonlisp
<prokhor>
phoe: ping
azimut has quit [Ping timeout: 255 seconds]
X-Scale has quit [Ping timeout: 260 seconds]
Gleefre has joined #commonlisp
pve has joined #commonlisp
Nilby has joined #commonlisp
cage has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Noisytoot has quit [Ping timeout: 255 seconds]
Noisytoot has joined #commonlisp
epony has quit [Remote host closed the connection]
kenran has joined #commonlisp
morganw has joined #commonlisp
random-nick has joined #commonlisp
Gleefre has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
rgherdt has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
kenran has quit [Remote host closed the connection]
<ixelp>
CLHS: Function SUBST, SUBST-IF, SUBST-IF-NOT...
<beach>
That page suggests that NSUBST only replaces leaves of the tree.
<beach>
A case for WSCL it seems.
jmdaemon has quit [Ping timeout: 252 seconds]
rgherdt_ is now known as rgherdt
jon_atack has quit [Ping timeout: 252 seconds]
pfdietz has joined #commonlisp
pjb has joined #commonlisp
Gleefre has joined #commonlisp
tyson2 has joined #commonlisp
Gleefre has quit [Ping timeout: 260 seconds]
epony has joined #commonlisp
azimut has joined #commonlisp
jeffrey has joined #commonlisp
X-Scale has joined #commonlisp
jon_atack has joined #commonlisp
tibfulv has quit [Remote host closed the connection]
McParen has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
jon_atack has quit [Quit: WeeChat 3.8]
igemnace has joined #commonlisp
epony has quit [Remote host closed the connection]
epony has joined #commonlisp
rgherdt_ has joined #commonlisp
<prxq>
Hi, I have an event queue, that passes events to lisp code (it's a telegram bot). When there's a bug, I'd like to have a restart for retrying the event / message. How does one do that?
rgherdt has quit [Remote host closed the connection]
jonatack has joined #commonlisp
epony has quit [Remote host closed the connection]
<Bike>
prxq: use restart-case in a loop, probably
<prxq>
ah thanks
tyson2 has quit [Remote host closed the connection]
<jcowan>
beach: You are not allowed to do anything with CLtL2 except the usual right to view it privately.
<jcowan>
The copyright page is visible on Amazon and makes it clear that all rights are reserved (note that just saying "All Rights Reserved" doesn't do this, and in fact is pointless boilerplate)
lucasta has joined #commonlisp
<jcowan>
"No part of this publication may be reproduced, stored in a retrieval systems, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher."
<jcowan>
Of course the usual U.S. fair-use exemptions (which are fairly generous) apply.
<edwlan[m]>
I wonder if there’s some way to work around that, given the recent ruling that the outputs of models like ChatGPT aren’t copyrightable
<edwlan[m]>
Some prompt such that the output isn’t considered a derivative, but it’s substantially the same content
tyson2 has joined #commonlisp
haoms has joined #commonlisp
haoms has left #commonlisp [#commonlisp]
mingus has joined #commonlisp
_yella_ has joined #commonlisp
<beach>
jcowan: I see. Thanks!
<jcowan>
edwlan[m]: Prisons are full of people who found "some way to work around that".
<gilberth>
After all, I consider CLtL2 to be very well written and thought that some cross-reference from dpANS to CLtL2 would be useful.
<pfdietz>
Output of a model not being copyrightable doesn't mean the output isn't copyrighted. It could infringe on someone else's copyright. Filtering it through a LLM doesn't necessarily cleanse it.
Sauvin has quit [Read error: Connection reset by peer]
Sauvin has joined #commonlisp
Gleefre has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
jeosol has joined #commonlisp
<jcowan>
The output can't infringe on someone else's copyright unless (a) that copyrighted material was an input and (b) the output actually infringes (and the tests for "infringement" depend on the jurisdiction.
<jcowan>
gilberth: I don't think it's likely you'll get in trouble for providing the HTML-ized CLtL2 verbatim: there are already several well-known copies of it besides CMU's.
<jcowan>
IANAL, TINLA
<gilberth>
Well, mine would be a new HTML conversion.
<jcowan>
From what source?
<gilberth>
From the LaTeX that is available.
<jcowan>
pfdietz: The fact that two documents are identical doesn't mean either infringes the other necessarily. There has to be a causal connection between them.
<gilberth>
So it won't be a verbatim copy of the HTML that already is out there.
Krystof has joined #commonlisp
<jcowan>
But it would infringe the LaTeX version because it is the result of a mechanical transformation of it. So the question would be, is it fair use.
igemnace has quit [Remote host closed the connection]
tyson2 has quit [Remote host closed the connection]
pvb has quit [Quit: WeeChat 2.8]
<jcowan>
In US law, there are four factors that, when balanced against each other, guide courts in deciding what is fair use. Three favor you; "amount and substantiality" is against you, since you want to copy the whole book.
<jackdaniel>
if you are poor then you are filthy thief, otherwise you are a brave visionaire - that's my impression of the balancing thing
<jackdaniel>
s/poor/small/
zabow has joined #commonlisp
<Bike>
i was going to suggest writing the publisher for permission, but it looks like butterworth-heinemann is an imprint of elsevier now, so i'm even less optimistic than i started
dcb has joined #commonlisp
<masinter>
I'm not worrying about CLHS copyright
<masinter>
KMP used my words without permission
<jackdaniel>
clhs is based on dpans which is permissive
<Bike>
i meant in relation to cltl, which i thought was what people were talking about
<jackdaniel>
the copyright is about this particular (clhs) transformation, not the content
<jackdaniel>
Bike: you were right (I think)
<masinter>
sorry i was jumping in without reading all the backlog
_yella_ has quit [Read error: Connection timed out]
Gleefre has joined #commonlisp
waleee has joined #commonlisp
yella has joined #commonlisp
paul0 has quit [Read error: Connection reset by peer]
yella has quit [Max SendQ exceeded]
yella has joined #commonlisp
paul0 has joined #commonlisp
yella has quit [Max SendQ exceeded]
zabow has quit [Ping timeout: 260 seconds]
occ has quit [Ping timeout: 260 seconds]
occ has joined #commonlisp
tyson2 has joined #commonlisp
Gleefre has quit [Ping timeout: 260 seconds]
Gleefre has joined #commonlisp
<gendl__>
Hi, in atomics, it says on implementations (such as CCL) which do not have an atomic-push or atomic-pop operation, "a fallback based on CAS is available for usage" -- does anyone know how that works?
<Bike>
atomic-push = (let ((new (cons element nil))) (loop (let ((old READ-PLACE)) (setf (cdr new) old) (when (cas PLACE old new) (return new))))
<ixelp>
atomics/atomics.lisp at master · Shinmera/atomics · GitHub
<gendl__>
pjb: how does with-lock-held prevent other code interleaving which is not bound by that *atomic-lock*
<gendl__>
Bike: Thanks. I must be working with an outdated version of atomics - mine does not seem to have atomic-push or atomic-pop on CCL. I thought that was just because of the platform I'm on.
<Bike>
they appear to have been added in the most recent commit - though that was two years ago. maybe your quicklisp dist needs an update?
<gendl__>
but i think it's my version of atomics is too old
<gendl__>
yes i'm just on the verge of an update
<Bike>
hum, these macros don't proces subforms very well, but i guess without some implementation support for cas there's not much to be done on that front
Gleefre has quit [Ping timeout: 260 seconds]
<pjb>
gendl__: how does atomic-incf prevents you to use incf? or atomic-push to use push?
<pjb>
gendl__: that said, you may wrap your data in objects and use methods to control access…
<pjb>
Or hide them in closures.
dcb has quit [Quit: MSN Messenger v2.16.1]
kenran has quit [Remote host closed the connection]