jackdaniel changed the topic of #commonlisp to: Common Lisp, the #1=(programmable . #1#) programming language | Wiki: <https://www.cliki.net> | IRC Logs: <https://irclog.tymoon.eu/libera/%23commonlisp> | Cookbook: <https://lispcookbook.github.io/cl-cookbook> | Pastebin: <https://plaster.tymoon.eu/>
Lord_of_Life has joined #commonlisp
dipper_ has joined #commonlisp
Oladon has joined #commonlisp
czy has joined #commonlisp
random-nick has quit [Ping timeout: 260 seconds]
dcb has quit [Remote host closed the connection]
dcb has joined #commonlisp
dcb has quit [Quit: MSN Messenger v2.16.1]
Oladon has quit [Quit: Leaving.]
waleee has quit [Ping timeout: 265 seconds]
NicknameJohn has quit [Ping timeout: 248 seconds]
pfdietz has quit [Quit: Client closed]
nij- has quit [Ping timeout: 276 seconds]
epony has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
dilated_dinosaur has quit [Ping timeout: 268 seconds]
X-Scale has quit [Ping timeout: 260 seconds]
dilated_dinosaur has joined #commonlisp
lucasta has quit [Remote host closed the connection]
akoana has joined #commonlisp
czy has quit [Remote host closed the connection]
NicknameJohn has joined #commonlisp
czy has joined #commonlisp
mingus has quit [Ping timeout: 248 seconds]
pfdietz has joined #commonlisp
X-Scale has joined #commonlisp
akoana has quit [Quit: leaving]
msavoritias has quit [Ping timeout: 260 seconds]
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 265 seconds]
<beach> Can someone explain this warning from SBCL: https://plaster.tymoon.eu/view/3739#3739 ?
<beach> When I remove the INLINE declaration, the warning disappears.
<beach> I guess I made some mistake, but I don't see it. Also, the message contains the name of a variable that is not very explicit.
pfdietz has quit [Quit: Client closed]
<beach> Oh, wait. Never mind. You can't reproduce it anyway. Sorry!
asarch has joined #commonlisp
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]
McParen has joined #commonlisp
rgherdt_ has joined #commonlisp
kenran has joined #commonlisp
rgherdt has quit [Ping timeout: 246 seconds]
Gleefre has quit [Ping timeout: 260 seconds]
<beach> clhs nsubst
<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> Hmm. I was pondering to offer CLtL2 along with my Nova Spec. I was just assuming it would be ok to do so because <https://www.cs.cmu.edu/Groups/AI/html/cltl/cltl2.html> exists.
<ixelp> Common Lisp the Language, 2nd Edition
<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))))
<pjb> (with-lock-held (*atomic-lock*) (push item list))
<Bike> how is that based on cas
<pjb> when with-lock-held uses CAS…
<Bike> what is the point of giving technically correct but actually incorrect answers
<Bike> also i just realized i can just link the actual source for gendl__. here's atomic pop https://github.com/Shinmera/atomics/blob/master/atomics.lisp#L112-L117
<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]
markasoftware_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
markasoftware has joined #commonlisp
Gleefre has joined #commonlisp
attila_lendvai_ has joined #commonlisp
kenran has joined #commonlisp
dcb has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 28.2]
jonatack has quit [Quit: WeeChat 3.8]
dcb has quit [Quit: MSN Messenger v2.16.1]
dcb has joined #commonlisp
dcb has quit [Remote host closed the connection]
dcb has joined #commonlisp
dcb has quit [Client Quit]
dcb has joined #commonlisp
dcb has quit [Client Quit]
dcb has joined #commonlisp
dcb has quit [Client Quit]
kenran has quit [Remote host closed the connection]
dcb has joined #commonlisp
lucasta has quit [Quit: Leaving]
morganw` has joined #commonlisp
morganw has quit [Read error: Connection reset by peer]
alendvai__ has joined #commonlisp
dcb has quit [Quit: MSN Messenger v2.16.1]
dcb has joined #commonlisp
earl-ducaine has quit [Quit: No Ping reply in 180 seconds.]
attila_lendvai_ has quit [Ping timeout: 255 seconds]
mariari has quit [Ping timeout: 248 seconds]
occ has quit [Ping timeout: 248 seconds]
mingus1 has joined #commonlisp
occ has joined #commonlisp
mariari has joined #commonlisp
mingus has quit [Ping timeout: 265 seconds]
mingus1 is now known as mingus
jmdaemon has joined #commonlisp
mariari has quit [Ping timeout: 252 seconds]
mariari has joined #commonlisp
scymtym has quit [Ping timeout: 248 seconds]
Brucio-61 has quit [Ping timeout: 255 seconds]
Brucio-61 has joined #commonlisp
robin has quit [Ping timeout: 260 seconds]
robin has joined #commonlisp
morganw` has quit [Remote host closed the connection]
rgherdt_ has quit [Remote host closed the connection]
alendvai__ has quit [Ping timeout: 255 seconds]
Gleefre has quit [Remote host closed the connection]
pve has quit [Quit: leaving]
NotThatRPG has joined #commonlisp
skin has joined #commonlisp
occ has quit [Ping timeout: 252 seconds]
euandreh has quit [Quit: euandreh]
euandreh has joined #commonlisp
euandreh has quit [Remote host closed the connection]
euandreh has joined #commonlisp
euandreh has quit [Client Quit]
skin has quit [Quit: ZNC 1.8.2 - https://znc.in]
euandreh has joined #commonlisp
skin has joined #commonlisp
jonatack has joined #commonlisp
epony has joined #commonlisp