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/>
rkazak has joined #commonlisp
nxtr has quit [Server closed connection]
nxtr has joined #commonlisp
rkazak has quit [Ping timeout: 245 seconds]
rkazak has joined #commonlisp
fosskers has joined #commonlisp
rkazak has quit [Ping timeout: 244 seconds]
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 245 seconds]
rtypo has quit [Ping timeout: 252 seconds]
random-nick has quit [Ping timeout: 245 seconds]
rkazak has joined #commonlisp
jon_atack has quit [Ping timeout: 248 seconds]
leeb has joined #commonlisp
gnoo has quit [Ping timeout: 252 seconds]
leeb_ has quit [Ping timeout: 244 seconds]
gnoo has joined #commonlisp
rkazak has quit [Ping timeout: 248 seconds]
gnoo has quit [Ping timeout: 244 seconds]
gnoo has joined #commonlisp
admich1 has joined #commonlisp
Ruby has quit [Quit: ZNC - https://znc.in]
Ruby has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 255 seconds]
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 244 seconds]
mange has joined #commonlisp
istewart has quit [Quit: Konversation terminated!]
Pixel_Outlaw has quit [Quit: Leaving]
arpunk has quit [Remote host closed the connection]
dieggsy has quit [Remote host closed the connection]
arpunk has joined #commonlisp
rkazak has joined #commonlisp
istewart has joined #commonlisp
_whitelogger has joined #commonlisp
decweb has quit [Quit: Konversation terminated!]
dtman34 has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 244 seconds]
admich1 has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
admich1 has joined #commonlisp
Kyuvi has quit [Quit: Client closed]
rkazak has quit [Ping timeout: 244 seconds]
admich1 has quit [Read error: Connection reset by peer]
admich1 has joined #commonlisp
gooba has quit [Read error: Connection reset by peer]
gooba has joined #commonlisp
doyougnu has quit [Ping timeout: 252 seconds]
doyougnu has joined #commonlisp
ndanilov has quit [Remote host closed the connection]
HerlockSholmes has quit [Server closed connection]
edgar-rft has joined #commonlisp
HerlockSholmes has joined #commonlisp
edgar-rft` has quit [Ping timeout: 256 seconds]
rkazak has joined #commonlisp
user has joined #commonlisp
admich1 has quit [Ping timeout: 260 seconds]
yaneko has quit [Quit: parting]
admich1 has joined #commonlisp
yaneko has joined #commonlisp
istewart has quit [Quit: Konversation terminated!]
admich1 has quit [Ping timeout: 244 seconds]
admich1 has joined #commonlisp
rkazak has quit [Ping timeout: 244 seconds]
pve has joined #commonlisp
Lycurgus has quit [Quit: alsoknownas.renjuan.org ( juan@acm.org )]
gko`` has quit [Read error: Connection reset by peer]
kurfen has joined #commonlisp
kurfen_ has joined #commonlisp
kurfen has quit [Ping timeout: 260 seconds]
rkazak has joined #commonlisp
shunter has quit [Server closed connection]
shunter has joined #commonlisp
gko has joined #commonlisp
ingeniot has joined #commonlisp
rkazak has quit [Ping timeout: 244 seconds]
pranav has quit [Remote host closed the connection]
LainIwakura has joined #commonlisp
LainIwakura has quit [Ping timeout: 250 seconds]
ingeniot has quit [Quit: ingeniot]
ingeniot has joined #commonlisp
rgherdt has joined #commonlisp
ingeniot has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
LainIwakura has joined #commonlisp
Lycurgus has joined #commonlisp
mgl has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
chomwitt has joined #commonlisp
varjag has joined #commonlisp
LainIwakura has quit [Quit: Client closed]
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
g-gundam has quit [Ping timeout: 260 seconds]
apac has joined #commonlisp
dra has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
chomwitt has quit [Ping timeout: 272 seconds]
admich1 has quit [Ping timeout: 244 seconds]
admich1 has joined #commonlisp
LainIwakura has joined #commonlisp
treflip has joined #commonlisp
Lycurgus has quit [Quit: alsoknownas.renjuan.org ( juan@acm.org )]
rkazak has quit [Ping timeout: 260 seconds]
fosskers has quit [Remote host closed the connection]
mathrick has quit [Ping timeout: 252 seconds]
ndanilov has joined #commonlisp
nytpu has quit [Ping timeout: 260 seconds]
mathrick has joined #commonlisp
nytpu has joined #commonlisp
apac has quit [Ping timeout: 244 seconds]
shka has quit [Read error: Connection reset by peer]
bpanthi977 has quit [Ping timeout: 256 seconds]
Farooq has joined #commonlisp
LainIwakura has quit [Quit: Client closed]
rkazak has joined #commonlisp
rtypo has joined #commonlisp
ndanilov has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 256 seconds]
Schnouki has quit [Server closed connection]
Schnouki has joined #commonlisp
random-nick has joined #commonlisp
g-gundam has joined #commonlisp
g-gundam has quit [Changing host]
g-gundam has joined #commonlisp
shka has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 248 seconds]
attila_lendvai_ has joined #commonlisp
ol0ck has joined #commonlisp
rkazak has joined #commonlisp
decweb has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 248 seconds]
Lord_of_Life_ is now known as Lord_of_Life
<dutchie> I have a loop inside a defun like (defun foo (arg) (loop for stuff do (setf arg (something-else)) more stuff)). is there some loop keyword I'm missing to update the arg variable? or should I just do (loop for s = stuff then (something-else))? I'd like to reuse/shadow the name but that doesn't seem to work
<beach> What you are doing should modify the parameter variable ARG. But that's often not a good idea because of what you see when you examine a backtrace.
rkazak has quit [Ping timeout: 245 seconds]
<beach> It is much better to introduce a new variable with (LET ((NEW ARG)) ...).
<beach> Oh, wait, you want it to be modified in the caller?
<dutchie> no, just within the loop
<beach> That's not possible. Common Lisp is call-by-value.
<beach> That should work then.
<dutchie> it doesn't really need to be modified (it's just an id that I increment based on the last result fetched each time)
<beach> ,(let ((arg 10)) (loop repeat 10 do (incf arg)) arg)
<ixelp> => 20
<beach> dutchie: See? It works.
<dutchie> so (loop for id = start-id then (compute-next-id response) and response = (whatever))
<dutchie> actually response = (whatever id)
<beach> Looks plausible.
<beach> But that's a totally different example from the one in your first question.
apac has joined #commonlisp
<beach> This last example gets tricky because you use RESPONSE before you introduce it, so the order of evaluation might be surprising somtime.
<beach> *sometime
<dutchie> the first attempt was (loop for response = (whatever id) do (setf id (compute-next-id response))) where ID was the parameter
<beach> That's a third example.
<beach> But that should work too, for some value of "work".
<dutchie> yeah, I was mostly wondering what the "best" way to do it is
<beach> Oh, that wasn't clear.
<beach> I would go for some variant of your second example.
<beach> I try not to modify the parameter variable.
<dutchie> right. the only annoying thing for that one is having to come up with two names for the same thing
<dutchie> but I suppose I could just (let ((id id)) (loop ...))
<beach> Yes, but again it is often not great when you examine or modify the backtrace.
<beach> And you can avoid the LET by introducing a WITH LOOP clause, if you prefer.
<beach> It might depend on how much horizontal space you have at your disposal.
<beach> You save two horizontal positions then.
<dutchie> I think it's ok to have START-ID and ID variables
<beach> Sure.
<beach> dutchie: By the way, are you new here? I don't recognize your nick.
<dutchie> yes, I am new-ish
<dutchie> more so to the channel than common lisp, but I wouldn't call myself an expert
<beach> I see. Welcome to the channel, then.
bheesham has quit [Server closed connection]
bheesham has joined #commonlisp
<dutchie> thank you!
rkazak has joined #commonlisp
chiheisen has quit [Server closed connection]
chiheisen has joined #commonlisp
lcn_ has joined #commonlisp
rtypo has quit [Ping timeout: 260 seconds]
rkazak has quit [Ping timeout: 252 seconds]
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
X-Scale has joined #commonlisp
<jackdaniel> some fallout from this channel discussions about images and operating systems: https://far.chickenkiller.com/computing/do-i-need-a-lisp-machine-comeback/
rkazak has joined #commonlisp
admich1 has quit [Ping timeout: 244 seconds]
admich1 has joined #commonlisp
<beach> Was Genera a persistent system?
<jackdaniel> I don't know (and I've only skimmed the blog post)
<beach> I suspect not. As I recall, the garbage collector was so slow that it was preferable to turn the machine off and back on again. If it were persistent, that would not work.
chomwitt has joined #commonlisp
rkazak has quit [Ping timeout: 256 seconds]
inline has quit [Quit: Leaving]
Lycurgus has joined #commonlisp
rkazak has joined #commonlisp
rkazak has quit [Ping timeout: 244 seconds]
rkazak has joined #commonlisp
mange has quit [Remote host closed the connection]
jmbr has quit [Server closed connection]
jmbr has joined #commonlisp
inline has joined #commonlisp
treflip` has joined #commonlisp
treflip has quit [Ping timeout: 244 seconds]
rkazak has quit [Ping timeout: 244 seconds]
Pixel_Outlaw has joined #commonlisp
varjag has quit [Ping timeout: 272 seconds]
rkazak has joined #commonlisp
brokkoli_origin has quit [Ping timeout: 248 seconds]
jonatack has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 255 seconds]
rkazak has quit [Ping timeout: 256 seconds]
admich1 has quit [Ping timeout: 272 seconds]
admich1 has joined #commonlisp
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 252 seconds]
zxcvz has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 260 seconds]
jonatack has joined #commonlisp
brokkoli_origin has joined #commonlisp
jon_atack has quit [Ping timeout: 260 seconds]
skeemer has joined #commonlisp
rkazak has joined #commonlisp
johnjaye has quit [Ping timeout: 252 seconds]
ndanilov has joined #commonlisp
Lycurgus has quit [Quit: alsoknownas.renjuan.org ( juan@acm.org )]
rkazak has quit [Ping timeout: 256 seconds]
zxcvz has quit [Quit: zxcvz]
spdegabrielle has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 272 seconds]
apac has quit [Quit: Konversation terminated!]
simendsjo has quit [Server closed connection]
simendsjo has joined #commonlisp
jonatack has joined #commonlisp
admich1 has quit [Read error: Connection reset by peer]
admich1 has joined #commonlisp
jon_atack has quit [Ping timeout: 252 seconds]
shwouchk has joined #commonlisp
rgherdt has quit [Ping timeout: 256 seconds]
mcoll has quit [Server closed connection]
mcoll has joined #commonlisp
phil_bb has joined #commonlisp
treflip` has quit [Ping timeout: 245 seconds]
gnoo has quit [Ping timeout: 256 seconds]
gnoo has joined #commonlisp
rgherdt has joined #commonlisp
jon_atack has joined #commonlisp
cpli has quit [Server closed connection]
cpli has joined #commonlisp
jonatack has quit [Ping timeout: 248 seconds]
lusciouslover has quit [Remote host closed the connection]
lusciouslover has joined #commonlisp
Kyuvi has joined #commonlisp
admich1 has quit [Ping timeout: 245 seconds]
admich1 has joined #commonlisp
cage has joined #commonlisp
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 255 seconds]
rgherdt has quit [Remote host closed the connection]
rgherdt has joined #commonlisp
shwouchk has quit [Quit: WeeChat 4.5.2]
shwouchk has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 260 seconds]
chomwitt has quit [Ping timeout: 272 seconds]
varjag has joined #commonlisp
ndanilov_ has joined #commonlisp
ndanilov has quit [Ping timeout: 256 seconds]
lcn_ has quit [Remote host closed the connection]
jonatack has joined #commonlisp
lcn_ has joined #commonlisp
jon_atack has quit [Ping timeout: 260 seconds]
jonatack has quit [Ping timeout: 245 seconds]
jonatack has joined #commonlisp
bpanthi977 has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
bpanthi977 has quit [Ping timeout: 256 seconds]
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 245 seconds]
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 248 seconds]
Lycurgus has joined #commonlisp
jonatack has joined #commonlisp
cmack has quit [Remote host closed the connection]
dra has joined #commonlisp
jon_atack has quit [Ping timeout: 252 seconds]
bpanthi977 has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
bpanthi977 has quit [Ping timeout: 256 seconds]
chomwitt has joined #commonlisp
TactfulCitrus has joined #commonlisp
jonatack has joined #commonlisp
jon_atack has quit [Ping timeout: 260 seconds]
mgl has quit []
rselim has quit [Server closed connection]
rselim has joined #commonlisp
pve has quit [Quit: leaving]
kishy has quit [Ping timeout: 245 seconds]
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 256 seconds]
alendvai__ has joined #commonlisp
attila_lendvai_ has quit [Ping timeout: 244 seconds]
bpanthi977 has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 252 seconds]
jonatack has joined #commonlisp
olivial has quit [Ping timeout: 276 seconds]
jon_atack has quit [Ping timeout: 255 seconds]
chomwitt has quit [Ping timeout: 260 seconds]
olivial has joined #commonlisp
mgl has joined #commonlisp
rkazak has joined #commonlisp
Lycurgus has quit [Quit: alsoknownas.renjuan.org ( juan@acm.org )]
spdegabrielle has quit [Quit: Connection closed for inactivity]
cow_2001 has quit [Quit: ✡]
cow_2001 has joined #commonlisp
apac has joined #commonlisp
mgl has quit []
ixelp has quit [Ping timeout: 252 seconds]
phil_bb has quit [*.net *.split]
X-Scale has quit [*.net *.split]
arpunk has quit [*.net *.split]
molson has quit [*.net *.split]
mala has quit [*.net *.split]
Demosthenex has quit [*.net *.split]
cross has quit [*.net *.split]
psilord has quit [*.net *.split]
dmgk has quit [*.net *.split]
ello has quit [*.net *.split]
ecraven has quit [*.net *.split]
flip214 has quit [*.net *.split]
kanuba has quit [*.net *.split]
kaskal has quit [*.net *.split]
jA_cOp has quit [*.net *.split]
phadthai has quit [*.net *.split]
etimmons has quit [*.net *.split]
mrvdb has quit [*.net *.split]
Eoco has quit [*.net *.split]
contrapunctus has quit [*.net *.split]
Fade has quit [Ping timeout: 255 seconds]
ixelp has joined #commonlisp
X-Scale has joined #commonlisp
arpunk has joined #commonlisp
mala has joined #commonlisp
molson has joined #commonlisp
Demosthenex has joined #commonlisp
cross has joined #commonlisp
dmgk has joined #commonlisp
psilord has joined #commonlisp
ello has joined #commonlisp
ecraven has joined #commonlisp
flip214 has joined #commonlisp
kanuba has joined #commonlisp
kaskal has joined #commonlisp
jA_cOp has joined #commonlisp
phadthai has joined #commonlisp
mrvdb has joined #commonlisp
etimmons has joined #commonlisp
Eoco has joined #commonlisp
contrapunctus has joined #commonlisp
jA_cOp_ has joined #commonlisp
jA_cOp has quit [Remote host closed the connection]
flip214 has quit [Ping timeout: 252 seconds]
Fade has joined #commonlisp
TactfulCitrus has quit [Ping timeout: 252 seconds]
MyNetAz has joined #commonlisp
phil_bb has joined #commonlisp
triffid has quit [Remote host closed the connection]
flip214 has joined #commonlisp
molson has quit [Write error: Connection reset by peer]
cross has quit [Max SendQ exceeded]
molson has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 30.1]
cross has joined #commonlisp
artyn has quit [Server closed connection]
artyn has joined #commonlisp
istewart has joined #commonlisp
user has quit [Ping timeout: 244 seconds]
user has joined #commonlisp
fgarcia has quit [Ping timeout: 244 seconds]
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 255 seconds]
chomwitt has joined #commonlisp
tok has quit [Server closed connection]
tok has joined #commonlisp
Kyuvi has quit [Quit: Client closed]
dieggsy has joined #commonlisp
chomwitt has quit [Ping timeout: 256 seconds]
alendvai__ has quit [Ping timeout: 244 seconds]
timmy has quit [Server closed connection]
timmy has joined #commonlisp
skeemer has quit [Ping timeout: 244 seconds]
user has quit [Ping timeout: 245 seconds]
apac has quit [Ping timeout: 255 seconds]
alendvai__ has joined #commonlisp
emacsomancer has quit [Server closed connection]
emacsomancer has joined #commonlisp
ndanilov_ has quit [Remote host closed the connection]
ndanilov has joined #commonlisp
lcn_ has quit [Remote host closed the connection]
triffid has joined #commonlisp
johnjaye has joined #commonlisp
ndanilov has quit [Remote host closed the connection]
ndanilov has joined #commonlisp
jonatack has joined #commonlisp
g-gundam has quit [Remote host closed the connection]
jon_atack has quit [Ping timeout: 244 seconds]
johuck has quit [Server closed connection]
johuck has joined #commonlisp
jmbr has quit [Ping timeout: 245 seconds]
ndanilov has quit [Remote host closed the connection]
jmbr has joined #commonlisp
Kyuvi has joined #commonlisp
rgherdt has quit [Ping timeout: 244 seconds]
greenonions has quit [Ping timeout: 245 seconds]
greenonions has joined #commonlisp
ndanilov has joined #commonlisp
zyd has quit [Ping timeout: 245 seconds]
johnjaye has quit [Ping timeout: 244 seconds]
zyd has joined #commonlisp
johnjaye has joined #commonlisp
X-Scale has quit [Ping timeout: 252 seconds]
yaneko has quit [Ping timeout: 248 seconds]
alendvai__ has quit [Ping timeout: 252 seconds]
yaneko has joined #commonlisp
X-Scale has joined #commonlisp
dra has quit [Ping timeout: 260 seconds]
loopified has quit [Server closed connection]
loopified has joined #commonlisp
jon_atack has joined #commonlisp
jonatack has quit [Ping timeout: 244 seconds]
user4 has joined #commonlisp