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/>
akoana has joined #commonlisp
chomwitt has joined #commonlisp
yitzi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
ixelp has quit [Ping timeout: 245 seconds]
ixelp has joined #commonlisp
akoana has quit [Quit: leaving]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
random-nick has quit [Ping timeout: 276 seconds]
ixelp has quit [Ping timeout: 252 seconds]
varjag has joined #commonlisp
varjag has quit [Remote host closed the connection]
notzmv has quit [Read error: Connection reset by peer]
ixelp has joined #commonlisp
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 260 seconds]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
droideqa has joined #commonlisp
jack_rabbit has joined #commonlisp
chomwitt has quit [Ping timeout: 260 seconds]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
rtypo has quit [Ping timeout: 248 seconds]
jack_rabbit has quit [Ping timeout: 260 seconds]
pabs3 has quit [Ping timeout: 276 seconds]
toadlicker has quit [Remote host closed the connection]
toadlicker has joined #commonlisp
toadlicker has quit [Read error: Connection reset by peer]
toadlicker has joined #commonlisp
notzmv has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
ndanilov has quit [Remote host closed the connection]
ndanilov has joined #commonlisp
foretspa1sibles has quit [Ping timeout: 265 seconds]
foretspa1sibles has joined #commonlisp
notzmv has quit [Ping timeout: 245 seconds]
ndanilov has quit [Ping timeout: 260 seconds]
admich1 has quit [Ping timeout: 268 seconds]
admich1 has joined #commonlisp
jack_rabbit has joined #commonlisp
jack_rabbit has quit [Ping timeout: 272 seconds]
ndanilov has joined #commonlisp
jack_rabbit has joined #commonlisp
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 260 seconds]
jack_rabbit has quit [Ping timeout: 276 seconds]
droideqa has quit [Quit: Connection closed for inactivity]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
chomwitt has joined #commonlisp
ndanilov has quit [Remote host closed the connection]
ndanilov has joined #commonlisp
pabs3 has joined #commonlisp
dtman34 has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
jack_rabbit has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
notzmv has joined #commonlisp
edgar-rft has joined #commonlisp
ndanilov has quit [Remote host closed the connection]
ndanilov has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
edgar-rft` has quit [Ping timeout: 248 seconds]
ndanilov has quit [Ping timeout: 252 seconds]
mgl has joined #commonlisp
ndanilov has joined #commonlisp
dtman34 has joined #commonlisp
notzmv has quit [Ping timeout: 260 seconds]
pve has joined #commonlisp
notzmv has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
admich1 has quit [Read error: Connection reset by peer]
chiselfuse has quit [Ping timeout: 244 seconds]
cage has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
admich1 has joined #commonlisp
ingeniot has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
notzmv has quit [Ping timeout: 252 seconds]
istewart has quit [Quit: Konversation terminated!]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
jack_rabbit has quit [Ping timeout: 260 seconds]
ingeniot has quit [Ping timeout: 252 seconds]
ndanilov has quit [Ping timeout: 260 seconds]
veqq has quit [Ping timeout: 260 seconds]
attila_lendvai has joined #commonlisp
ndanilov has joined #commonlisp
mgl has quit []
ndanilov has quit [Remote host closed the connection]
ndanilov has joined #commonlisp
leeb_ has joined #commonlisp
leeb has quit [Ping timeout: 272 seconds]
bpanthi977 has joined #commonlisp
phantomics has quit [Ping timeout: 248 seconds]
dtman34 has joined #commonlisp
apac has joined #commonlisp
bpanthi977 has quit [Ping timeout: 245 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
phantomics has joined #commonlisp
chomwitt has quit [Ping timeout: 245 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
jack_rabbit has joined #commonlisp
rgherdt has joined #commonlisp
ndanilov has quit [Remote host closed the connection]
ndanilov has joined #commonlisp
ndanilov has quit [Ping timeout: 276 seconds]
notzmv has joined #commonlisp
ndanilov has joined #commonlisp
King_julian has quit [Ping timeout: 260 seconds]
rendar has quit [Ping timeout: 248 seconds]
King_julian has joined #commonlisp
calx-87 has joined #commonlisp
dtman34 has joined #commonlisp
jack_rabbit has quit [Ping timeout: 260 seconds]
apac has quit [Ping timeout: 245 seconds]
jack_rabbit has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
notzmv has quit [Ping timeout: 260 seconds]
dtman34 has quit [Client Quit]
dtman34 has joined #commonlisp
apac has joined #commonlisp
notzmv has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 245 seconds]
Lord_of_Life_ is now known as Lord_of_Life
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
notzmv has quit [Ping timeout: 260 seconds]
random-nick has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
wacki has joined #commonlisp
jack_rabbit has quit [Ping timeout: 248 seconds]
youthpastor has quit [Ping timeout: 245 seconds]
unlucy has quit [Ping timeout: 265 seconds]
dbotton has quit [Ping timeout: 245 seconds]
dbotton has joined #commonlisp
youthpastor has joined #commonlisp
splittist has quit [Ping timeout: 245 seconds]
unlucy has joined #commonlisp
splittist has joined #commonlisp
pkal has joined #commonlisp
rtypo has joined #commonlisp
chiselfuse has joined #commonlisp
dtman34 has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
ingeniot has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
bpanthi977 has joined #commonlisp
apac has quit [Ping timeout: 260 seconds]
bpanthi977 has quit [Ping timeout: 245 seconds]
ndanilov has quit [Remote host closed the connection]
admich1 has quit [Ping timeout: 252 seconds]
ndanilov has joined #commonlisp
yitzi has joined #commonlisp
ndanilov has quit [Ping timeout: 245 seconds]
ixelp has quit [Ping timeout: 248 seconds]
Gleefre has joined #commonlisp
dtman34 has joined #commonlisp
ixelp has joined #commonlisp
dtman34 has quit [Client Quit]
dtman34 has joined #commonlisp
notzmv has joined #commonlisp
ndanilov has joined #commonlisp
mgl has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
treflip has joined #commonlisp
King_julian has quit [Ping timeout: 260 seconds]
admich1 has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
King_julian has joined #commonlisp
pkal has quit [Ping timeout: 245 seconds]
notzmv has quit [Ping timeout: 265 seconds]
jonatack has joined #commonlisp
shka has joined #commonlisp
yitzi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
ndanilov has quit [Ping timeout: 276 seconds]
jonatack has quit [Read error: Connection reset by peer]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
zxcvz has joined #commonlisp
ndanilov has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
treflip has quit [Ping timeout: 245 seconds]
drasken has joined #commonlisp
jack_rabbit has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
jack_rabbit has quit [Remote host closed the connection]
dtman34 has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
fart_cat has quit [Read error: Connection reset by peer]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
ndanilov has quit [Ping timeout: 252 seconds]
RDMengineer has quit [Ping timeout: 276 seconds]
chomwitt has joined #commonlisp
dtman34 has joined #commonlisp
ndanilov has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
ingeniot1 has joined #commonlisp
dtman34 has joined #commonlisp
ingeniot has quit [Ping timeout: 245 seconds]
ingeniot1 is now known as ingeniot
alip has quit [Excess Flood]
Lord_of_Life has quit [Excess Flood]
ixelp has quit [Ping timeout: 245 seconds]
Lord_of_Life has joined #commonlisp
alip has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
ixelp has joined #commonlisp
gorignak has joined #commonlisp
veqq has joined #commonlisp
rkazak2 has quit [Ping timeout: 245 seconds]
dtman34 has joined #commonlisp
ndanilov has quit [Ping timeout: 276 seconds]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
ndanilov has joined #commonlisp
jonatack has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
Gleefre has quit [Ping timeout: 272 seconds]
jonatack has quit [Ping timeout: 265 seconds]
ingeniot has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
rgherdt has quit [Read error: No route to host]
rgherdt has joined #commonlisp
Gleefre has joined #commonlisp
jonatack has joined #commonlisp
dtman34 has joined #commonlisp
jonatack has quit [Ping timeout: 248 seconds]
jonatack has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
admich1 has quit [Remote host closed the connection]
admich1 has joined #commonlisp
zxcvz has quit [Remote host closed the connection]
apac has joined #commonlisp
hirez has quit [Quit: Later]
hirez has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
rgherdt has quit [Read error: Connection reset by peer]
rgherdt has joined #commonlisp
jonatack has quit [Ping timeout: 245 seconds]
jonatack has joined #commonlisp
ndanilov has quit [Ping timeout: 245 seconds]
yitzi has joined #commonlisp
lusciouslover has quit [Remote host closed the connection]
lusciouslover has joined #commonlisp
ndanilov has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
ndanilov has quit [Ping timeout: 260 seconds]
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 248 seconds]
zwr has quit [Read error: Connection reset by peer]
zwr has joined #commonlisp
rgherdt has quit [Ping timeout: 245 seconds]
schna has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 30.1]
dtman34 has joined #commonlisp
admich1 has quit [Read error: Connection reset by peer]
ndanilov has joined #commonlisp
admich1 has joined #commonlisp
ndanilov has quit [Ping timeout: 276 seconds]
admich1 has quit [Read error: Connection reset by peer]
admich1 has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
ndanilov has joined #commonlisp
lusciouslover has quit [Read error: Connection reset by peer]
lusciouslover has joined #commonlisp
rgherdt has joined #commonlisp
lusciouslover has quit [Excess Flood]
lusciouslover has joined #commonlisp
dtman34 has joined #commonlisp
pranav has quit [Remote host closed the connection]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
istewart has joined #commonlisp
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
admich1 has quit [Ping timeout: 245 seconds]
admich1 has joined #commonlisp
yitzi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
rendar has joined #commonlisp
rendar has quit [Changing host]
rendar has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
dtman34 has joined #commonlisp
Oladon has joined #commonlisp
beach` has joined #commonlisp
beach has quit [Ping timeout: 244 seconds]
brokkoli_origin has quit [Remote host closed the connection]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
attila_lendvai has quit [Ping timeout: 248 seconds]
brokkoli_origin has joined #commonlisp
ndanilov has quit [Ping timeout: 245 seconds]
ndanilov has joined #commonlisp
admich1 has quit [Ping timeout: 244 seconds]
dtman34 has joined #commonlisp
admich1 has joined #commonlisp
attila_lendvai has joined #commonlisp
drasken has left #commonlisp [#commonlisp]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
dtman34 has joined #commonlisp
gorignak has quit [Quit: quit]
gorignak has joined #commonlisp
random-jellyfish has joined #commonlisp
<random-jellyfish> I use gensym inside a macro to generate some fresh names at each macro call, but instead at each macro call I get the same outputs from gensym, is there a reason why this would happen?
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
<random-jellyfish> here's the code of the macro https://plaster.tymoon.eu/v/7BYDP005M#4885
<random-jellyfish> env-name and derived-class-name are always the same every time I run the macro
<random-jellyfish> with one mention: This happens whenever I compile them with C-c C-c inside emacs+sly
<random-jellyfish> if I copy paste the macro calls in the REPL I get different outputs from gensym
<random-jellyfish> might have something to do with compile time vs run time or something but I can't put my finger on it
<random-jellyfish> any thoughts?
<_death> what do you think (string (gensym)) should do
<random-jellyfish> convert the output of gensym to a string?
<random-jellyfish> I could do it differently
<random-jellyfish> but is there anything wrong with how it's used there?
<_death> gensym gives you a new symbol, and string on a symbol gives you the symbol name.. a new symbol does not mean its name is unique.. if you want to create a new symbol with a particular name you can use make-symbol
<random-jellyfish> (make-symbol (string (gensym))) ?
<random-jellyfish> or (make-symbol some-expr-calling-gensym) ?
<random-jellyfish> instead of (read-from-string some-expr-calling-gensym) ?
<nil> or (intern (format nil "~:@(%resumable-state-env-~a-~a%~)" name (gensym)))
<_death> no, again that's wrong
<_death> random-jellyfish: instead of read-from-string, yes.. you should think about it (and ask questions as needed) until everything's clear..
bpanthi977 has joined #commonlisp
<_death> you should never expect the name of a gensym to have the magical quality of making something unique
<duuqnd> gensym's name is supposed to be created using a prefix and suffix, and if no suffix is provided then *gensym-counter* should be incremented and used as the suffix.
<duuqnd> So really, if you're calling gensym with no parameter, then the name should be unique on each call.
<duuqnd> (unless you change *gensym-counter* in between)
<gilberth> Yes, and that might be out of your control. So never assume that the name of a gensym is in any way unique.
<random-jellyfish> I just want random names whenever the macro is expanded and its expansion is compiled...
bpanthi977 has quit [Ping timeout: 260 seconds]
<random-jellyfish> should I use a random number generated with random seed instead?
<duuqnd> Random seems wrong here
<random-jellyfish> (assuming random implies uniqueness)
<duuqnd> Perhaps instead of going for gensym, try having a counter of your own that you use and increment yourself
<duuqnd> gilberth: yeah that's true, not sure why I bothered saying what I did when it's both obvious and unhelpful
dtman34 has joined #commonlisp
<gilberth> Well, all you said was true.
<gilberth> Anyhow, uniqueness just like equalness has no universal answer. Unique to what? This run of the macro? In the compile time environment? In the load time environment? Within a process? On a machine? On Earth? In the universe? It needs a domain.
jonatack has quit [Ping timeout: 276 seconds]
toadlicker_ has joined #commonlisp
<random-jellyfish> I would like uniqueness in all environments
<random-jellyfish> every time the macro is expanded => unique env-name and derived-class-name
toadlicker has quit [Remote host closed the connection]
<random-jellyfish> unique = different than the last expansion
<nil> Always encode more entropy then the universe then.
<random-jellyfish> even if I use my own counter, won't it be reset when we switch from compile time to load time and then to execute time?
<random-jellyfish> I could randomize a seed using a timestamp...
<duuqnd> No, it shouldn't be reset, unless you're binding it to something somewhere
<nil> But for reals, relying on gensym used outside the body of a macro doesn't seem good. and GUID seem ugly too.
pkal has joined #commonlisp
<duuqnd> realistically, unless there's something funky going on that I've missed, incrementing a global counter should work fine
apac has quit [Ping timeout: 252 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
<random-jellyfish> nil, what do you mean by "used outside the body of a macro", you mean in the let surrounding the macro body? I all common lisp books I've read that's how it's used
<random-jellyfish> For example in the common lisp cookbook:
<random-jellyfish> To make temporary variables, we use the gensym function, which returns a fresh variable guaranteed to appear nowhere else. Here is what the macro should look like:
<random-jellyfish> (defmacro setq2 (v1 v2 e)
<random-jellyfish> (let ((tempvar (gensym)))
<random-jellyfish> `(let ((,tempvar ,e))
<random-jellyfish> (progn (setq ,v1 ,tempvar)
<random-jellyfish> (setq ,v2 ,tempvar)))))
dtman34 has joined #commonlisp
<random-jellyfish> I guess in my case I don't create temp var names with gensym, I create class names...
<random-jellyfish> maybe that's where I got it wrong
<duuqnd> Yeah, you're letting gensym's return value leak out of the macroexpansion by defining a class with a name influenced by gensym.
<nil> Yes, in that example it's used only inside the generated body.
<random-jellyfish> alrighty then incrementing a global counter is the way to go it seems, I'll start changing it
<random-jellyfish> Thanks guys
yaneko has quit [Quit: parting]
yaneko has joined #commonlisp
gorignak has quit [Quit: quit]
lisper29 has joined #commonlisp
<_death> gensym and make-symbol return new symbols, while intern/read-from-string don't.. if you want a new symbol that's never been used before, use the former.. multiple symbols can have equal names, so never rely on naming
<_death> *don't necessarily
pve has quit [Quit: leaving]
<_death> if you make sure a symbol with a given name does not exist in a package, you can create one with that name and (if guarded against race conditions) can rely on the symbol not being used before, but doing that is almost never necessary
<nil> Ambitious macroing of CLOS code is a nice way to flex CL power.
lutherann has joined #commonlisp
mgl has quit []
attila_lendvai has quit [Ping timeout: 248 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
<aeth> there definitely isn't enough ambitious macroing going on in most code
<aeth> after all, it's the point of the language: nothing's impossible!
lutherann has quit [Quit: Leaving]
lutherann has joined #commonlisp
lutherann has joined #commonlisp
lutherann has quit [Changing host]
<aeth> well, defmacro haltp may still have issues
dtman34 has joined #commonlisp
pkal has quit [Ping timeout: 265 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
lisper29 has quit [Quit: Leaving]
rgherdt has quit [Remote host closed the connection]
flip214 has quit [Read error: Connection reset by peer]
Gleefre has quit [Remote host closed the connection]
flip214 has joined #commonlisp
robin has quit [Ping timeout: 248 seconds]
robin has joined #commonlisp
<random-jellyfish> yeah the power of CLOS is quite impressive, so much untapped potential, Julia copied it quite nicely
ndanilov has quit [Remote host closed the connection]
bpanthi977 has joined #commonlisp
ndanilov has joined #commonlisp
bpanthi977 has quit [Ping timeout: 248 seconds]
dtman34 has joined #commonlisp
ndanilov has quit [Ping timeout: 272 seconds]
Oladon has quit [Quit: Leaving.]
random-jellyfish has quit [Ping timeout: 244 seconds]