p_l changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | ASDF 3.3.4
efm has quit [Ping timeout: 240 seconds]
prince1 has joined #lisp
vhost- has quit [Ping timeout: 246 seconds]
iAmDecim has joined #lisp
hutchi has quit [Quit: bye!]
slyrus_ has joined #lisp
slyrus has quit [Ping timeout: 256 seconds]
jonatack_ has joined #lisp
jonatack has quit [Ping timeout: 240 seconds]
frodef has quit [Ping timeout: 260 seconds]
luni has quit [Remote host closed the connection]
clothespin_ has joined #lisp
clothespin has quit [Ping timeout: 250 seconds]
libertyprime has joined #lisp
bitmapper has quit [Ping timeout: 265 seconds]
ebzzry_ has joined #lisp
torbo has joined #lisp
jprajzne has quit [Quit: jprajzne]
space_otter has joined #lisp
cosimone_ has quit [Quit: Quit.]
yang has quit [Ping timeout: 268 seconds]
ebzzry_ has quit [Ping timeout: 250 seconds]
yang has joined #lisp
P1RATEZ has joined #lisp
luckless has quit [Read error: Connection reset by peer]
sendai_ has joined #lisp
Oladon has joined #lisp
ebzzry_ has joined #lisp
ofc has quit [Ping timeout: 272 seconds]
terpri has quit [Remote host closed the connection]
efm has joined #lisp
terpri has joined #lisp
terpri has quit [Remote host closed the connection]
ebzzry has joined #lisp
terpri has joined #lisp
ebzzry_ has quit [Ping timeout: 250 seconds]
rumbler31 has quit [Remote host closed the connection]
semz has quit [Ping timeout: 246 seconds]
atgreen has joined #lisp
semz has joined #lisp
semz has joined #lisp
semz has quit [Changing host]
torbo has quit [Ping timeout: 264 seconds]
userself has quit [Ping timeout: 240 seconds]
torbo has joined #lisp
ihals has joined #lisp
torbo has quit [Remote host closed the connection]
torbo has joined #lisp
iAmDecim has quit [Ping timeout: 265 seconds]
twelvemonkeys has quit [Ping timeout: 250 seconds]
atgreen has quit [Ping timeout: 250 seconds]
X-Scale has quit [Ping timeout: 240 seconds]
X-Scale` has joined #lisp
X-Scale` is now known as X-Scale
twelvemonkeys has joined #lisp
d4ryus1 has joined #lisp
lave has joined #lisp
Bike has quit [Quit: Lost terminal]
lave has quit [Remote host closed the connection]
d4ryus has quit [Ping timeout: 260 seconds]
per129 has joined #lisp
libertyprime has quit [Ping timeout: 256 seconds]
ebzzry has quit [Read error: Connection reset by peer]
observer42 has joined #lisp
observer4234 has joined #lisp
observer4234 has left #lisp [#lisp]
observer42 has quit [Ping timeout: 240 seconds]
glamas has joined #lisp
ihals has left #lisp [#lisp]
ih42 has joined #lisp
vhost- has joined #lisp
vhost- has quit [Changing host]
vhost- has joined #lisp
gravicappa has joined #lisp
libertyprime has joined #lisp
per129 has quit [Remote host closed the connection]
iAmDecim has joined #lisp
ih42 has quit [Quit: Leaving]
iAmDecim has quit [Ping timeout: 240 seconds]
ihals has joined #lisp
<ihals> I need some help with EVAL... How can I use variable bindings that I already have, within the *calc-input* string? (let ((form (read-from-string *calc-input*)))
<ihals> (setf *result* (eval form))))
whartung has quit [Ping timeout: 265 seconds]
ihals has left #lisp ["Leaving"]
torbo has quit [Remote host closed the connection]
ihals has joined #lisp
ihals has quit [Client Quit]
pilne has quit [Quit: Download IceChat at www.icechat.net]
libertyprime has quit [Read error: Connection reset by peer]
libertyprime has joined #lisp
rumbler31 has joined #lisp
iAmDecim has joined #lisp
pluplog has joined #lisp
Khisanth has quit [Ping timeout: 264 seconds]
rumbler31 has quit [Ping timeout: 264 seconds]
iAmDecim has quit [Ping timeout: 256 seconds]
iAmDecim has joined #lisp
Khisanth has joined #lisp
charles23 has joined #lisp
orivej has quit [Ping timeout: 240 seconds]
charles23 has quit [Quit: ERC (IRC client for Emacs 26.3)]
d4ryus2 has joined #lisp
ebzzry has joined #lisp
d4ryus1 has quit [Ping timeout: 250 seconds]
gravicappa has quit [Ping timeout: 264 seconds]
vhost- has quit [Ping timeout: 256 seconds]
P1RATEZ has quit []
_jrjsmrtn has quit [Quit: Bye !]
vlatkoB has joined #lisp
__jrjsmrtn__ has joined #lisp
<beach> Good morning everyone!
dddddd has quit [Remote host closed the connection]
ebzzry_ has joined #lisp
ebzzry has quit [Ping timeout: 250 seconds]
Sauvin has joined #lisp
Oladon has quit [Quit: Leaving.]
KDr24 has joined #lisp
charles323 has joined #lisp
KDr23 has quit [Ping timeout: 240 seconds]
charles323 has left #lisp [#lisp]
shka_ has joined #lisp
d4ryus2 is now known as d4ryus
narimiran has joined #lisp
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
shinohai has quit [Quit: ZNC 1.8.x-git-190-d3011c6e - https://znc.in]
shinohai has joined #lisp
|Pirx| has joined #lisp
|Pirx_off has quit [Ping timeout: 240 seconds]
shangul has joined #lisp
|Pirx| has quit [Ping timeout: 265 seconds]
_Ark_ has quit [Ping timeout: 256 seconds]
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
_leb has joined #lisp
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
_leb has quit []
refpga has joined #lisp
leb has joined #lisp
leb has quit [Client Quit]
zaquest has quit [Quit: Leaving]
gravicappa has joined #lisp
zaquest has joined #lisp
refpga has quit [Read error: Connection reset by peer]
refpga has joined #lisp
refpga has quit [Client Quit]
refpga has joined #lisp
ebzzry_ has quit [Remote host closed the connection]
sonologico has quit [Quit: Leaving]
ebzzry_ has joined #lisp
stepnem has quit [Read error: Connection reset by peer]
iAmDecim has quit [Ping timeout: 264 seconds]
ear-the-art has quit [Remote host closed the connection]
ear-the-art has joined #lisp
iAmDecim has joined #lisp
stepnem has joined #lisp
dale has quit [Quit: My computer has gone to sleep]
refpga has quit [Ping timeout: 264 seconds]
refpga has joined #lisp
rumbler31 has joined #lisp
random-nick has joined #lisp
rumbler31 has quit [Ping timeout: 250 seconds]
gravicappa has quit [Ping timeout: 264 seconds]
gravicappa has joined #lisp
jprajzne has joined #lisp
_whitelogger has joined #lisp
Cymew has joined #lisp
tcr has joined #lisp
refpga has quit [Read error: Connection reset by peer]
Cymew has quit [Client Quit]
Cymew has joined #lisp
refpga has joined #lisp
ljavorsk has joined #lisp
frgo has quit [Remote host closed the connection]
frgo has joined #lisp
amerlyq has joined #lisp
sendai_ has quit [Remote host closed the connection]
sendai_ has joined #lisp
frodef has joined #lisp
refpga has quit [Ping timeout: 258 seconds]
csimonpdx82 has joined #lisp
mangul has joined #lisp
sonologico has joined #lisp
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 256 seconds]
shangul has quit [Ping timeout: 265 seconds]
Lord_of_Life_ is now known as Lord_of_Life
refpga has joined #lisp
ggole has joined #lisp
lavaflow has quit [Ping timeout: 240 seconds]
ebzzry has joined #lisp
ebzzry_ has quit [Remote host closed the connection]
rumbler31 has joined #lisp
rumbler31 has quit [Ping timeout: 250 seconds]
libertyprime has quit [Ping timeout: 264 seconds]
ebzzry has quit [Remote host closed the connection]
refpga has quit [Read error: Connection reset by peer]
refpga has joined #lisp
refpga has quit [Read error: Connection reset by peer]
refpga has joined #lisp
csimonpdx82 has quit [Ping timeout: 240 seconds]
refpga has quit [Read error: Connection reset by peer]
refpga has joined #lisp
libertyprime has joined #lisp
lavaflow has joined #lisp
refpga has quit [Remote host closed the connection]
ofc has joined #lisp
SGASAU has joined #lisp
ebzzry has joined #lisp
SGASAU` has joined #lisp
vaporatorius has joined #lisp
vaporatorius has quit [Changing host]
vaporatorius has joined #lisp
Bourne has quit [Read error: Connection reset by peer]
SGASAU has quit [Ping timeout: 264 seconds]
|Pirx| has joined #lisp
jonatack_ has quit [Read error: Connection reset by peer]
heisig has joined #lisp
Bourne has joined #lisp
karlosz has quit [Quit: karlosz]
SGASAU` has quit [Remote host closed the connection]
jonatack_ has joined #lisp
karlosz has joined #lisp
karlosz has quit [Remote host closed the connection]
SGASAU` has joined #lisp
ebzzry has quit [Remote host closed the connection]
madage has quit [Remote host closed the connection]
gxt has quit [Remote host closed the connection]
cartwright has quit [Read error: Connection reset by peer]
Josh_2 has joined #lisp
gxt has joined #lisp
pluplog has quit [Remote host closed the connection]
SGASAU` has quit [Remote host closed the connection]
SGASAU` has joined #lisp
madage has joined #lisp
prince1 has quit [Ping timeout: 250 seconds]
enrio has joined #lisp
orivej has joined #lisp
space_otter has quit [Remote host closed the connection]
knicklux has joined #lisp
sonologico has quit [Quit: Leaving]
ukari has quit [Ping timeout: 256 seconds]
ljavorsk_ has joined #lisp
ukari has joined #lisp
ljavorsk has quit [Ping timeout: 240 seconds]
luni has joined #lisp
cartwright has joined #lisp
userself has joined #lisp
libertyprime has quit [Remote host closed the connection]
rumbler31 has joined #lisp
bendersteed has joined #lisp
ym has quit [Remote host closed the connection]
enrio has quit [Ping timeout: 265 seconds]
rumbler31 has quit [Ping timeout: 250 seconds]
atgreen has joined #lisp
prince1 has joined #lisp
enrio has joined #lisp
arduo has joined #lisp
prince1 has quit [Ping timeout: 264 seconds]
atgreen has quit [Quit: Leaving]
sonologico has joined #lisp
iAmDecim has quit [Ping timeout: 258 seconds]
SGASAU` has quit [Remote host closed the connection]
iAmDecim has joined #lisp
Bike has joined #lisp
SGASAU` has joined #lisp
dddddd has joined #lisp
ear-the-art has quit [Remote host closed the connection]
dilated_dinosaur has quit [Ping timeout: 256 seconds]
dilated_dinosaur has joined #lisp
peterhil has quit [Quit: Must not waste too much time here...]
EvW has joined #lisp
iAmDecim has quit [Ping timeout: 256 seconds]
iAmDecim has joined #lisp
ebzzry has joined #lisp
peterhil has joined #lisp
luni has quit [Remote host closed the connection]
ArthurStrong has joined #lisp
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
|Pirx| has quit [Ping timeout: 260 seconds]
libertyprime has joined #lisp
|Pirx| has joined #lisp
wxie has joined #lisp
EvW has quit [Ping timeout: 256 seconds]
wxie has quit [Ping timeout: 240 seconds]
iAmDecim has quit [Ping timeout: 264 seconds]
enrio has quit [Ping timeout: 264 seconds]
knicklux has quit [Remote host closed the connection]
ArthurStrong has quit [Quit: leaving]
<flip214> does someone have an example of writing a cxml-parsed dom out again?
iAmDecim has joined #lisp
gxt has quit [Ping timeout: 240 seconds]
jmercouris has joined #lisp
gxt has joined #lisp
efm has quit [Read error: Connection reset by peer]
iAmDecim has quit [Read error: Connection reset by peer]
<flip214> _death: thanks... same page but headline "Writing XML" lead me astray
jmercouris has quit [Ping timeout: 258 seconds]
SGASAU` has quit [Remote host closed the connection]
iAmDecim has joined #lisp
efm has joined #lisp
SGASAU` has joined #lisp
xkapastel has joined #lisp
userself has quit [Ping timeout: 240 seconds]
EvW1 has joined #lisp
lucasb has joined #lisp
vindarel has joined #lisp
libertyprime has quit [Quit: Lost terminal]
rumbler31 has joined #lisp
SGASAU`` has joined #lisp
SGASAU` has quit [Ping timeout: 264 seconds]
iAmDecim has quit [Ping timeout: 240 seconds]
rumbler31 has quit [Ping timeout: 256 seconds]
vindarel has quit [Remote host closed the connection]
v0|d has quit [Ping timeout: 258 seconds]
prince1 has joined #lisp
EvW1 has quit [Ping timeout: 240 seconds]
prince1 has quit [Ping timeout: 265 seconds]
semz has quit [Remote host closed the connection]
iAmDecim has joined #lisp
bitmapper has joined #lisp
ljavorsk_ has quit [Ping timeout: 250 seconds]
Josh_2 has quit [Ping timeout: 264 seconds]
cosimone has joined #lisp
cosimone has quit [Client Quit]
troydm has joined #lisp
clothespin_ has quit [Read error: Connection reset by peer]
orivej_ has joined #lisp
orivej has quit [Read error: Connection reset by peer]
Bourne has quit [Ping timeout: 264 seconds]
bkst has joined #lisp
nchamber- has joined #lisp
matijja``` has joined #lisp
nchambers has quit [Ping timeout: 240 seconds]
emma has quit [Ping timeout: 240 seconds]
zerous has quit [Ping timeout: 240 seconds]
fookara has joined #lisp
bkst_ has quit [Ping timeout: 240 seconds]
luis has quit [Ping timeout: 240 seconds]
MightyJoe has quit [Read error: Connection reset by peer]
efm_ has joined #lisp
matijja``` is now known as matijja`
matijja has quit [Read error: Connection reset by peer]
cgay has quit [Ping timeout: 240 seconds]
matijja` is now known as matijja
cgay has joined #lisp
efm has quit [Ping timeout: 264 seconds]
yang has quit [Ping timeout: 264 seconds]
yang has joined #lisp
emma has joined #lisp
emma has quit [Changing host]
emma has joined #lisp
luis has joined #lisp
cyraxjoe has joined #lisp
zerous has joined #lisp
SGASAU`` has quit [Remote host closed the connection]
SGASAU`` has joined #lisp
Bourne has joined #lisp
ebzzry has quit [Read error: Connection reset by peer]
efm_ has quit [Ping timeout: 250 seconds]
efm has joined #lisp
shka_ has quit [Quit: Konversation terminated!]
EvW has joined #lisp
fookara has quit [Remote host closed the connection]
dale_ has joined #lisp
dale_ has quit [Client Quit]
fookara has joined #lisp
dale_ has joined #lisp
dale_ is now known as dale
efm has quit [Ping timeout: 256 seconds]
Josh_2 has joined #lisp
v88m has joined #lisp
jmercouris has joined #lisp
SGASAU`` has quit [Remote host closed the connection]
SGASAU`` has joined #lisp
shka_ has joined #lisp
libertyprime has joined #lisp
iAmDecim has quit [Ping timeout: 250 seconds]
SGASAU`` has quit [Remote host closed the connection]
Cymew has quit [Quit: Konversation terminated!]
SGASAU`` has joined #lisp
shka_ has quit [Ping timeout: 250 seconds]
Cymew has joined #lisp
epony has quit [Quit: reconfig]
libertyprime has quit [Read error: Connection reset by peer]
EvW has quit [Ping timeout: 256 seconds]
mangul is now known as shangul
libertyprime has joined #lisp
userself has joined #lisp
hlavaty has joined #lisp
iAmDecim has joined #lisp
rumbler31 has joined #lisp
EvW has joined #lisp
rumbler31 has quit [Ping timeout: 264 seconds]
prince1 has joined #lisp
prince1 has quit [Ping timeout: 240 seconds]
dddddd has quit [Remote host closed the connection]
hlavaty has quit [Remote host closed the connection]
luni has joined #lisp
efm has joined #lisp
SGASAU`` has quit [Remote host closed the connection]
SGASAU`` has joined #lisp
rumbler31 has joined #lisp
SGASAU`` has quit [Remote host closed the connection]
SGASAU`` has joined #lisp
userself has quit [Quit: WeeChat 2.7.1]
Cymew has quit [Ping timeout: 265 seconds]
iAmDecim has quit [Ping timeout: 240 seconds]
hlavaty has joined #lisp
sjl_ has joined #lisp
pluplog has joined #lisp
frodef has quit [Ping timeout: 256 seconds]
makomo has joined #lisp
SGASAU`` has quit [Read error: Connection reset by peer]
SGASAU``` has joined #lisp
fookara has quit [Remote host closed the connection]
<jmercouris> controllable conditionals in an ASD to selectively load modules?
<jmercouris> I don't want to make two systems, I want to be able to specify some flag or option somewhere
<jmercouris> can you actually just put lisp in an asd?
SGASAU``` has quit [Ping timeout: 240 seconds]
<jmercouris> I remember something someone said about a year ago on this topic ,but I can't find it
<jmercouris> maybe it was two years ago...
<dlowe> I think the answer is yes but it makes it annoying to analyze
<dlowe> so please don't if you can help it
<jmercouris> OK
<jmercouris> I'll think about how to re-order my dependencies somehow then
<dlowe> that'd be an interesting capability within asdf
<dlowe> asdf:*features* :)
<dlowe> some conditional flag that does a build thing
<dlowe> analyzers could take both branches
<dlowe> (which would still be annoying but not as annoying as evaluated lisp code)
<jmercouris> that's what I had in mind asdf:*features*
bitmapper has quit []
frodef has joined #lisp
<Bike> you could j ust have a regular feature and then use if-feature
iAmDecim has joined #lisp
<p_l> there was also at one time "ASDF-system-connections" that provided conditionals based on presence of other ASDF systems
jonatack_ has quit [Quit: jonatack_]
jonatack has joined #lisp
iAmDecim has quit [Ping timeout: 258 seconds]
makomo_ has joined #lisp
fookara has joined #lisp
cartwright has quit [Remote host closed the connection]
cartwright has joined #lisp
makomo has quit [Ping timeout: 264 seconds]
adam1 has joined #lisp
libertyprime has quit [Read error: Connection reset by peer]
adam1 has quit [Client Quit]
adam_ has joined #lisp
adam_ has left #lisp [#lisp]
fookara has left #lisp ["ERC (IRC client for Emacs 28.0.50)"]
jmercouris has quit [Remote host closed the connection]
bitmapper has joined #lisp
vhost- has joined #lisp
vhost- has quit [Changing host]
vhost- has joined #lisp
fookara has joined #lisp
epony has joined #lisp
even4void has joined #lisp
prince1 has joined #lisp
sammich_ has joined #lisp
sammich_ has quit [Client Quit]
even4void has quit [Quit: Textual IRC Client: www.textualapp.com]
even4void has joined #lisp
prince1 has quit [Ping timeout: 240 seconds]
terpri has quit [Ping timeout: 256 seconds]
even4void has quit [Client Quit]
sammich_ has joined #lisp
theBlackDragon has quit [Ping timeout: 264 seconds]
theBlackDragon has joined #lisp
sammich_ has quit [Remote host closed the connection]
even4void has joined #lisp
even4void has quit [Client Quit]
EvW has quit [Ping timeout: 240 seconds]
fookara has quit [Remote host closed the connection]
theBlackDragon has quit [Ping timeout: 256 seconds]
theBlackDragon has joined #lisp
frodef has quit [Read error: Connection reset by peer]
ear-the-art has joined #lisp
Sauvin has quit [Read error: Connection reset by peer]
iAmDecim has joined #lisp
sonologico has quit [Quit: Leaving]
iAmDecim has quit [Ping timeout: 264 seconds]
bilb_ono has joined #lisp
tcr has quit [Ping timeout: 256 seconds]
shangul has quit [Ping timeout: 260 seconds]
ramus has quit [Ping timeout: 264 seconds]
ramus has joined #lisp
<jcowan> Does SBCL provide a compact format for (vector boolean), or is it better to use (vector bit) and a few shim macros?
ofc has quit [Ping timeout: 272 seconds]
<sjl_> (upgraded-array-element-type 'boolean) ;=> T
ggole has quit [Quit: Leaving]
<sjl_> looks like it does not
<beach> It's a good idea, though.
ukari has quit [Remote host closed the connection]
ukari has joined #lisp
Necktwi has quit [Ping timeout: 246 seconds]
CrazyPython has joined #lisp
oxum has joined #lisp
sonologico has joined #lisp
<pjb> beach: it would only help newbies.
rippa has joined #lisp
ear-the-art has quit [Read error: Connection reset by peer]
ear-the-art has joined #lisp
EvW has joined #lisp
CrazyPython has quit [Read error: Connection reset by peer]
<Bike> i was going to say that might trip the u-a-e-t rules but i guess it's "okay" as long as you have nil arrays
Necktwi has joined #lisp
<Josh_2> I do love it when I'm typing a question to ask for help on a problem I've had for the last hour and I figure it out :P
Codaraxis has joined #lisp
<aeth> And shouldn't they work because they're "immutable"? In the sense that you can't unintern them, etc.. Sure, you can symbol plist them or whatever.
<hjudt_> a question about :around methods: i use an around method to track the time a method takes. in this around method, i do not use the multiple values that the method returns. do i need to capture these multiple values and return them in the around method in this case or not?
<aeth> t will always refer to the same t, that's the important thing...
<hjudt_> just to be clear: the method i am timing is called via (call-next-method) of course
chl has joined #lisp
oxum has quit [Remote host closed the connection]
even4void has joined #lisp
<hjudt_> in the keene book (Object-Oriented Programming in Common Lisp) they say "It is customary but not required for around-methods to return the value or values of call-next-method."
even4void has quit [Client Quit]
<pjb> Bike: it's only an internal optimization. aref would still return a boolean, ie. either cl:t or cl:nil.
chl has quit [Client Quit]
<hjudt_> so is it really that customary? in my case, it is only causing more lines of code and further indentation.
<Josh_2> okay, well I didn't solve my problem :(
<pjb> Bike: and (upgraded-array-element-type 'boolean) -> boolean doesn't break any rule AFAICS.
pluplog has quit [Remote host closed the connection]
<pjb> hjudt_: it's not a more lines of code. It's whether you want to return the same value or not!
<Xach> hjudt_: it is customary in the sense that that is the typical default behavior, but returning some other value is not explicitly forbidden. some value must be returned.
<pjb> hjudt_: for example, you could have a around method weight that adds a tare to the weight returned by the main method.
<Xach> there is no other mechanism for returning a value
efm has quit [Ping timeout: 260 seconds]
<Xach> when i mean "default", i mean by choice of the programmer, not of the system
slyrus__ has joined #lisp
<Bike> like, if the method you're wrapping will always return exactly one value, you don't need to worry about it
<Bike> but maybe you should take care of it because you might change the interface later
<Bike> and then have to be like "hey, how come when i enable the profiling method my code stops working?", which is never a good bug to have
<Xach> hjudt_: (let ((start (timestamp))) (multiple-value-prog1 (call-next-method) (record-timing start))))))) maybe?
slyrus_ has quit [Ping timeout: 258 seconds]
<aeth> pjb: Afaik, a wrapper could only potentially break rules if you could unintern the symbol like (let ((foo (vector 'a 'b 'c))) (unintern 'a) foo) => #(#:A B C) because now any new 'a won't be EQ (or any form of equal) to the old 'a, now just an #:A
<aeth> But CL:T and CL:NIL are safe
<pjb> aeth: it's not a wrapper as such, since it's inside the implementation!
<aeth> pjb: well, yes, conceptually it could also just be an array storing the actual symbols themselves, even though then it would probably be 64x larger in memory
<aeth> (symbol references, I mean)
<pjb> aeth: (defun aref (array &rest indicies) (if (eq (array-element-type array) 'boolean) (if (zerop (apply (function aref) (%array-internal-bitvector array) indicies)) 'nil 't) (%internal-aref array indicies)))
<pjb> it's cl:aref if you're wondering.
<hjudt_> yes, i simply want to return the values that (call-next-method) returns. i do not want to alter or enhance the results in the around method. that is, the behaviour should not be changed, and i probably will not care what the around method does because it's only purpose is to set some times on other fields. so if i leave it as is and do not capture the multiple values, would that be ok?
<hjudt_> Xach: yes that would be a good solution probably, multiple-value-prog1.
shangul has joined #lisp
<hjudt_> a more compact one than capturing with m-v-b at least.
<Xach> hjudt_: you don't have to capture them if you return them in some other way. but the return value of the :around method is the return value of the GF. there is no other mechanism to get the "inner" value.
<pjb> hjudt_: then either call-next-method is a terminal call, or you need to save the values and return them.
<hjudt_> pjb: ok, so i _need_ to capture the values and return them. because if it was a terminal call, i could also have used a :before method.
<Xach> What is a terminal call?
prince1 has joined #lisp
ark has joined #lisp
dddddd has joined #lisp
narimiran has quit [Ping timeout: 250 seconds]
<hjudt_> Xach: I guess pjb means the call-next-method is at the end of the :around method.
<hjudt_> anyway, i tried it now with a small example, and have ascertained that i _need_ to capture the return values in the around method, otherwise the values of the :around method itself will be returned.
Ober has joined #lisp
<Bike> Yes, that's how :around works. Sorry we didn't make that clearer.
prince1 has quit [Ping timeout: 260 seconds]
dreamcompiler has joined #lisp
<Xach> hjudt_: do you consider multiple-value-prog1 to be capture?
<hjudt_> i was confused by the statement in the book that "it is customary but not required."
<Bike> I mean: how :around works is that the values of the :around method are always returned
<hjudt_> Xach: maybe capture is not the right word.
<Bike> those values could be the same as the values returned by an inner method, though, and usually are, but you have to write the :around method in such a way that that is accomplished
<hjudt_> Bike: if i think about it a bit more, it makes sense because otherwise there was no way to return other values from :around.
<Bike> right.
<hjudt_> Xach: thanks for the m-v-prog1 hint, that was really helpful.
<Bike> plus otherwise the generic function machinery itself would have to keep track of the return values, which might take consing, which would be kind of a silly reason to cons
luni has quit [Remote host closed the connection]
<hjudt_> yes and it would probably be even more difficult to get at them
iAmDecim has joined #lisp
iAmDecim has quit [Ping timeout: 264 seconds]
oxum has joined #lisp
<hjudt_> i like this elegant way of using an around method, it makes that code smaller and more easily comprehensible.
tcr has joined #lisp
arduo has quit [Ping timeout: 264 seconds]
z147 has joined #lisp
oxum has quit [Ping timeout: 256 seconds]
iAmDecim has joined #lisp
tcr has quit [Ping timeout: 250 seconds]
<flip214> hjudt_: if you use SBCL, you could also look at TRACE to get a kind-of around method... or just use (sb-profile:profile function) ;)
iAmDecim has quit [Ping timeout: 256 seconds]
gargaml has joined #lisp
bilb_ono has quit [Quit: bilb_ono]
ear-the-art has quit [Read error: Connection reset by peer]
ear-the-art has joined #lisp
<hjudt_> flip214: thanks. in my case, i really need the around method to be part of the program, not only for profiling. i track the durations an action takes and present it in the web ui. but your hint will make me read up on these sbcl features ;-)
SGASAU has joined #lisp
vlatkoB has quit [Remote host closed the connection]
cosimone has joined #lisp
william1 has joined #lisp
terpri has joined #lisp
slyrus_ has joined #lisp
pilne has joined #lisp
slyrus__ has quit [Ping timeout: 250 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cracauer has joined #lisp
frodef has joined #lisp
ukari has quit [Remote host closed the connection]
ukari has joined #lisp
oxum has joined #lisp
slyrus__ has joined #lisp
slyrus_ has quit [Ping timeout: 256 seconds]
heisig has quit [Quit: Leaving]
_whitelogger has joined #lisp
_whitelogger has joined #lisp
_whitelogger has joined #lisp
ear_the_art has joined #lisp
ear-the-art has quit [Ping timeout: 256 seconds]
makomo_ has quit [Quit: WeeChat 2.7.1]
<Josh_2> https://plaster.tymoon.eu/view/1721#1721 why does tst2 return 2?
<Josh_2> why does the λ change the functionality?
shangul has quit [Ping timeout: 256 seconds]
oxum has quit [Ping timeout: 240 seconds]
gravicappa has quit [Ping timeout: 256 seconds]
<Bike> well, because (lambda () (special-if (x 1 2))) is a function, no?
<pjb> Josh_2: tst2 doesn't return 2, it returns a closure.
<Bike> did you think that it wouldn't change the functionality? could you describe what you think lambda does?
<pjb> Josh_2: if you lie, we won't be friend long… https://termbin.com/t29s
<Josh_2> oh yes sorry
<Josh_2> my mistake xD
<Josh_2> When I funcall the λ it returns two
<pjb> and the result of tst2 itself returns 1: https://termbin.com/73l9
<Josh_2> wat
<Josh_2> returns 2 for me
<pjb> (defun tst2 () 3) #| --> tst2 |# (tst2) #| --> 3 |# See, it returns 3 for me!
<pjb> DUH
<Bike> (tst1) = (funcall (tst2)) = 1 here.
<Josh_2> hmm
<Bike> Your repl is weird. Why is it printing numbers like emacs does? Where's the NIL coming from?
<Josh_2> exactly
<Josh_2> Why am I getting a different result
<Josh_2> what did I break oof
<Bike> are you sure you haven't redefined special-if or something in the interim?
<pjb> Also, when you redefine a macro, you need to recompile and reload all the functions that use it.
<Josh_2> nope
<Josh_2> I restarted my lisp image, still getting 2
<pjb> you are not showing us the whole dribble, so we just don't believe you, liar!
<Bike> Could you show the entire session? Like the part where you define the functions and macro as well?
<pjb> We didn't saw any lisp image restarted.
<Josh_2> sure
ear_the_art is now known as ear-the-art
<ear-the-art> Bike, the NIL coming from the print, i think
<Bike> hm, i suppose, though it doesn't make any sense for it to be nil
<Josh_2> well now I'm getting 1
<Josh_2> I'm so confused
<Bike> prolly had a typo somewhere. it happens
prince1 has joined #lisp
<Josh_2> Well anyway I have another issue along the same lines https://plaster.tymoon.eu/view/1722#1722
prince1 has quit [Ping timeout: 264 seconds]
<Josh_2> The form is printed fine, but when funcalled with 2 as the argument, instead of throwing an error it returns the value of byte
bilb_ono has joined #lisp
sjl_ has quit [Ping timeout: 265 seconds]
<Josh_2> I do not understand why a condition is not signalled. in the example I sent byte is 1 not 2..
efm has joined #lisp
KDr24 has quit [Remote host closed the connection]
<pjb> Josh_2: nope, this is not the error one gets: https://termbin.com/38mq You are using an undefined operator tlet, which leads to this error!
<Josh_2> yes
<Josh_2> can just replace tlet with let and remove "integer"
KDr24 has joined #lisp
<pjb> Then, Works for me: https://termbin.com/lh29
<pjb> Josh_2: you should debug subexpressions separately.
<Josh_2> but byte is not equal to 2, why wouldn't it error?
<pjb> Josh_2: (eq byte 2) is true.
<pjb> Josh_2: only CL:NIL is false.
<pjb> Josh_2: everything else is true.
gargaml has quit [Quit: WeeChat 2.7.1]
<Josh_2> I know that, but why isn't the form being evaluated
<Josh_2> I know that (eq byte 2) is true, but why isn't (eq byte 2) being evaluated
<pjb> Why should it be?
<Josh_2> idk
<pjb> You never evaluate it.
<Josh_2> Well how do I?
<Josh_2> That's my question basically
<pjb> Ah! good.
<pjb> Well, it's not easy. You are wanting to build a form at run-time, and get it evaluated in a lexical scope. This is not possible directly in CL.
<Josh_2> ah
<pjb> CL:EVAL evaluates in the global environment, not in a lexical scope.
_jrjsmrtn has joined #lisp
<pjb> But you can keep susbtituting, because the lexical scope is known to you, at program editing time. SO you can write the code that will substitute, not with 'byte, but with the value of byte!
<pjb> and then, use eval.
<pjb> (let ((byte 2)) (eval (change-byte '(eq :byte 2) #|no quote|# byte))) #| --> t |#
<Josh_2> the value of byte is not known until the λ is funcalled
__jrjsmrtn__ has quit [Ping timeout: 256 seconds]
tutti has joined #lisp
<pjb> Then call change-byte at that time.
<Josh_2> :(
<Josh_2> didn't wanna do that
<Josh_2> but I can
<pjb> Now, if you prefer, you may generate a lambda-expression, and use eval coerce or compile to get a function.
<pjb> But it won't be a closure. you must substitute into the lambda-expression all the values you need.
<pjb> Now, since your function is named generate-<something> I would let it return the lambda-expression, and call eval, coerce or compile outside of it.
<Josh_2> hmm
<Josh_2> that could work
z147 has quit [Ping timeout: 240 seconds]
karlosz has joined #lisp
kingcons has left #lisp [#lisp]
sarna has quit [Quit: bye]
sarna has joined #lisp
|Pirx| has quit [Ping timeout: 250 seconds]
oxum has joined #lisp
bilb_ono has quit [Quit: bilb_ono]
bilb_ono has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
|Pirx| has joined #lisp
cosimone has quit [Ping timeout: 256 seconds]
xkapastel has quit [Quit: Connection closed for inactivity]
torbo has joined #lisp
slyrus__ has quit [Quit: Leaving]
oxum has quit [Ping timeout: 250 seconds]
<Josh_2> pjb: Thanks for the help :) I have it all working now!
SGASAU has quit [Remote host closed the connection]
terpri has quit [Remote host closed the connection]
terpri has joined #lisp
random-nick has quit [Ping timeout: 256 seconds]
slyrus has joined #lisp
xlei has quit [Ping timeout: 260 seconds]
tutti has quit [Ping timeout: 256 seconds]
mathrick has joined #lisp
mathrick has quit [Remote host closed the connection]
prince1 has joined #lisp
mathrick has joined #lisp