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/>
JuanDaugherty has joined #commonlisp
NotThatRPG has joined #commonlisp
markb1 has quit [Ping timeout: 244 seconds]
markb1 has joined #commonlisp
JuanDaugherty has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
cow_2001 has quit [Quit: ✡]
ym has quit [Ping timeout: 265 seconds]
surabax has quit [Quit: Leaving]
markb1 has quit [Ping timeout: 268 seconds]
prokhor-zhakarov has quit [Ping timeout: 245 seconds]
cow_2001 has joined #commonlisp
markb1 has joined #commonlisp
spdegabrielle has quit [Quit: Connection closed for inactivity]
yaneko6 has joined #commonlisp
yaneko has quit [Ping timeout: 244 seconds]
yaneko6 is now known as yaneko
waleee has quit [Remote host closed the connection]
veqq has quit [Quit: veqq]
Ruby has quit [Quit: ZNC - https://znc.in]
Ruby has joined #commonlisp
puke has quit [Quit: puke]
thuna` has quit [Ping timeout: 248 seconds]
jonatack has joined #commonlisp
mange has joined #commonlisp
Pixel_Outlaw has quit [Quit: Leaving]
jonatack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
random-nick has quit [Ping timeout: 252 seconds]
Pixel_Outlaw has joined #commonlisp
Ruby has quit [Quit: ZNC - https://znc.in]
X-Scale has quit [Ping timeout: 272 seconds]
markb1 has quit [Ping timeout: 268 seconds]
usagi_mimi has quit [Ping timeout: 268 seconds]
usagi_mimi has joined #commonlisp
mosin has joined #commonlisp
vardhan has joined #commonlisp
chomwitt has joined #commonlisp
markb1 has joined #commonlisp
runxiyu has quit [Ping timeout: 272 seconds]
runxiyu has joined #commonlisp
markb1 has quit [Ping timeout: 268 seconds]
wavedepletion has joined #commonlisp
wavedepletion has quit [Client Quit]
pabs3 is now known as Guest7041
Guest7041 has quit [Killed (tantalum.libera.chat (Nickname regained by services))]
pabs3 has joined #commonlisp
puercopop has joined #commonlisp
markb1 has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
stirl2 has quit [Ping timeout: 252 seconds]
CrashTestDummy has joined #commonlisp
Ruby has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
Pixel_Outlaw has quit [Quit: Leaving]
CrashTestDummy has quit [Client Quit]
stirl has joined #commonlisp
markb1 has quit [Ping timeout: 252 seconds]
mosin has quit [Remote host closed the connection]
<fengshaun> I'm trying to understand how spinneret:with-html works, and I'm wondering why it's using *html* rather than a passed-in stream. I was just banging my head trying to figure out how to use the output of with-html vs with-html-string.
<fengshaun> how do I get the output of spinneret:with-html ?
<fengshaun> with-html-string messes up the formatting/indent
<fengshaun> (get-output-stream-string *html*) doesn't work since *html* is not an output-stream
<fengshaun> and I can't follow the source properly
triffid has quit [Remote host closed the connection]
markb1 has joined #commonlisp
triffid has joined #commonlisp
shka has joined #commonlisp
<mange> How does with-html-string mess up your formatting?
<mange> I think you can just use let to bind *html* to whatever stream you want to write the output to. with-html-string just binds *html* using with-output-to-string, which returns the resulting string.
markb1 has quit [Ping timeout: 248 seconds]
jadzi has joined #commonlisp
<fengshaun> doesn't seem to follow with-html's formatting, it's not major. I was trying to figure out the dynamic variable bindings.
<fengshaun> I think I'm understanding it now. Thanks.
vardhan has quit [Ping timeout: 252 seconds]
<JoshYoshi> Put with-html-string at the top, then with-html in any subsequent calls that are inside of with-html-string
edgar-rft` has joined #commonlisp
<JoshYoshi> For example: (with-html-string (:html (:body (page-body)))) (defun page-body () (with-html ..))
mgl has joined #commonlisp
<fengshaun> that makes sense, thanks!
<fengshaun> I was using :raw, which was likely messing things up
edgar-rft has quit [Ping timeout: 252 seconds]
<JoshYoshi> I absolutely love spinneret. I used the allegro version recently and frankly its dog doo doo in comparison
markb1 has joined #commonlisp
pve has joined #commonlisp
Posterdati has joined #commonlisp
skeemer has quit [Ping timeout: 244 seconds]
mishoo has joined #commonlisp
markb1 has quit [Ping timeout: 252 seconds]
King_julian has joined #commonlisp
markb1 has joined #commonlisp
vardhan has joined #commonlisp
Guest47 has joined #commonlisp
<fengshaun> finally understand how the binding works, needed to separate the toplevel and the recursive part
istewart has quit [Quit: Konversation terminated!]
<fengshaun> playing nice with djula's `safe` filter as well!
bpanthi977 has quit [Ping timeout: 252 seconds]
GalaxyNova has quit [Ping timeout: 268 seconds]
markb1 has quit [Ping timeout: 276 seconds]
<mgl> ASDF:TEST-SYTEM runs tests in a WITH-COMPILATION-UNIT, meaning that unhandled warnings (no NLX performed) will be reported at the end. But there are tests that check that the right kind of warning is signalled by a function and also check its return values. In this case, the warning must not be handled. Still, I would like to silence the warnings deferred to the end of the compilation unit. How?
markb1 has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 245 seconds]
Lord_of_Life_ has joined #commonlisp
Lord_of_Life_ is now known as Lord_of_Life
markb1 has quit [Ping timeout: 244 seconds]
vardhan_ has joined #commonlisp
markb1 has joined #commonlisp
cage has joined #commonlisp
vardhan has quit [Ping timeout: 252 seconds]
Guest57 has joined #commonlisp
Guest27 has joined #commonlisp
Guest27 has left #commonlisp [#commonlisp]
Guest57 has quit [Quit: Client closed]
<beach> Isn't it just warnings about undefined functions that are handled and reported at the end?
X-Scale has joined #commonlisp
<beach> I think the idea is that if you have a call to a function that is defined later in the file, the warning is not signaled at all, so warnings about undefined functions must be delayed, and perhaps not signaled.
<mgl> On SBCL, (with-compilation-unit () (subtypep nil 'junk))
<beach> What is that form meant to demonstrate?
<mgl> If evaluated, "undefined type: COMMON-LISP-USER::JUNK" warning is printed at the end of the compilation unit.
usagi_mimi has quit [Quit: WeeChat 4.5.2]
<beach> How can you tell when there is just one form in the compilation unit?
<beach> And, maybe the idea here is that the type might be defined later in the compilation unit. But I would be surprised if all warnings were delayed.
markb1 has quit [Ping timeout: 248 seconds]
<beach> Then again, maybe this aspect of the standard is not well specified.
<beach> A case for WSCL perhaps.
<mgl> I didn't want to paste the full output here, but the output starts with "; in: WITH-COMPILATION-UNIT () (SUBTYPEP NIL 'JUNK)"
<mgl> Indeed, a simple WARN is not delayed.
<jackdaniel> with compilation unit may but does not have to DEFER some warnings
<scymtym> in the context of testing warning related behavior of the compiler, wouldn't appropriate code be like (block nil (handler-bind ((warning (lambda (c) (muffle-warning) (return)))) (compile nil '(lambda () (subtypep nil 'junk))) (fail)))
<mgl> Yes, but the question still stands: how do I prevent warning that would be deferred from getting deferred without handling them?
King_julian has quit [Ping timeout: 276 seconds]
<mgl> (handler-bind ((warning #'muffle-warning)) (compile nil '(lambda () (subtypep nil 'junk)))) is silent but (with-compilation-unit () (handler-bind ((warning #'muffle-warning)) (compile nil '(lambda () (subtypep nil 'junk))))) is not.
<jackdaniel> you need to override the context
<jackdaniel> something like (wcu () (h-b (...) (wcu (:override t) ,@forms)))
<scymtym> and/or bind the standard streams to broadcast-stream instances
<scymtym> SBCL's checked-compile macro is an existing example that should be pretty close to the desired behavior
<jackdaniel> technically something else (spooky) could handle warning signals from the outside and display them by other means
markb1 has joined #commonlisp
<mgl> (handler-case (with-compilation-unit () (subtypep nil 'junk)) (warning ())) makes SBCL less wordy, but it still prints the warning as part of the summary.
<jackdaniel> did you try what I've suggested?
<mgl> Yes
<jackdaniel> it should make all warnings go away
<jackdaniel> ,(with-compilation-unit ()
<jackdaniel> (handler-bind ((warning #'muffle-warning))
<jackdaniel> (with-compilation-unit (:override t)
<jackdaniel> (compile nil '(lambda () (subtypep nil 'junk))))))
<jackdaniel> oops, sorry for paste
<jackdaniel> n.b you don't want to use handler-case, because it will break the execution at the point that the warning is signaled
<mgl> Ah, I see. This works, but it silences all warnings, some of which are informative.
<jackdaniel> you can't eat the cake and have it too. best you can do is to handle style warnings, or list particular leaf classes you are interested in (but not all warnings are specialized)
<jackdaniel> alt something like (handler-bind ((warning (lambda (c) (when (uninteresting-p c) (muffle-warning))))) ...)
<jackdaniel> and implement uninteresting-p to your liking
markb1 has quit [Ping timeout: 260 seconds]
rootnode| has quit [Quit: ZNC 1.8.2 - https://znc.in]
rootnode- has joined #commonlisp
<mgl> Thanks. I'll do that.
<mgl> Is it reasonable though for ASDF:TEST-SYSTEM to run tests in W-C-U?
<jackdaniel> my knee jerk reaction would be that things that asdf do are rarely reasonable :)
<jackdaniel> (unrelated) we say that a condition is signaled in Common Lisp (instead of an exception being thrown), but it is not a complete story. semantics are very different if we signal the condition with ERROR and with SIGNAL -- the former will invoke a debugger when there is no control transfer, while the latter will silently return
<jackdaniel> "the condition has been errored" doesn't make sense either, so I think that "throwing a condition" with ERROR would be a nice phrase to contrast it with "signaling a condition" with SIGNAL
runxiyu has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
runxiyu has joined #commonlisp
<mgl> As long as SERIOUS-CONDITIONS are only signalled with ERROR and the rest with SIGNAL there is no confusion. Or should that not always be the case?
<jackdaniel> you can signal a condition of type ERROR and you won't be placed in the debugger
chomwitt has quit [Ping timeout: 260 seconds]
<jackdaniel> i.e whether the debugger is invoked is not a function of the condition type but rather a function of the used operator
<mgl> Yes, I get that.
<jackdaniel> we can make pinky swear to always do that, but improving terminology helps to distinguish semantically different actions
<mgl> I've considered this terminology question when writing documentation (see e.g. https://github.com/melisgl/mgl-pax/ and search for "is signalled") but all the precise wording seemed to cumbersome, so I left it implicit that errors, warnings, etc are signalled appropriately.
<ixelp> GitHub - melisgl/mgl-pax: Documentation system, browser, generator.
markb1 has joined #commonlisp
<mgl> In the context of a spec, that does not cut it.
JoshYoshi has quit [Ping timeout: 245 seconds]
King_julian has joined #commonlisp
<scymtym> the spec defines the phrase "an error is signaled" in https://novaspec.org/cl/1_4_Definitions#sec_1_4_2 and mentions which signaling function is (typically) used in https://novaspec.org/cl/9_1_Condition_System_Concepts#sec_9_1_1_1 . wouldn't that work for library documentation as well?
<ixelp> 1.4 Definitions | Common Lisp Nova Spec
Posterdati has quit [Ping timeout: 265 seconds]
surabax has joined #commonlisp
szkl has joined #commonlisp
chomwitt has joined #commonlisp
\f is now known as felipedvorak
X-Scale has quit [Ping timeout: 272 seconds]
tuck has joined #commonlisp
varjag has joined #commonlisp
felipedvorak is now known as \f
ingeniot has joined #commonlisp
markb1 has quit [Ping timeout: 276 seconds]
contrapunctus has left #commonlisp [#commonlisp]
markb1 has joined #commonlisp
puercopop has quit [Ping timeout: 252 seconds]
puercopop_ has joined #commonlisp
markb1 has quit [Ping timeout: 244 seconds]
random-nick has joined #commonlisp
chomwitt has quit [Ping timeout: 268 seconds]
josrr has joined #commonlisp
usagi_mimi has joined #commonlisp
markb1 has joined #commonlisp
tuck has quit [Quit: I'll be back.]
contrapunctus has joined #commonlisp
puercopop has joined #commonlisp
puercopop_ has quit [Ping timeout: 276 seconds]
decweb has joined #commonlisp
ingeniot has quit [Ping timeout: 240 seconds]
mange has quit [Quit: Zzz...]
markb1 has quit [Ping timeout: 244 seconds]
markb1 has joined #commonlisp
Guest47 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
X-Scale has joined #commonlisp
Guest47 has joined #commonlisp
chomwitt has joined #commonlisp
cercopith has quit [Remote host closed the connection]
markb1 has quit [Ping timeout: 260 seconds]
treflip has joined #commonlisp
markb1 has joined #commonlisp
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 245 seconds]
bpanthi977 has joined #commonlisp
JuanDaugherty has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
jonatack has joined #commonlisp
markb1 has quit [Ping timeout: 268 seconds]
JuanDaugherty has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
Equill has joined #commonlisp
gorignak has quit [Quit: quit]
markb1 has joined #commonlisp
chomwitt has quit [Ping timeout: 246 seconds]
surabax_ has joined #commonlisp
surabax has quit [Ping timeout: 272 seconds]
surabax_ has quit [Quit: Leaving]
surabax has joined #commonlisp
surabax has quit [Changing host]
surabax has joined #commonlisp
markb1 has quit [Ping timeout: 252 seconds]
szkl has quit [Quit: Connection closed for inactivity]
treflip` has joined #commonlisp
treflip has quit [Ping timeout: 252 seconds]
markb1 has joined #commonlisp
X-Scale has quit [Ping timeout: 272 seconds]
Arty is now known as Artea
NotThatRPG has quit [Read error: Connection reset by peer]
usagi_mimi has quit [Quit: WeeChat 4.5.2]
NotThatRPG has joined #commonlisp
jA_cOp_ has joined #commonlisp
jA_cOp has quit [Ping timeout: 248 seconds]
markb1 has quit [Ping timeout: 252 seconds]
Guest47 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
markb1 has joined #commonlisp
Guest47 has joined #commonlisp
markb1 has quit [Ping timeout: 268 seconds]
usagi_mimi has joined #commonlisp
NotThatRPG has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonatack has quit [Ping timeout: 260 seconds]
usagi_mimi has quit [Client Quit]
treflip` has quit [Ping timeout: 248 seconds]
jonatack has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
markb1 has joined #commonlisp
c-clop8 has joined #commonlisp
c-clop has quit [Ping timeout: 252 seconds]
Guest8168 has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 245 seconds]
jon_atack has quit [Ping timeout: 244 seconds]
chomwitt has joined #commonlisp
NotThatRPG has joined #commonlisp
markb1 has quit [Ping timeout: 268 seconds]
chomwitt has quit [Ping timeout: 245 seconds]
skeemer has joined #commonlisp
gorignak has joined #commonlisp
chomwitt has joined #commonlisp
khinsen has joined #commonlisp
markb1 has joined #commonlisp
usagi_mimi has joined #commonlisp
kevingal has joined #commonlisp
chomwitt has quit [Ping timeout: 268 seconds]
GalaxyNova has joined #commonlisp
ello has quit [Ping timeout: 248 seconds]
ello_ has quit [Ping timeout: 248 seconds]
cage has quit [Quit: rcirc on GNU Emacs 30.1]
khinsen has left #commonlisp [#commonlisp]
Guest47 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
reb has joined #commonlisp
Guest47 has joined #commonlisp
vardhan__ has joined #commonlisp
jonatack has joined #commonlisp
vardhan_ has quit [Ping timeout: 248 seconds]
GalaxyNova has quit [Ping timeout: 276 seconds]
jjnkn has joined #commonlisp
triffid has quit [Remote host closed the connection]
reb has quit [Remote host closed the connection]
triffid has joined #commonlisp
reb has joined #commonlisp
NotThatRPG has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
waleee has joined #commonlisp
manwithluck has joined #commonlisp
jonatack has quit [Ping timeout: 248 seconds]
markb1 has quit [Ping timeout: 252 seconds]
Guest59 has joined #commonlisp
Guest59 has quit [Client Quit]
markb1 has joined #commonlisp
vardhan__ has quit [Ping timeout: 252 seconds]
usagi_mimi has quit [Quit: WeeChat 4.5.2]
viaken has quit [Quit: boop]
viaken has joined #commonlisp
markb1 has quit [Ping timeout: 252 seconds]
josrr has left #commonlisp [ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)]
Guest47 has quit [Ping timeout: 248 seconds]
Guest47 has joined #commonlisp
markb1 has joined #commonlisp
NotThatRPG has joined #commonlisp
Wanderer has left #commonlisp [Leaving]
markb1 has quit [Ping timeout: 252 seconds]
Guest8168 has quit [Ping timeout: 268 seconds]
GalaxyNova has joined #commonlisp
trannus_aran has joined #commonlisp
markb1 has joined #commonlisp
King_julian has quit [Ping timeout: 246 seconds]
chomwitt has joined #commonlisp
ello has joined #commonlisp
ello_ has joined #commonlisp
markb1 has quit [Ping timeout: 245 seconds]
markb1 has joined #commonlisp
mishoo has quit [Ping timeout: 252 seconds]
kevingal has quit [Ping timeout: 272 seconds]
varjagg has joined #commonlisp
remexre has quit [Ping timeout: 245 seconds]
Eoco has quit [Ping timeout: 268 seconds]
remexre has joined #commonlisp
Eoco has joined #commonlisp
Eoco has quit [Ping timeout: 244 seconds]
brokkoli_origin has quit [Ping timeout: 260 seconds]
remexre has quit [Ping timeout: 276 seconds]
brokkoli_origin has joined #commonlisp
apac has joined #commonlisp
markb1 has quit [Ping timeout: 246 seconds]
markb1 has joined #commonlisp
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
markb1 has quit [Max SendQ exceeded]
X-Scale has joined #commonlisp
markb1 has joined #commonlisp
markb1 has quit [Max SendQ exceeded]
markb1 has joined #commonlisp
spdegabrielle has joined #commonlisp
Posterdati has joined #commonlisp
markb1 has quit [Ping timeout: 252 seconds]
markb1 has joined #commonlisp
Guest47 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
jjnkn has quit [Ping timeout: 244 seconds]
mgl has quit [Ping timeout: 252 seconds]
Eoco has joined #commonlisp
remexre has joined #commonlisp
X-Scale has quit [Ping timeout: 272 seconds]
markb1 has quit [Ping timeout: 265 seconds]
cqst has quit [Ping timeout: 244 seconds]
cqst has joined #commonlisp
markb1 has joined #commonlisp
Guest4511 has joined #commonlisp
Eoco has quit [Ping timeout: 252 seconds]
remexre has quit [Ping timeout: 260 seconds]
Eoco has joined #commonlisp
gooba has quit [Remote host closed the connection]
gooba has joined #commonlisp
markb1 has quit [Ping timeout: 246 seconds]
remexre has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
remexre has quit [Ping timeout: 252 seconds]
markb1 has joined #commonlisp
Eoco has quit [Ping timeout: 272 seconds]
matt` has joined #commonlisp
remexre has joined #commonlisp
Eoco has joined #commonlisp
matt`` has joined #commonlisp
markb1 has quit [Ping timeout: 252 seconds]
X-Scale has joined #commonlisp
matt` has quit [Remote host closed the connection]
matt`` has quit [Remote host closed the connection]
remexre_ has joined #commonlisp
remexre has quit [Ping timeout: 265 seconds]
remexre_ is now known as remexre
Eoco has quit [Ping timeout: 265 seconds]
varjagg has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.2)]
Eoco has joined #commonlisp
markb1 has joined #commonlisp
contrapunctus has left #commonlisp [#commonlisp]
remexre_ has joined #commonlisp
remexre has quit [Read error: Connection reset by peer]
pve has quit [Quit: leaving]
kevingal has joined #commonlisp
remexre_ is now known as remexre
remexre has quit [Ping timeout: 252 seconds]
apac has quit [Ping timeout: 244 seconds]
istewart has joined #commonlisp
markb1 has quit [Ping timeout: 268 seconds]
markb1 has joined #commonlisp
chomwitt has quit [Ping timeout: 245 seconds]
contrapunctus has joined #commonlisp
puercopop has quit [Quit: Konversation terminated!]
Equill has quit [Ping timeout: 272 seconds]
Equill has joined #commonlisp
yitzi has joined #commonlisp
dra has quit [Ping timeout: 252 seconds]
markb1 has quit [Ping timeout: 252 seconds]
kevingal has quit [Ping timeout: 252 seconds]
kevingal has joined #commonlisp
markb1 has joined #commonlisp