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/>
lucasta has quit [Remote host closed the connection]
rtypo has quit [Ping timeout: 264 seconds]
veqq has joined #commonlisp
Noisytoot has quit [Excess Flood]
veqq has quit [Quit: Client closed]
Noisytoot has joined #commonlisp
lucasta has joined #commonlisp
cdegroot has joined #commonlisp
Renfield has quit [Quit: Leaving]
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 264 seconds]
jonatack has joined #commonlisp
Renfield has joined #commonlisp
random-nick has quit [Ping timeout: 264 seconds]
whiteman809 has joined #commonlisp
decweb has quit [Ping timeout: 240 seconds]
<whiteman809> is there common lisp social channel? i want ask you guys about your opinion about c++ compared to common lisp
<whiteman809> the nice thing in c++ is static typing but common lisp seems to have saner syntax for me
<aeth> #lispcafe
brokkoli_origina has joined #commonlisp
brokkoli_origin has quit [Ping timeout: 264 seconds]
josrr has quit [Remote host closed the connection]
lucasta has quit [Quit: Leaving]
<beach> jackdaniel: Impressive.
mzan has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
poselyqualityles has joined #commonlisp
theruran has quit [Quit: Connection closed for inactivity]
decweb has joined #commonlisp
decweb has quit [Ping timeout: 240 seconds]
amb007 has quit [Ping timeout: 264 seconds]
<Pixel_Outlaw> I was fizzbuzzing with circular lists. Kind of fun idea. Probably not the /best/ way to do it. But modulus is pretty boring and direct. https://i.imgur.com/rLt3pMD.png
<Pixel_Outlaw> And now I see "items" is a bad parameter name. It should be "list". OOPS
ebrasca has quit [Remote host closed the connection]
poselyqualityles has quit [Quit: Using Circe, the loveliest of all IRC clients]
shka has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 264 seconds]
istewart has quit [Quit: Konversation terminated!]
Pixel_Outlaw has quit [Quit: Leaving]
<jackdaniel> thanks
chomwitt has joined #commonlisp
_cymew_ has joined #commonlisp
brokkoli_origina has quit [Ping timeout: 260 seconds]
pve has joined #commonlisp
<beach> I can't figure out the reason for the existence of METHOD-COMBINATION-ERROR and INVALID-METHOD-ERROR. If they were condition types, I could understand it, but functions? Maybe so that they can be traced?
<jackdaniel> isn't the crux covered in "Because an implementation may need to add additional contextual information to the error message (...)" ?
<jackdaniel> i.e the implementation constructs the condition and adds additional initargs that depend on dynamically bound /internal/ variables
<jackdaniel> (or at least it may do that)
<beach> Yes, I see. That would be a reason not to have them defined as condition types.
<beach> But I still don't see the utility of the functions.
<beach> Maybe it will come to me later.
<jackdaniel> perhaps you've already investigated that, but the long form of define-method-combination metnions that invalid-method-error may be used to "perform further filtering of methods in the body forms"
<beach> I did not investigate that. Thanks for pointing it out. I'll read up.
<jackdaniel> also, assuming that the processor of define-method-combination needs to do some cleanup in the handler above that depends on the dynamic context of the definition, then calling error would not be sufficient if you want to punt from inside your own method combination definition
<beach> I'll give that some thought. Not obvious to me (yet). Thanks again.
<jackdaniel> sure
<jackdaniel> and this remark may be a bit off, because I'm always forgetting method combination details, but if I recall correctly, there is involved implementation specific step to compile the effective method at runtime; so the signaled error may need to cross the RUNTIME <> COMPILE-EMF barrier, so you the implementation may chose to handle the appropriate condition at that boundary and resignal it outside of
<jackdaniel> the compilation context
<jackdaniel> s/you the/the/
<beach> Makes sense.
chomwitt has quit [Ping timeout: 255 seconds]
Inline has quit [Ping timeout: 240 seconds]
mrcom has joined #commonlisp
mmk2410_ has quit [Quit: ZNC - https://znc.in]
mmk2410 has joined #commonlisp
neano has joined #commonlisp
Josh_2 has joined #commonlisp
amb007 has joined #commonlisp
synchromesh has quit [Read error: Connection reset by peer]
metsomedog has joined #commonlisp
alcor has joined #commonlisp
amb007 has quit [Ping timeout: 264 seconds]
synchromesh has joined #commonlisp
zetef has joined #commonlisp
chomwitt has joined #commonlisp
wacki has joined #commonlisp
mgl has joined #commonlisp
dino_tutter has joined #commonlisp
<Josh_2> Hi
danse-nr3 has joined #commonlisp
tfeb has joined #commonlisp
tfeb has quit [Client Quit]
tfeb has joined #commonlisp
msavoritias has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
<tfeb> beach: I have forgotten the details but I am reasonably certain that the CLOS *-error functions exist because the condition system did *not* reliably exist when CLOS was being designed, at least in the implementations they used. And then CLOS got dropped into the standard as a whole thing quite lat
<tfeb> e on. I can ask someone who was on the committee if I remember. Or KMP probably would know.
amb007 has joined #commonlisp
<beach> tfeb: Oh, that would make a lot of sense.
<beach> tfeb: Sure, if you know someone, that would be great! Thanks for the offer.
<tfeb> It does, but I could easily be misremembering: I was around but not involved.
rgherdt has joined #commonlisp
<beach> I see. Interesting.
tfeb has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
tfeb has joined #commonlisp
<tfeb> asked him, will come back if he replies
<beach> Thank you!
tfeb has quit [Client Quit]
donleo has joined #commonlisp
chomwitt has quit [Ping timeout: 240 seconds]
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #commonlisp
Inline has joined #commonlisp
metsomedog has quit [Remote host closed the connection]
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
metsomedog has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
<beach> That theory explains the otherwise weird phrases in the specifications of both METHOD-COMBINATION-ERROR and INVALID-METHOD-ERROR: "Whether <mumble> returns to its caller or exits via THROW is implementation dependent" that I asked about the other day.
pfdietz has quit [Quit: Client closed]
Posterdati has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
kamafam has joined #commonlisp
Posterdati has joined #commonlisp
zetef has quit [Ping timeout: 252 seconds]
rtypo has joined #commonlisp
kamafam has quit [Read error: Connection reset by peer]
kamafam1 has joined #commonlisp
kamafam1 is now known as kamafam
v88m has joined #commonlisp
Posterdati has quit [Ping timeout: 260 seconds]
<jackdaniel> it would be nice if asdf/ccl could nicely follow symlinks
v88m has quit [Read error: Connection reset by peer]
Posterdati has joined #commonlisp
danse-nr3 has quit [Remote host closed the connection]
danse-nr3 has joined #commonlisp
v88m has joined #commonlisp
JelbyFunes has joined #commonlisp
tok has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
v88m has joined #commonlisp
amb007 has quit [Ping timeout: 264 seconds]
amb007 has joined #commonlisp
pranav has quit [Remote host closed the connection]
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
brokkoli_origin has joined #commonlisp
kevingal has joined #commonlisp
zetef has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
random-nick has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 264 seconds]
Lord_of_Life_ is now known as Lord_of_Life
v88m has quit [Ping timeout: 268 seconds]
zetef has quit [Remote host closed the connection]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
danse-nr3 has quit [Ping timeout: 260 seconds]
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
yitzi has joined #commonlisp
ocra8 has joined #commonlisp
v88m has joined #commonlisp
Cymew has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
decweb has joined #commonlisp
kamafam has quit [Remote host closed the connection]
mesaoptimizer has quit [Quit: mesaoptimizer]
mesaoptimizer has joined #commonlisp
aciep has joined #commonlisp
kamafam has joined #commonlisp
attila_lendvai has joined #commonlisp
chomwitt has joined #commonlisp
kamafam has quit [Remote host closed the connection]
kamafam has joined #commonlisp
nodata has joined #commonlisp
msv has quit [Ping timeout: 252 seconds]
chomwitt has quit [Ping timeout: 240 seconds]
nodata has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.2)]
Cymew has quit [Ping timeout: 252 seconds]
Cymew has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
edgar-rft_ has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
edgar-rft has quit [Ping timeout: 240 seconds]
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
danse-nr3 has joined #commonlisp
edgar-rft_ is now known as edgar-rft
kevingal has quit [Ping timeout: 264 seconds]
pranav has joined #commonlisp
prokhor_ has quit [Remote host closed the connection]
prokhor_ has joined #commonlisp
attila_lendvai has quit [Ping timeout: 260 seconds]
josrr has joined #commonlisp
X-Scale has quit [Quit: Client closed]
JelbyFunes has quit [Quit: Client closed]
ocra8 has quit [Ping timeout: 256 seconds]
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
attila_lendvai has joined #commonlisp
NotThatRPG has quit [Ping timeout: 268 seconds]
younder has joined #commonlisp
danse-nr3 has quit [Ping timeout: 260 seconds]
bjorkint0sh has joined #commonlisp
dlowe has joined #commonlisp
gone123 has joined #commonlisp
<gone123> ello
<gone123> hello*
<beach> hello gone123.
<gone123> i am a complete beginner to common lisp but i have heard good things and would like to learn :) what book or other resources do you recommend
zetef has joined #commonlisp
<beach> gone123: It depends on whether you know programming in some other language.
<beach> If you do, Practical Common Lisp is the one that is usually recommended.
<beach> I think it is available online.
<gone123> i know a little c, rust and haskell.
<beach> That should be enough.
<beach> gone123: Also, I recommend you join #clschool. People hang out there specifically to answer questions from newbies.
<gone123> i see. thank you very much :)
<beach> Sure. Good luck!
danse-nr3 has joined #commonlisp
mrcom has quit [Quit: Leaving]
gone123 has quit [Remote host closed the connection]
gone123 has joined #commonlisp
NotThatRPG has joined #commonlisp
ocra8 has joined #commonlisp
fe[nl]ix has quit [Remote host closed the connection]
fe[nl]ix has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
yitzi has quit [Remote host closed the connection]
v88m has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
mrcom has joined #commonlisp
aciep has quit [Remote host closed the connection]
aciep has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
<pkal> gone123: I like PAIP, helped me the most
attila_lendvai has quit [Remote host closed the connection]
attila_lendvai has joined #commonlisp
brokkoli_origin has quit [Ping timeout: 260 seconds]
brokkoli_origin has joined #commonlisp
chomwitt has joined #commonlisp
attila_lendvai has quit [Ping timeout: 260 seconds]
v88m has quit [Read error: Connection reset by peer]
semarie has quit [Ping timeout: 264 seconds]
amb007 has quit [Ping timeout: 256 seconds]
amb007 has joined #commonlisp
v88m has joined #commonlisp
tok has quit [Remote host closed the connection]
v88m has quit [Read error: Connection reset by peer]
semarie has joined #commonlisp
v88m has joined #commonlisp
robin_ has joined #commonlisp
robin has quit [Ping timeout: 256 seconds]
chomwitt has quit [Ping timeout: 272 seconds]
robin__ has joined #commonlisp
robin_ has quit [Ping timeout: 240 seconds]
robin has joined #commonlisp
robin is now known as Guest3953
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robin__ has quit [Ping timeout: 240 seconds]
amb007 has quit [Ping timeout: 252 seconds]
amb007 has joined #commonlisp
chomwitt has joined #commonlisp
NotThatRPG has joined #commonlisp
NotThatRPG has quit [Client Quit]
Posterdati has quit [Ping timeout: 260 seconds]
amb007 has quit [Read error: Connection reset by peer]
chomwitt has quit [Ping timeout: 260 seconds]
NotThatRPG has joined #commonlisp
amb007 has joined #commonlisp
danse-nr3 has quit [Read error: Connection reset by peer]
danse-nr3 has joined #commonlisp
Posterdati has joined #commonlisp
psilord has quit [Ping timeout: 272 seconds]
Posterdati has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
Posterdati has joined #commonlisp
yitzi has joined #commonlisp
zetef has quit [Remote host closed the connection]
Guest3953 has quit [Quit: Leaving]
robin has joined #commonlisp
robin is now known as Guest3562
v88m has quit [Read error: Connection reset by peer]
chiselfuse has quit [Remote host closed the connection]
Guest3562 has quit [Changing host]
Guest3562 has joined #commonlisp
Guest3562 is now known as robin
chiselfuse has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
v88m has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
v88m has quit [Remote host closed the connection]
v88m has joined #commonlisp
gone123 has quit [Remote host closed the connection]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
mgl has quit [Ping timeout: 252 seconds]
amb007 has quit [Ping timeout: 264 seconds]
JelbyFunes has joined #commonlisp
amb007 has joined #commonlisp
robin_ has joined #commonlisp
danse-nr3 has quit [Ping timeout: 240 seconds]
robin__ has joined #commonlisp
robin has quit [Ping timeout: 268 seconds]
robin_ has quit [Ping timeout: 240 seconds]
jonatack has joined #commonlisp
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #commonlisp
<metsomedog> if I only want the 2nd return value of a multi-return function, is there a better way to do that than e.g. the following? (multiple-value-bind (_ present) (gethash 'k hash-table) (declare (ignore _)) (when present ...))
<bike> clhs nth-value
<ixelp> CLHS: Macro NTH-VALUE
<metsomedog> perfect, thanks!
danse-nr3 has joined #commonlisp
wacki has quit [Read error: Connection reset by peer]
wacki has joined #commonlisp
danse-nr3 has quit [Ping timeout: 240 seconds]
<metsomedog> can I collect only non-nil values with loop?
<bike> "when x collect x"
msavoritias has quit [Remote host closed the connection]
ocra8 has quit [Quit: WeeChat 4.2.2]
<metsomedog> ty, just found it in PCL
<random-nick> on sbcl 2.4.1, this form errors out during macro expansion: (loop for i in (reverse nil) by #'cdr)
<random-nick> is it a bug? (loop for i in (identity (reverse nil)) by #'cdr) is fine
kamafam has quit [Quit: kamafam]
<bike> what's the error?
<random-nick> unknown LOOP keyword: BY current LOOP context: BY #'CDR.
<random-nick> looks like some botched optimisation for me, because functions apart from REVERSE seem fine
<random-nick> to me*
<phadthai> maybe expand the macro to more closely look at it, it's possible that something is escaped that shouldn't be or the reverse
kevingal has joined #commonlisp
<yitzi> macroexpand will fail in the same way, because the error is in the expansion.
<yitzi> The error doesn't occur in ECL, Clasp, ABCL, CCL or CMUCL. It also doesn't occur in Khazern. So it's SBCL specific.
<phadthai> hmm I didn't realize that the form itself was apparently the issue... hmm I also have no error if running it under an older SBCL 1.4.16
ocra8 has joined #commonlisp
attila_lendvai has joined #commonlisp
<dbotton> Is it valid to write a macro that modifies it's arguments - i.e. (defmacro sw (o) `(when (eq ,o 5) (print "here") (setf ,o 10)))
<dbotton> this works, but is it correct behavior to assume it will
<dbotton> and by modify I mean the original variable passed in such as (dotimes (n 10) (sw n) (print n)) so that at 5 the loop would stop
<_death> it's ok to write such a macro, but you'd want to use get-setf-expansion to avoid extra evalaution of subforms, and not use eq to compare against integers, and you shouldn't change dotimes's variable
<phadthai> I find it to be a strange construct but if the goal is to alter n rather than use the new value in the scope, setf seems to be correct... o is evaluated more than once in that macro however
<dbotton> thanks!
<phadthai> and yes an implementation of dotimes could use its own internal counter
<dbotton> that was something I was curious about also, thanks
chomwitt has joined #commonlisp
aciep has quit [Remote host closed the connection]
akovalen` has quit [Remote host closed the connection]
X-Scale has joined #commonlisp
csprng has joined #commonlisp
theruran has joined #commonlisp
josrr has quit [Ping timeout: 256 seconds]
agm has joined #commonlisp
whiteman809 has left #commonlisp [WeeChat 4.2.2]
thuna` has joined #commonlisp
Cymew has quit [Ping timeout: 268 seconds]
nickiminjaj has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
makomo has quit [Quit: WeeChat 4.2.2]
robin__ is now known as robin
robin is now known as Guest8555
NotThatRPG has joined #commonlisp
Guest8555 has quit [Changing host]
Guest8555 has joined #commonlisp
Guest8555 is now known as robin
_cymew_ has quit [Ping timeout: 240 seconds]
NotThatRPG has quit [Client Quit]
amb007 has quit [Read error: Connection reset by peer]
NotThatRPG has joined #commonlisp
robin has quit [Quit: Leaving]
robin has joined #commonlisp
robin has quit [Client Quit]
amb007 has joined #commonlisp
jonatack has quit [Ping timeout: 264 seconds]
zetef has joined #commonlisp
cage has joined #commonlisp
robin has joined #commonlisp
robin has quit [Read error: Connection reset by peer]
robin has joined #commonlisp
robin has quit [Remote host closed the connection]
robin has joined #commonlisp
robin has quit [Client Quit]
pve has quit [Quit: leaving]
dlowe has quit [Ping timeout: 252 seconds]
robin has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 29.3]
yitzi has quit [Remote host closed the connection]
akoana has joined #commonlisp
agm has quit [Ping timeout: 255 seconds]
attila_lendvai has quit [Ping timeout: 264 seconds]
wacki has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
wacki has joined #commonlisp
psilord has joined #commonlisp
wacki has quit [Client Quit]
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<thuna`> Is there any scenario where (SET-MACRO-CHARACTER CHAR (GET-MACRO-CHARACTER CHAR NIL)) doesn't restore CHAR?
amb007 has quit [Ping timeout: 272 seconds]
metsomedog has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3)]
zetef has quit [Remote host closed the connection]
wacki has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
ezakimak has quit []
ezakimak has joined #commonlisp
wacki has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rgherdt has quit [Remote host closed the connection]
ocra8 has quit [Quit: WeeChat 4.2.2]
trannus_aran has joined #commonlisp
NotThatRPG has joined #commonlisp
trannus_aran has quit [Quit: Client closed]
msv has joined #commonlisp
msv has quit [Remote host closed the connection]
msv has joined #commonlisp
v88m has joined #commonlisp
dino_tutter has quit [Ping timeout: 256 seconds]
v88m has quit [Read error: Connection reset by peer]
alcor has quit [Ping timeout: 240 seconds]
tibfulv has quit [Remote host closed the connection]
chomwitt has quit [Quit: WeeChat 3.8]
tibfulv has joined #commonlisp
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 264 seconds]
fitzsim has joined #commonlisp
tibfulv_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 260 seconds]
Lord_of_Life has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
jonatack has joined #commonlisp
tibfulv has quit [Quit: Leaving]
tibfulv_ is now known as tibfulv
nickiminjaj has quit [Quit: KVIrc 5.2.2 Quasar http://www.kvirc.net/]
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
v88m has joined #commonlisp
v88m has quit [Read error: Connection reset by peer]
donleo has quit [Ping timeout: 260 seconds]
kevingal has quit [Ping timeout: 260 seconds]