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/>
Inline has quit [Ping timeout: 255 seconds]
b00p has joined #commonlisp
Noisytoot has quit [Changing host]
Noisytoot has joined #commonlisp
alcor has quit [Ping timeout: 256 seconds]
b00p has quit [Quit: b00p]
kevingal has quit [Ping timeout: 256 seconds]
varjag has quit [Ping timeout: 255 seconds]
semz has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
Riviera has quit [Quit: leaving]
rtypo has quit [Ping timeout: 272 seconds]
semz has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 260 seconds]
asarch has quit [Quit: Leaving]
ym has quit [Ping timeout: 268 seconds]
Noisytoot is now known as Noisymeow
waleee has quit [Ping timeout: 268 seconds]
ebrasca has quit [Ping timeout: 255 seconds]
drakonis has quit [Changing host]
drakonis has joined #commonlisp
b00p has joined #commonlisp
josrr has quit [Remote host closed the connection]
johnjaye has quit [Ping timeout: 260 seconds]
johnjaye has joined #commonlisp
bilegeek has joined #commonlisp
johnjaye has quit [Ping timeout: 256 seconds]
johnjaye has joined #commonlisp
lucasta has quit [Quit: Leaving]
nij- has joined #commonlisp
igemnace has joined #commonlisp
X-Scale has quit [Quit: Client closed]
X-Scale has joined #commonlisp
b00p has quit [Quit: b00p]
nij- has quit [Ping timeout: 260 seconds]
fererrorocher has quit [Quit: WeeChat 4.2.1]
msv has quit [Remote host closed the connection]
msv has joined #commonlisp
bjorkintosh has quit [Remote host closed the connection]
bjorkintosh has joined #commonlisp
nij- has joined #commonlisp
decweb has quit [Ping timeout: 256 seconds]
msv has quit [Ping timeout: 264 seconds]
brokkoli_origin has quit [Ping timeout: 268 seconds]
triffid has quit [Ping timeout: 260 seconds]
nij- has quit [Ping timeout: 268 seconds]
brokkoli_origin has joined #commonlisp
mehbark has quit [Ping timeout: 268 seconds]
triffid has joined #commonlisp
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
zetef has joined #commonlisp
msv has joined #commonlisp
msv has quit [Remote host closed the connection]
msv has joined #commonlisp
amb007 has joined #commonlisp
chomwitt has joined #commonlisp
amb007 has quit [Ping timeout: 272 seconds]
istewart has quit [Quit: Konversation terminated!]
pranav has joined #commonlisp
amb007 has joined #commonlisp
chomwitt has quit [Ping timeout: 272 seconds]
raynei has joined #commonlisp
donleo has joined #commonlisp
holycow has quit [Quit: Lost terminal]
synchromesh has quit [Read error: Connection reset by peer]
msavoritias has joined #commonlisp
synchromesh has joined #commonlisp
wacki has joined #commonlisp
chomwitt has joined #commonlisp
pve has joined #commonlisp
varjag has joined #commonlisp
dino_tutter has joined #commonlisp
alcor has joined #commonlisp
chsasank9 has joined #commonlisp
chsasank has quit [Ping timeout: 255 seconds]
chsasank has joined #commonlisp
chsasank9 has quit [Ping timeout: 268 seconds]
chsasank3 has joined #commonlisp
chsasank has quit [Ping timeout: 240 seconds]
chsasank3 is now known as chsasank
haku1 has quit [Quit: WeeChat 3.6]
random-nick has joined #commonlisp
igemnace has quit [Read error: Connection reset by peer]
pranav has quit [Remote host closed the connection]
X-Scale has quit [Quit: Client closed]
chomwitt has quit [Ping timeout: 260 seconds]
random-nick has quit [Ping timeout: 256 seconds]
lagash has quit [Ping timeout: 268 seconds]
rgherdt has joined #commonlisp
igemnace has joined #commonlisp
mm007emko has quit [Ping timeout: 260 seconds]
mm007emko has joined #commonlisp
bilegeek has quit [Quit: Leaving]
shka has joined #commonlisp
zetef has quit [Ping timeout: 240 seconds]
chsasank2 has joined #commonlisp
chsasank has quit [Ping timeout: 264 seconds]
chsasank2 is now known as chsasank
scymtym has quit [Ping timeout: 256 seconds]
scymtym has joined #commonlisp
zetef has joined #commonlisp
rtypo has joined #commonlisp
even4void has quit [Ping timeout: 264 seconds]
awlygj has joined #commonlisp
minion has quit [Remote host closed the connection]
specbot has quit [Remote host closed the connection]
even4void has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
yottabyte has quit [Quit: Connection closed for inactivity]
Lord_of_Life has quit [Ping timeout: 268 seconds]
Lord_of_Life_ is now known as Lord_of_Life
lagash has joined #commonlisp
mm007emko has quit [Read error: Connection reset by peer]
mm007emko has joined #commonlisp
McParen has joined #commonlisp
chomwitt has joined #commonlisp
zetef has quit [Remote host closed the connection]
wacki has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ebrasca has joined #commonlisp
green_ has joined #commonlisp
decweb has joined #commonlisp
holycow has joined #commonlisp
mgl has joined #commonlisp
wacki has joined #commonlisp
chsasank has quit [Quit: The Lounge - https://thelounge.chat]
X-Scale has joined #commonlisp
mgl has quit [Ping timeout: 256 seconds]
flip214_ is now known as flip214
flip214 has quit [Changing host]
flip214 has joined #commonlisp
szkl has joined #commonlisp
johnjaye has quit [Ping timeout: 264 seconds]
McParen has left #commonlisp [#commonlisp]
johnjaye has joined #commonlisp
markb1 has quit [Ping timeout: 272 seconds]
markb1 has joined #commonlisp
ym has joined #commonlisp
Inline has joined #commonlisp
fererrorocher has joined #commonlisp
mehbark has joined #commonlisp
johnjaye has quit [Ping timeout: 256 seconds]
X-Scale has quit [Quit: Client closed]
johnjaye has joined #commonlisp
X-Scale has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
josrr has joined #commonlisp
waleee has joined #commonlisp
palter has quit []
tok has joined #commonlisp
random-jellyfish has joined #commonlisp
johnjaye has quit [Ping timeout: 252 seconds]
<random-jellyfish> I'm defining a class using macro inside a function and I get these warnings: caught STYLE-WARNING:
<random-jellyfish> ; Cannot find type for specializer
<random-jellyfish> ; SYSTEM-LISP::%RESUMABLE-STATE-ENV-LAMBDA-RES-13% when executing
<random-jellyfish> ; SB-PCL:SPECIALIZER-TYPE-SPECIFIER for a STANDARD-METHOD of a
<random-jellyfish> ; STANDARD-GENERIC-FUNCTION.
<random-jellyfish> is this something I should be worried about?
<random-jellyfish> the code works as intended at run time but this warning confuses me a little
<beach> I think you need to paste your function to plaster.tymoon.eu
<scymtym> the warning probably means that SBCL cannot optimize your method body as well as it could if the class that appears as a specializer was already defined at that time. since the warning is a style warning, https://sbcl.org/manual/index.html#Style-Warnings applies
<random-jellyfish> the code is pretty big, I was wondering if anyone has seen this warning before from sbcl and if it's safe to ignore it
<ixelp> SBCL 2.4.3 User Manual
<beach> That's a very strange message for that situation.
wacki has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
johnjaye has joined #commonlisp
<scymtym> i assume it would be difficult to give a more precise message since the mechanism is user-extensible: https://sbcl.org/manual/index.html#Metaobject-Protocol-Extensions
<ixelp> SBCL 2.4.3 User Manual
flip214 has quit [Ping timeout: 268 seconds]
<beach> I see.
ym has quit [Ping timeout: 268 seconds]
raynei has quit [Remote host closed the connection]
nij- has joined #commonlisp
flip214 has joined #commonlisp
<random-jellyfish> here is a paste with some of the code https://plaster.tymoon.eu/view/4208
nij- has left #commonlisp [Using Circe, the loveliest of all IRC clients]
<random-jellyfish> sorry if it's not readable
<random-jellyfish> it's part of a bigger project
<beach> random-jellyfish: scymtym seems to have given the explanation.
<beach> random-jellyfish: Do you take other remarks on that code?
<random-jellyfish> beach, sure, any feedback is welcome
<beach> random-jellyfish: Top-level comments take 3 or 4 semicolons.
<beach> random-jellyfish: Lines 9 and 10 are badly indented, probably because you have TABs in your code.
<beach> Same with line 14.
<beach> LOOP clause keywords like COLLECT should be first on a line.
<beach> There are probably TABs on several other lines.
<beach> random-jellyfish: You can tell Emacs to use only spaces for indentation.
<beach> (setq-default indent-tabs-mode nil) I think.
<beach> In your Emacs init file.
FragmentedCurve has quit [Quit: Leaving]
<random-jellyfish> beach: yes good points, it's on my TODO list to refactor the code to respect the recommended coding style, especially the part with spaces instead of tabs
<random-jellyfish> I just kept postponing because I always had new functionalities I wanted to add
<random-jellyfish> but I'll do it sooner or later
<beach> OK.
<random-jellyfish> I'm still not sure why it complains it can't find a specializer. The lambda-res class first generates the class declaration and then the method declaration: `(progn
<random-jellyfish> ,derived-class-decl
<random-jellyfish> ,resumable-init-fn
<random-jellyfish> ,resume-method
<random-jellyfish> (function ,name))))
<random-jellyfish> "The lambda-res macro first generates the ..." **
<random-jellyfish> ,derived-class-decl is expanded to a (defclass ...)
<random-jellyfish> ,resume-method is expanded to a (defmethod ...)
<beach> random-jellyfish: You need to be more careful about terminology. DEFCLASS is not a declaration. It is a definition.
<beach> But yeah, that sounds strange.
<beach> Oh, wait... Those forms are not top-level, are they?
<beach> As you pointed out, they are inside a function, right?
<random-jellyfish> yes, the progn is inside a defun-res in my example, therefore it ends up in a defmethod
johnjaye has quit [Ping timeout: 256 seconds]
<beach> Then, the compiler does not note the existence of the class name in the compilation environment, so when the compiler sees the DEFMETHOD definition, it is unaware of the class definition.
<random-jellyfish> makes sense now
ym has joined #commonlisp
<beach> Perhaps you can generate a bogus top-level DEFCLASS definition. It is OK if it is redefined later.
johnjaye has joined #commonlisp
<beach> ... in case you want to avoid the style warning.
<random-jellyfish> yeah the lambda-res macro would have to take care of that somehow
<random-jellyfish> is there a way to "move" the defclass outside of the progn or schedule it to be compiled at an earlier time?
<beach> The PROGN is not the problem.
<beach> If a PROGN is a top-level form, then the body form are also top-level forms.
<beach> The problem is that they are inside the definition of a function or method.
<beach> random-jellyfish: More terminology remarks: Common Lisp has "statements" only as part of a tagbody. Usually, an expression meant to be evaluated is referred to as a "form" and not a "statement".
<beach> So "lambda" and "yield" are usually not "statements".
<random-jellyfish> I'll remember that
<random-jellyfish> Is there a way to evaluate forms in the top level while being inside a lower level scope like inside a function or method definition?
<random-jellyfish> I could populate a global list variable with the defclass forms at :compile-toplevel and evaluate those forms one by one at :load-toplevel
<beach> It is tricky in your case. The compiler processes the DEFMETHOD form before your function/method is executed, so the class would have to be defined at compile time.
ec has quit [Remote host closed the connection]
anticomputer has quit [Remote host closed the connection]
<random-jellyfish> yeah I'd need a separate pass through the code to happen before :compile-toplevel, probably too much to ask for from sbcl and cl in general
anticomputer has joined #commonlisp
ec has joined #commonlisp
pfdietz has quit [Quit: Client closed]
fererrorocher has quit [Quit: WeeChat 4.2.1]
green_ has quit [Ping timeout: 260 seconds]
b00p has joined #commonlisp
waleee has quit [Ping timeout: 260 seconds]
nij- has joined #commonlisp
nij- has left #commonlisp [#commonlisp]
attila_lendvai has quit [Quit: Leaving]
wacki has joined #commonlisp
cage has joined #commonlisp
<cage> Hi! I think I have found a difference between bordeaux-threads version 1 and version 2
<cage> (bt:make-thread (lambda () (format t "~a" 1.0))); prints 1.0
<cage> (bt2:make-thread (lambda () (format t "~a" 1.0))); prints 1.0f0
<beach> cage: As I recall fe[nl]ix mentioned some incompatible changes.
b00p has quit [Quit: b00p]
<beach> This one seems to have something to do with how special variables are initialized.
chomwitt has quit [Ping timeout: 240 seconds]
<cage> Hi beach! regardless of the library I guess there is some kind of dynamic variable binding for the printer here, but i am not able to figure out wich one, from the hyperspec :(
<cage> beach: yes :)
yitzi has joined #commonlisp
<cage> i wonder how can i force the printer to print the 'f' in a floating point number
<cage> (format nil "~a" 1.0); => 1.0f0
* cage try to dig in the library source
<ixelp> bordeaux-threads/apiv2/api-threads.lisp at 4c3914b427706d1dec5cc5b2318e33c45f76a871 · sionescu/bordeaux-threads · GitHub
<cage> yitzi: thanks!
<beach> It seems to have to do with *READ-DEFAULT-FLOAT-FORMAT*. Perhaps it is 'SINGLE-FLOAT when the 1.0 is read, and 'DOUBLE-FLOAT when it is printed so the 1.0f0 is printed.
<cage> beach: thanks, you are right!!
<yitzi> Correct, FORMAT ~f consults *READ-DEFAULT-FLOAT-FORMAT*
<cage> beach: yitzi thank you very much!
<beach> Sure.
pfdietz has joined #commonlisp
fererrorocher has joined #commonlisp
random-jellyfish has quit [Ping timeout: 240 seconds]
pfdietz has quit [Quit: Client closed]
dlowe has joined #commonlisp
dra has joined #commonlisp
dra has joined #commonlisp
dra has quit [Changing host]
pfdietz has joined #commonlisp
ebrasca has quit [Remote host closed the connection]
igemnace has quit [Read error: Connection reset by peer]
st_aldini has joined #commonlisp
awlygj has quit [Quit: leaving]
gko has quit [Ping timeout: 260 seconds]
gko has joined #commonlisp
chomwitt has joined #commonlisp
wacki has quit [Quit: Textual IRC Client: www.textualapp.com]
varjag has quit [Ping timeout: 260 seconds]
green_ has joined #commonlisp
kevingal has joined #commonlisp
wacki has joined #commonlisp
pranav has joined #commonlisp
wacki has quit [Read error: Connection reset by peer]
msavoritias has quit [Remote host closed the connection]
wacki has joined #commonlisp
b00p has joined #commonlisp
chomwitt has quit [Ping timeout: 268 seconds]
iNomad has quit [Quit: leaving]
b00p has quit [Quit: b00p]
Krystof has joined #commonlisp
varjag has joined #commonlisp
ldb has joined #commonlisp
b00p has joined #commonlisp
alcor has quit [Remote host closed the connection]
b00p has quit [Quit: b00p]
alcor has joined #commonlisp
alcor has quit [Remote host closed the connection]
alcor has joined #commonlisp
yitzi has quit [Remote host closed the connection]
b00p has joined #commonlisp
nij- has joined #commonlisp
ldb has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
cage has quit [Ping timeout: 272 seconds]
kevingal has quit [Ping timeout: 260 seconds]
b00p has quit [Quit: b00p]
cage has joined #commonlisp
nij- has quit [Ping timeout: 268 seconds]
chomwitt has joined #commonlisp
rbcarleton has joined #commonlisp
waleee has joined #commonlisp
akoana has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 29.2]
rogersm has joined #commonlisp
bilegeek has joined #commonlisp
synchromesh has quit [Read error: Connection reset by peer]
bilegeek has quit [Client Quit]
synchromesh has joined #commonlisp
attila_lendvai has joined #commonlisp
yottabyte has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
Noisymeow has quit [Excess Flood]
Noisytoot has joined #commonlisp
attila_lendvai has quit [Quit: Leaving]
random-nick has joined #commonlisp
pve has quit [Quit: leaving]
rbcarleton has quit [Remote host closed the connection]
rbcarleton has joined #commonlisp
childlikempress has joined #commonlisp
childlikempress has quit [Changing host]
Noisytoot is now known as Noisymeow
Inline has quit [Ping timeout: 268 seconds]
tok has quit [Remote host closed the connection]
attila_lendvai has joined #commonlisp
attila_lendvai has quit [Client Quit]
attila_lendvai has joined #commonlisp
Inline has joined #commonlisp
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
attila_lendvai has quit [Remote host closed the connection]
attila_lendvai has joined #commonlisp
rogersm has quit [Quit: Leaving...]
triffid has quit [Remote host closed the connection]
rbcarleton has quit [Ping timeout: 260 seconds]
dlowe has quit [Ping timeout: 264 seconds]
rbcarleton has joined #commonlisp
puchacz has joined #commonlisp
brokkoli_origin has quit [Ping timeout: 268 seconds]
brokkoli_origin has joined #commonlisp
attila_lendvai has quit [Ping timeout: 260 seconds]
b00p has joined #commonlisp
b00p has quit [Quit: b00p]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
gorignak has joined #commonlisp
puchacz has quit [Quit: Client closed]
mgl has joined #commonlisp
wacki has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
chomwitt has quit [Ping timeout: 268 seconds]
wacki has joined #commonlisp
rbcarleton has quit [Remote host closed the connection]
alcor has quit [Remote host closed the connection]
wacki has quit [Ping timeout: 256 seconds]
amb007 has quit [Remote host closed the connection]
amb007 has joined #commonlisp
mgl has quit [Ping timeout: 252 seconds]
Krystof has quit [Ping timeout: 260 seconds]
dino_tutter has quit [Ping timeout: 268 seconds]
donleo has quit [Ping timeout: 255 seconds]
nij- has joined #commonlisp
rgherdt has quit [Quit: Leaving]
dra has quit [Remote host closed the connection]
akoana has quit [Quit: leaving]
ec_ has joined #commonlisp
ec has quit [Remote host closed the connection]
shka has quit [Ping timeout: 264 seconds]
nij- has quit [Ping timeout: 272 seconds]