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.
<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...
<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...
<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]