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/>
pieguy128_ has quit [*.net *.split]
bjorkintosh has quit [*.net *.split]
akasha has quit [*.net *.split]
Jach has quit [*.net *.split]
robin has quit [*.net *.split]
mister_m has quit [*.net *.split]
Nilby has quit [*.net *.split]
sunarch has quit [*.net *.split]
gjvc has quit [*.net *.split]
cinerion has quit [*.net *.split]
hefner has quit [*.net *.split]
OlCe has quit [*.net *.split]
Everything has quit [*.net *.split]
cognemo has quit [*.net *.split]
bjorkintosh has joined #commonlisp
Jach has joined #commonlisp
mister_m has joined #commonlisp
OlCe has joined #commonlisp
cognemo has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has quit [Changing host]
robin has joined #commonlisp
akasha has joined #commonlisp
robin has quit [Remote host closed the connection]
pieguy128 has joined #commonlisp
robin has joined #commonlisp
cinerion has joined #commonlisp
sunarch has joined #commonlisp
Everything has joined #commonlisp
gjvc has joined #commonlisp
hefner has joined #commonlisp
dra has quit [Ping timeout: 260 seconds]
triffid has joined #commonlisp
<stylewarning> Anyone have suggestions on where to post specifically Lisp job ads (engineering and/or management) besides Reddit?
<aeth> I don't think Reddit would get many views. r/lisp hasn't been particularly active in years and that's before Reddit drove away half of their power users.
waleee has quit [Ping timeout: 264 seconds]
pjb has quit [Ping timeout: 260 seconds]
waleee has joined #commonlisp
<aeth> I'm not sure where everyone went, though.
<stylewarning> Yeah I agree. r/lisp does get attention, but activity has diminished in my anecdotal experience
<aeth> The Reddit redesign in 2018 focused on memes instead of on being a discussion forum and that led to a slow, then fast, decline of all of the text-and-link subreddits like r/lisp
jonatack1 has joined #commonlisp
<aeth> Because I guess not enough people bother to do old.reddit.com (for however long that still stays up)
jon_atack has quit [Read error: Connection reset by peer]
vitovan has joined #commonlisp
<aeth> But the equivalents either don't have subforums or don't have programming language subforums or (in the case of the most currently advocated one, lemmy) are just for the images-and-memes of r/all culture, not suitable for a r/lisp replacement.
<aeth> Now might be the time to launch a Lisp forum.
<aeth> Iirc, I think there's a traditional PHP web forum for Lisp that's even more dead than r/lisp and comp.lang.lisp
<stylewarning> I seem to vaguely recall such as well.
herjazz has joined #commonlisp
<vitovan> How do I change the location of ~/.cache/common-lisp/sbcl-* ?
<vitovan> I vaguely remember something in asdf, but it seems not working.
<ixelp> Relativising FASL Cache Paths
<vitovan> But, it does not help much.
alcor has quit [Remote host closed the connection]
random-nick has quit [Ping timeout: 240 seconds]
<vitovan> Maybe this is a unecessary requirement.
occ has quit [Ping timeout: 246 seconds]
akoana has quit [Quit: leaving]
monix has joined #commonlisp
monix is now known as festerdam
festerdam has quit [Client Quit]
festerdam has joined #commonlisp
festerdam has left #commonlisp [#commonlisp]
festerdam has joined #commonlisp
festerdam has left #commonlisp [#commonlisp]
cjrf has joined #commonlisp
makomo has quit [Ping timeout: 260 seconds]
azimut has quit [Ping timeout: 240 seconds]
herjazz has quit [Quit: leaving]
Nilby has joined #commonlisp
cjrf has quit [Remote host closed the connection]
azimut has joined #commonlisp
waleee has quit [Ping timeout: 264 seconds]
tyson2 has quit [Remote host closed the connection]
cjrf has joined #commonlisp
csos95 has joined #commonlisp
Catie` has joined #commonlisp
Catie has quit [Ping timeout: 240 seconds]
occ has joined #commonlisp
Catie` has quit [Quit: ZNC 1.8.2 - https://znc.in]
Catie has joined #commonlisp
notzmv has quit [Ping timeout: 250 seconds]
notzmv has joined #commonlisp
vitovan has quit [Quit: leaving]
azimut has quit [Ping timeout: 240 seconds]
azimut has joined #commonlisp
mathrick has quit [Ping timeout: 264 seconds]
mathrick has joined #commonlisp
ec has quit [Remote host closed the connection]
ec has joined #commonlisp
gxt__ has quit [Ping timeout: 240 seconds]
gxt__ has joined #commonlisp
Oladon has quit [Quit: Leaving.]
dcb has quit [Quit: MSN Messenger 4.0.0]
robin has quit [Remote host closed the connection]
dtman34 has quit [Ping timeout: 246 seconds]
rgherdt has joined #commonlisp
dtman34 has joined #commonlisp
notzmv has quit [Ping timeout: 240 seconds]
robin has joined #commonlisp
akasha has quit []
pjb has joined #commonlisp
<pjb> stylewarning: you may post lisp job ads; there is also a lispjob blog: https://lispjobs.wordpress.com
<ixelp> Lispjobs | A gift to Lisp hackers from Will Fitzgerald
<stylewarning> Oh yeah, I thought lispjobs was gone for some reason
igemnace has joined #commonlisp
azimut has quit [Ping timeout: 240 seconds]
tevo has quit [Read error: Connection reset by peer]
tevo has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
<pjb> Only low traffic, as usual :-/
<LispTyro> pjb: :/
susam has joined #commonlisp
<beach> LispTyro: Are you new here? I don't recognize your nick.
pve has joined #commonlisp
rtypo has joined #commonlisp
igemnace has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
Inline has joined #commonlisp
dino_tutter has joined #commonlisp
jonatack1 has quit [Read error: Connection reset by peer]
jonatack1 has joined #commonlisp
jonatack2 has joined #commonlisp
jonatack1 has quit [Ping timeout: 240 seconds]
akasha has joined #commonlisp
makomo has joined #commonlisp
cage has joined #commonlisp
karlosz has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 260 seconds]
Lord_of_Life_ is now known as Lord_of_Life
habamax has joined #commonlisp
habamax has quit [Remote host closed the connection]
habamax has joined #commonlisp
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
semz has quit [Quit: ZNC 1.8.2+deb2build5 - https://znc.in]
semz has joined #commonlisp
dra has quit [Quit: Leaving]
ronald has quit [Remote host closed the connection]
<LispTyro> beach: yes, we talked in #clschool
dcb has joined #commonlisp
makomo has quit [Quit: WeeChat 3.6]
random-nick has joined #commonlisp
igemnace has joined #commonlisp
<beach> Oh, OK. Forgot.
tychoish has quit [Quit: znc]
tychoish has joined #commonlisp
ec has quit [Remote host closed the connection]
ec has joined #commonlisp
srji has joined #commonlisp
srji has quit [Client Quit]
srji has joined #commonlisp
hineios has quit [Read error: Connection reset by peer]
hineios has joined #commonlisp
dino_tutter has quit [Ping timeout: 246 seconds]
zxcvz has joined #commonlisp
ec has quit [Remote host closed the connection]
ec has joined #commonlisp
occ has quit [Ping timeout: 245 seconds]
zacque has joined #commonlisp
hineios has quit [Quit: The Lounge - https://thelounge.chat]
hineios has joined #commonlisp
occ has joined #commonlisp
Inline has quit [Ping timeout: 245 seconds]
McParen has joined #commonlisp
habamax has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
<zacque> Hi, is there an existing library that implements Linux's XDG Base Directory specification?
dino_tutter has joined #commonlisp
<zacque> Doesn't seem like it, I want the part resolving environment variables to path, e.g. $XDG_DATA_HOME or default to $HOME/.local/share
rgherdt has quit [Read error: Connection reset by peer]
rgherdt has joined #commonlisp
<jackdaniel> zacque: I think that uiop functions return xdg paths for various queries
<pjb> Hmm, you're right, it uses xdg, but is not a general XDG library. :-(
<jackdaniel> i.e user-path-directory
Inline has joined #commonlisp
<jackdaniel> but I don't think that it has xdg logic coded
<pjb> uiop/configuration has tit.
<pjb> s/tit/it/
<pjb> (apropos "XDG" "UUIP")
akasha has quit []
<zacque> Ah yes, there it is, thanks jackdaniel and pjb!
rgherdt has quit [Remote host closed the connection]
rgherdt has joined #commonlisp
zacque has quit [Quit: Goodbye :D]
rgherdt has quit [Remote host closed the connection]
rgherdt has joined #commonlisp
McParen has left #commonlisp [#commonlisp]
Posterdati has quit [Remote host closed the connection]
Posterdati has joined #commonlisp
son0p has joined #commonlisp
occ has quit [Ping timeout: 246 seconds]
tyson2 has joined #commonlisp
euandreh has joined #commonlisp
euandreh has quit [Remote host closed the connection]
tyson2 has quit [Remote host closed the connection]
jdz_ is now known as jdz
shka has joined #commonlisp
rbcarleton has joined #commonlisp
euandreh has joined #commonlisp
tyson2 has joined #commonlisp
akasha has joined #commonlisp
Inline has quit [Ping timeout: 264 seconds]
azimut has joined #commonlisp
gxt__ has quit [Remote host closed the connection]
gxt__ has joined #commonlisp
dino_tutter has quit [Ping timeout: 252 seconds]
tyson2 has quit [Remote host closed the connection]
euandreh has quit [Ping timeout: 245 seconds]
euandreh has joined #commonlisp
pjb has quit [Ping timeout: 260 seconds]
pjb has joined #commonlisp
drakonis has quit [Server closed connection]
drakonis has joined #commonlisp
rainthree has joined #commonlisp
Oladon has joined #commonlisp
igemnace has quit [Remote host closed the connection]
Inline has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 28.2]
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
rbcarleton has quit [Remote host closed the connection]
rainthree has quit [Quit: Leaving]
<Oladon> I need backquote help. :P I've got a macro that produces a SQL query (using Postmodern, though I don't think that's relevant), and I want it to use a different where clause depending on the input. (Non-working) sample is: `(:select ,@(list :where (typecase key (integer `(:= 'users.id ,key)) (t `(:= 'users.name (string ,key)))
<Oladon> Could someone help me get this working? :P
euandreh has quit [Remote host closed the connection]
waleee has joined #commonlisp
<bike> Oladon: what outputs do you want for what inputs? it's not obvious what you're going for here
<Oladon> Apologies... I find it hard to clearly explain it (probably reflective of the difficulty I'm having doing it!). The goal is that if key is an integer (say, 3), we get (:select :where (:= 'users.id 3)), and if the key is a string (say, "foo"), we get (:select :where (:= 'users.name "foo"))
<Oladon> I've got it working in a macroexpand form, but for some reason that stops working when I put it into the macro itself...
<Oladon> (macroexpand-1 (let ((key 3)) `(:select 'users.* ,@(typecase key (integer (list :where `(:= 'users.id ,key))) (t (list :where `(:= 'users.name ,(string key))))))))
Inline has quit [Ping timeout: 246 seconds]
<pjb> Oladon: (let ((key (if (zerop (random 2)) 42 "foo"))) `(:select (:where ,(typecase key (integer `(:= 'users.id ,key)) (t `(:= 'users.name (string ,key))))))) #| --> (:select (:where (:= 'users.name (string "foo")))) |#
<pjb> Oladon: you must not confuse macros with backquote. Those are two concept entirely orthogonal.
<Oladon> That's close... (string "foo") has to be evaluated prior to the output (in case "foo" is in fact a symbol or UUID or something wonky)
<Oladon> Yeah, I definitely tend to conflate the two.
<pjb> (let ((key (if (zerop (random 2)) 42 "foo"))) `(:select (:where ,(typecase key (integer `(:= 'users.id ,key)) (t `(:= 'users.name ,(string key))))))) #| --> (:select (:where (:= 'users.name "foo"))) |#
<pjb> You may want to use prin1-to-string or princ-to-string rather than string. string is to resove string designators, not random objects.
<Oladon> That's what I ended up with... so now how do I /use/ that? Nothing requires this operation to be a macro, other than my silly conflation of macros and backquotes ;)
dino_tutter has joined #commonlisp
<pjb> So why do you need a macro again?
<pjb> Write a function, if you can't justify a macro.
<Oladon> That would seem to be the logical conclusion... and this feels like a silly question, but how does one... un-backquotify (evaluate?) something like that in a function?
ronald has joined #commonlisp
<pjb> Why do you want to unbackquotify?
<Oladon> I need to actually execute the resulting code
<Oladon> Not just return it
<pjb> backquote is to write s-exp template with some substitutions indicated with , ,@ and ,.
<pjb> :select is not the name of a function, so there's no way you may execute it.
<pjb> Other than passing it to a sql interpreter.
<pjb> (sql-interpret `(:select …))
<Oladon> Right, it gets passed... hang on, I think I'm being silly.
<pjb> It's often named query: (query `(:select …)).
<Oladon> Yeah, it's query-dao here, but that's not the issue... I'm not /that/ silly! :P
<Oladon> Turned out I had the main body backquoted as well. But now it's complaining that the query I'm passing in isn't a string. Which is weird, because (:select ...) is never a string...
Inline has joined #commonlisp
cjrf has left #commonlisp [Killed buffer]
<Oladon> (query-dao 'user (:select 'users.* :from 'users :where (:= 'users.id 1))) <-- works
<Oladon> (query-dao 'user '(:select 'users.* :from 'users :where (:= 'users.id 1))) <-- does not work (and is what the function is producing)
notzmv has joined #commonlisp
zxcvz has quit [Quit: zxcvz]
Gernn has joined #commonlisp
<Gernn> > writing common lisp in slime
<Gernn> How do you get strings to indent on new lines? Like if I'm writing a very long string out and I want it to match up indentation-wise with the line before. Sometimes I see code off quicklisp formatted like this and I'd like my editor to do it automatically.
<Oladon> Solved it! Needed to wrap my quoted query in (sql-compile)
<Oladon> pjb: Thanks for all your help and patience. :)
pranavats has joined #commonlisp
attila_lendvai has joined #commonlisp
<Gernn> (solved! I was looking for visual fill column)
Gernn has left #commonlisp [ERC 5.5 (IRC client for GNU Emacs 29.0.60)]
dtman34 has quit [Ping timeout: 246 seconds]
dtman34 has joined #commonlisp
tyson2 has joined #commonlisp
dipper has quit [Ping timeout: 240 seconds]
dtman34 has quit [Ping timeout: 246 seconds]
cmack has joined #commonlisp
dtman34 has joined #commonlisp
dtman34 has quit [Ping timeout: 264 seconds]
dtman34 has joined #commonlisp
Lycurgus has joined #commonlisp
rtypo has quit [Ping timeout: 264 seconds]
rgherdt has quit [Remote host closed the connection]
basslc has joined #commonlisp
basslc has quit [Remote host closed the connection]
ronald has quit [Read error: Connection reset by peer]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
ronald has joined #commonlisp
Inline has quit [Ping timeout: 246 seconds]
contrapunctus has left #commonlisp [#commonlisp]
shka has quit [Ping timeout: 264 seconds]
attila_lendvai has quit [Ping timeout: 246 seconds]
contrapunctus has joined #commonlisp
habamax has joined #commonlisp
Lycurgus has quit [Quit: Exeunt: personae.ai-integration.biz]
pve has quit [Quit: leaving]
Gleefre has quit [Remote host closed the connection]
dino_tutter has quit [Ping timeout: 260 seconds]
contrapunctus has left #commonlisp [#commonlisp]
contrapunctus has joined #commonlisp
dra has quit [Quit: Leaving]
rbcarleton has joined #commonlisp