Gleefre has quit [Remote host closed the connection]
zxcvz has joined #commonlisp
cage has joined #commonlisp
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
LispTyro has quit [Ping timeout: 260 seconds]
LispTyro has joined #commonlisp
domovod has joined #commonlisp
dlowe has joined #commonlisp
rainthree3 has joined #commonlisp
rainthree has quit [Ping timeout: 246 seconds]
lottaquestions has joined #commonlisp
Everything has quit [Ping timeout: 258 seconds]
LispTyro has quit [Ping timeout: 260 seconds]
LispTyro has joined #commonlisp
azimut has quit [Ping timeout: 240 seconds]
eddof13 has joined #commonlisp
dcb has joined #commonlisp
karlosz has joined #commonlisp
domovod has quit [Quit: WeeChat 4.0.1]
bilegeek has joined #commonlisp
Everything has joined #commonlisp
mgl has quit [Quit: Client closed]
Gleefre has joined #commonlisp
dirtcastle has quit [Remote host closed the connection]
deadmarshal_ has quit [Remote host closed the connection]
NotThatRPG has quit [Ping timeout: 246 seconds]
masinter has quit [Ping timeout: 240 seconds]
masinter has joined #commonlisp
jmdaemon has joined #commonlisp
cage has quit [Remote host closed the connection]
tyson2 has quit [Remote host closed the connection]
attila_lendvai has quit [Ping timeout: 240 seconds]
attila_lendvai_ has joined #commonlisp
deadmarshal_ has joined #commonlisp
dirtcastle has joined #commonlisp
NotThatRPG has joined #commonlisp
Oladon has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NotThatRPG has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #commonlisp
cjrf has joined #commonlisp
mgl has joined #commonlisp
ufi has joined #commonlisp
attila_lendvai_ has quit [Read error: Connection reset by peer]
rainthree3 has quit [Quit: Leaving]
attila_lendvai has joined #commonlisp
bitmapper has quit [Quit: Connection closed for inactivity]
msavoritias has quit [Remote host closed the connection]
waleee has joined #commonlisp
mgl has quit [Quit: Client closed]
zxcvz has quit [Quit: zxcvz]
Inline has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thollief has quit [Remote host closed the connection]
NotThatRPG has joined #commonlisp
dino_tutter has quit [Ping timeout: 240 seconds]
karlosz has quit [Ping timeout: 260 seconds]
euandreh has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #commonlisp
ufi has quit [Quit: Leaving]
szkl has joined #commonlisp
karlosz has joined #commonlisp
karlosz has quit [Quit: karlosz]
zyni-moe has joined #commonlisp
<paulapatience>
Can gensyms be used as internal unique IDs if they are converted to strings? In other words, will gensym ever produce a symbol during a Lisp session that, when converted to a string, may clash with a later-produced gensym also converted to a string?
<zyni-moe>
Yes
<zyni-moe>
There are parameters which control the names gensym makes: you can adjust them
tevo has quit [Read error: Connection reset by peer]
<paulapatience>
Wait, yes they can be used as unique IDs, or yes they will clash? (Sorry for the ambiguous formulation.)
<paulapatience>
Ah, well if gensym-counter is manually changed they could clash when converted to strings.
euandreh has quit [Quit: euandreh]
<zyni-moe>
they can clash. (values (let ((*gensym-counter gensym-counter*)) (gensym)) (let ((*gensym-counter gensym-counter*)) (gensym)))
tevo has joined #commonlisp
<zyni-moe>
will make two symbols with the same name (or if I had made no mistakes it would)
<paulapatience>
Ok thanks
<zyni-moe>
sorry for delay is hard to type on stupid device
<Gleefre>
There is a deprecated way of using GENSYM by passing a counter value instead of name, which makes it even easier to get clashing names.
<edgar-rft>
paulapatience: Common Lisp has functions like GET-INTERNAL-REAL-TIME that can help you to produce unique symbol names based on timestamps
tyson2 has joined #commonlisp
tevo has quit [Read error: Connection reset by peer]
tevo has joined #commonlisp
<pjb>
paulapatience: why allocate a symbol if you only need a string? (defvar *counter* 0) (loop repeat 3 collect (format nil "G~A" (incf *counter*))) #| --> ("G1" "G2" "G3") |#
<pjb>
if you need unique strings, you may generate UUIDs (there are libraries to do that).
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
azimut has joined #commonlisp
dino_tutter has joined #commonlisp
White_Flame has quit [Remote host closed the connection]
White_Flame has joined #commonlisp
bilegeek has quit [Quit: Leaving]
<paulapatience>
pjb: Yes, I decided to go with the custom counter method. Thanks
attila_lendvai has quit [Ping timeout: 252 seconds]
azimut has quit [Remote host closed the connection]
azimut_ has joined #commonlisp
igemnace has quit [Remote host closed the connection]
karlosz has joined #commonlisp
Inline has quit [Ping timeout: 240 seconds]
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #commonlisp
eddof13 has quit [Client Quit]
Gleefre has quit [Ping timeout: 246 seconds]
karlosz has quit [Ping timeout: 240 seconds]
shka has quit [Ping timeout: 240 seconds]
notzmv has joined #commonlisp
habamax has joined #commonlisp
szkl has quit [Quit: Connection closed for inactivity]
dino_tutter has quit [Ping timeout: 240 seconds]
jmdaemon has quit [Ping timeout: 245 seconds]
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has quit [Changing host]
Oladon has quit [Quit: Leaving.]
bjorkint0sh has quit [Ping timeout: 246 seconds]
pve has quit [Quit: leaving]
tyson2 has quit [Remote host closed the connection]
ronald has joined #commonlisp
jmd_ has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
random-nick has quit [Ping timeout: 240 seconds]
oneeyedalien has joined #commonlisp
tyson2 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]