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/>
synchrom1 has joined #commonlisp
donleo has quit [Ping timeout: 256 seconds]
amb007 has quit [Ping timeout: 255 seconds]
jonlevin has joined #commonlisp
jmbr has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
Bubblegumdrop has quit [Quit: ZNC 1.8.2+deb4+b2 - https://znc.in]
bubblegum has joined #commonlisp
Bubblegumdrop has joined #commonlisp
rselim has joined #commonlisp
cpli has joined #commonlisp
bubblegum has quit [Ping timeout: 256 seconds]
ggb has joined #commonlisp
whereiseveryone has joined #commonlisp
brettgilio has joined #commonlisp
alethkit has joined #commonlisp
mhcat has joined #commonlisp
bubblegum has joined #commonlisp
pvac has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
sherbert has joined #commonlisp
synchrom1 has quit [Quit: WeeChat 2.8]
synchrom1 has joined #commonlisp
synchromesh is now known as synchrom2
synchrom1 is now known as synchromesh
mgl has quit [Ping timeout: 264 seconds]
bubblegum has quit [Ping timeout: 264 seconds]
bubblegum has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
bubblegum has quit [Ping timeout: 264 seconds]
azimut has joined #commonlisp
bubblegum has joined #commonlisp
akoana has joined #commonlisp
NicknameJohn has joined #commonlisp
NicknameJohn has quit [Client Quit]
bilegeek has joined #commonlisp
bubblegum has quit [Ping timeout: 264 seconds]
bubblegum has joined #commonlisp
josrr has quit [Remote host closed the connection]
mgl has joined #commonlisp
X-Scale has joined #commonlisp
tok has quit [Remote host closed the connection]
josrr has joined #commonlisp
random-nick has quit [Ping timeout: 264 seconds]
amb007 has joined #commonlisp
Bubblegumdrop has quit [Quit: ZNC 1.8.2+deb4+b2 - https://znc.in]
Bubblegumdrop has joined #commonlisp
Bubblegumdrop has quit [Client Quit]
Bubblegumdrop has joined #commonlisp
amb007 has quit [Ping timeout: 255 seconds]
Bubblegumdrop has quit [Quit: ZNC 1.8.2+deb4+b2 - https://znc.in]
Bubblegumdrop has joined #commonlisp
mgl has quit [Ping timeout: 252 seconds]
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 256 seconds]
Lord_of_Life_ is now known as Lord_of_Life
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
Bubblegumdrop has quit [Quit: ZNC 1.8.2+deb4+b2 - https://znc.in]
Bubblegumdrop has joined #commonlisp
puke has quit [Ping timeout: 276 seconds]
Bubblegumdrop has quit [Client Quit]
jmdaemon has joined #commonlisp
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
ymir has joined #commonlisp
bubblegum has quit [Ping timeout: 264 seconds]
bubblegum has joined #commonlisp
SunClonus has quit [Quit: Leaving]
SunClonus has joined #commonlisp
SunClonus has quit [Remote host closed the connection]
SunClonus has joined #commonlisp
SunClonus has quit [Remote host closed the connection]
SunClonus has joined #commonlisp
SunClonus has quit [Remote host closed the connection]
SunClonus has joined #commonlisp
SunClonus has quit [Remote host closed the connection]
SunClonus has joined #commonlisp
* edgar-rft wants a JOIN function that works on IRC
* gilberth passes CL-IRC:JOIN.
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
bubblegum has quit [Ping timeout: 256 seconds]
bubblegum has joined #commonlisp
X-Scale has quit [Quit: Client closed]
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
khrbtxyz has quit [Ping timeout: 256 seconds]
SunClonus has quit [Quit: Leaving]
khrbtxyz has joined #commonlisp
SunClonus has joined #commonlisp
SunClonus has quit [Remote host closed the connection]
bubblegum has quit [Ping timeout: 264 seconds]
bubblegum has joined #commonlisp
josrr has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 276 seconds]
akoana has quit [Quit: leaving]
Lycurgus has joined #commonlisp
ymir has quit [Ping timeout: 256 seconds]
amb007 has joined #commonlisp
epony has quit [Ping timeout: 264 seconds]
bubblegum has quit [Read error: Connection reset by peer]
bubblegum has joined #commonlisp
ymir has joined #commonlisp
igemnace has joined #commonlisp
amb007 has quit [Ping timeout: 276 seconds]
igemnace has quit [Quit: WeeChat 4.2.1]
pranavats has left #commonlisp [Error from remote client]
pranavats has joined #commonlisp
synchrom2 has quit [Quit: Client closed]
epony has joined #commonlisp
ymir has quit [Remote host closed the connection]
ymir has joined #commonlisp
ymir has quit [Ping timeout: 276 seconds]
meritamen has joined #commonlisp
decweb has quit [Ping timeout: 276 seconds]
danza has joined #commonlisp
mulk has quit [Ping timeout: 264 seconds]
mulk has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
johnjaye has quit [Ping timeout: 268 seconds]
bilegeek has quit [Quit: Leaving]
johnjaye has joined #commonlisp
msavoritias has joined #commonlisp
meritamen has quit [Quit: I gotta go...]
herjazz has joined #commonlisp
ym has quit [Ping timeout: 276 seconds]
amb007 has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #commonlisp
easye has quit [Ping timeout: 260 seconds]
Pixel_Outlaw has quit [Quit: Leaving]
easye has joined #commonlisp
mulk has quit [Ping timeout: 276 seconds]
benkard has joined #commonlisp
benkard is now known as mulk
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
rgherdt has joined #commonlisp
wacki has joined #commonlisp
wacki has quit [Client Quit]
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
danza has quit [Read error: Connection reset by peer]
bilegeek has joined #commonlisp
wacki has joined #commonlisp
danza has joined #commonlisp
cage has joined #commonlisp
<beach> Does the standard say anything about whether the operator is checked in macro functions, so that a macro function associated with FOO checks that the CAR of the form it is given is FOO, and perhaps signal an error otherwise?
danza has quit [Ping timeout: 268 seconds]
traidare has joined #commonlisp
ym has joined #commonlisp
mgl has joined #commonlisp
_cymew_ has joined #commonlisp
reb has quit [Remote host closed the connection]
awlygj has joined #commonlisp
X-Scale has joined #commonlisp
hayley has joined #commonlisp
dra has quit [Ping timeout: 276 seconds]
Posterdati has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
<beach> In case the question is not clear, here is an example: Say I do (DEFMACRO FOO (...) ...) and then (SETF (MACRO-FUNCTION 'BAR) (MACRO-FUNCTION 'FOO)) and then (BAR ...). Is that allowed?
shka has joined #commonlisp
pranavats has left #commonlisp [Disconnected: Replaced by new connection]
pranavats has joined #commonlisp
wacki has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
donleo has joined #commonlisp
mulk has quit [Ping timeout: 256 seconds]
mulk has joined #commonlisp
danza has joined #commonlisp
ym has quit [Ping timeout: 246 seconds]
cage has quit [Quit: rcirc on GNU Emacs 29.1]
wacki has joined #commonlisp
tok has joined #commonlisp
Posterdati has joined #commonlisp
bilegeek has quit [Quit: Leaving]
dino__ has joined #commonlisp
Lycurgus has quit [Quit: leaving]
mulk has quit [Ping timeout: 268 seconds]
<splittist> are macro-function and (setf macro-function) horribly asymmetric, or am I misreading the spec?
mulk has joined #commonlisp
random-nick has joined #commonlisp
cage has joined #commonlisp
jrx has joined #commonlisp
dcb has quit [Quit: Connection closed for inactivity]
puchacz has joined #commonlisp
jjnkn has joined #commonlisp
mesaoptimizer has joined #commonlisp
cosimone has joined #commonlisp
danza has quit [Read error: Connection reset by peer]
amb007 has quit [Ping timeout: 256 seconds]
amb007 has joined #commonlisp
puke has joined #commonlisp
attila_lendvai_ has joined #commonlisp
rogersm has joined #commonlisp
msv has quit [Remote host closed the connection]
X-Scale has quit [Quit: Client closed]
dra has joined #commonlisp
attila_lendvai_ has quit [Ping timeout: 255 seconds]
josrr has joined #commonlisp
agm has joined #commonlisp
<agm> beach: while it's true that a macro function receives the whole macro form as first argument, including the macro name, I don't think it's reasonable to check it
hayley has quit [Quit: leaving]
epony has quit [Remote host closed the connection]
cosimone has quit [Ping timeout: 276 seconds]
chomwitt has joined #commonlisp
decweb has joined #commonlisp
tyson2 has joined #commonlisp
johnjaye has quit [Ping timeout: 256 seconds]
rogersm has quit [Remote host closed the connection]
johnjaye has joined #commonlisp
johnjaye has quit [Ping timeout: 260 seconds]
waleee has joined #commonlisp
johnjaye has joined #commonlisp
X-Scale has joined #commonlisp
cosimone has joined #commonlisp
dra has quit [Ping timeout: 276 seconds]
NicknameJohn has joined #commonlisp
herjazz has quit [Quit: leaving]
<splittist> (Probably me misreading)
epony has joined #commonlisp
jmdaemon has quit [Ping timeout: 264 seconds]
rogersm has joined #commonlisp
rogersm has quit [Ping timeout: 276 seconds]
wacki has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<beach> agm: Thanks.
tyson2 has quit [Read error: Connection reset by peer]
jjnkn has quit [Ping timeout: 268 seconds]
yitzi has joined #commonlisp
jrx has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1.50)]
prokhor__ has quit [Remote host closed the connection]
rogersm has joined #commonlisp
rogersm has quit [Ping timeout: 268 seconds]
prokhor has joined #commonlisp
tyson2 has joined #commonlisp
rogersm has joined #commonlisp
jonatack has quit [Ping timeout: 255 seconds]
jonatack has joined #commonlisp
rogersm has quit [Client Quit]
jonatack has quit [Ping timeout: 276 seconds]
wacki has joined #commonlisp
jonatack has joined #commonlisp
Krystof has joined #commonlisp
johnjaye has quit [Ping timeout: 264 seconds]
johnjaye has joined #commonlisp
waleee has quit [Ping timeout: 260 seconds]
azimut has quit [Ping timeout: 255 seconds]
cosimone has quit [Remote host closed the connection]
traidare has quit [Ping timeout: 264 seconds]
meritamen has joined #commonlisp
waleee has joined #commonlisp
yitzi has quit [Ping timeout: 256 seconds]
yitzi has joined #commonlisp
alex_ has joined #commonlisp
_cymew_ has quit [Ping timeout: 252 seconds]
meritamen has quit [Remote host closed the connection]
alex_p has quit [Ping timeout: 240 seconds]
dcb has joined #commonlisp
yitzi has quit [Ping timeout: 268 seconds]
yitzi has joined #commonlisp
SunClonus has joined #commonlisp
SunClonus has quit [Client Quit]
X-Scale has quit [Quit: Client closed]
knusbaum has joined #commonlisp
<yagkasha> okay so I figured out that having "(load (expand-file-name "~/quicklisp/slime-helper.el"))" in my init is causing M-. to not work
<yagkasha> but "(autoload 'slime "~/quicklisp/slime-helper.el" "Launch SLIME" t nil)" seems to work fine
jjnkn has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
benkard has joined #commonlisp
mulk has quit [Ping timeout: 256 seconds]
benkard is now known as mulk
msv has joined #commonlisp
knusbaum has quit [Ping timeout: 268 seconds]
SunClonus has joined #commonlisp
mm007emko has quit [Ping timeout: 255 seconds]
mm007emko has joined #commonlisp
zetef has joined #commonlisp
chomwitt has quit [Ping timeout: 268 seconds]
zetef has quit [Remote host closed the connection]
SunClonus has quit [Quit: Leaving]
mm007emko has quit [Read error: Connection reset by peer]
tyson2 has joined #commonlisp
mm007emko has joined #commonlisp
bubblegum has quit [Ping timeout: 264 seconds]
dra has joined #commonlisp
bubblegum has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
slyrus has joined #commonlisp
bubblegum has quit [Ping timeout: 252 seconds]
yitzi has quit [Ping timeout: 256 seconds]
yitzi_ has joined #commonlisp
ymir has joined #commonlisp
azimut has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
epony has quit [Remote host closed the connection]
a51 has joined #commonlisp
epony has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
yitzi_ has quit [Remote host closed the connection]
yitzi has joined #commonlisp
yitzi has quit [Ping timeout: 255 seconds]
yitzi has joined #commonlisp
gxt has quit [Ping timeout: 255 seconds]
gxt has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
yitzi has quit [Ping timeout: 246 seconds]
yitzi has joined #commonlisp
yitzi has quit [Ping timeout: 252 seconds]
yitzi has joined #commonlisp
azimut has joined #commonlisp
`Pixel_Outlaw has joined #commonlisp
amb007 has quit [Ping timeout: 255 seconds]
tyson2 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
mulk has quit [Ping timeout: 256 seconds]
NicknameJohn has quit [Ping timeout: 252 seconds]
mulk has joined #commonlisp
tyson2 has joined #commonlisp
amb007 has joined #commonlisp
ym has joined #commonlisp
tyson2 has quit [Read error: Connection reset by peer]
X-Scale has joined #commonlisp
agm has quit [Read error: Connection reset by peer]
agm has joined #commonlisp
NicknameJohn has joined #commonlisp
chomwitt has joined #commonlisp
Lycurgus has joined #commonlisp
Pixel_Outlaw has quit [Quit: Leaving]
a51 has quit [Quit: WeeChat 4.2.1]
msavoritias has quit [Ping timeout: 256 seconds]
ello has quit [Quit: ZNC 1.8.2 - https://znc.in]
ello has joined #commonlisp
yitzi has quit [Remote host closed the connection]
ronald_ has quit [Ping timeout: 256 seconds]
chomwitt has quit [Ping timeout: 255 seconds]
ronald has joined #commonlisp
ello has quit [Quit: ZNC 1.8.2 - https://znc.in]
tyson2 has joined #commonlisp
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
ello has joined #commonlisp
jjnkn has quit [Remote host closed the connection]
ello has quit [Client Quit]
ello has joined #commonlisp
ello has quit [Quit: ZNC 1.8.2 - https://znc.in]
ello has joined #commonlisp
tyson2 has joined #commonlisp
ello has quit [Quit: ZNC 1.8.2 - https://znc.in]
johnjaye has quit [Remote host closed the connection]
johnjaye has joined #commonlisp
ello has joined #commonlisp
ello has quit [Client Quit]
clarkf has joined #commonlisp
ello has joined #commonlisp
mulk has quit [Ping timeout: 260 seconds]
mulk has joined #commonlisp
X-Scale has quit [Quit: Client closed]
johnjaye has quit [Ping timeout: 264 seconds]
johnjaye has joined #commonlisp
ymir has quit [Ping timeout: 240 seconds]
NicknameJohn has quit [Ping timeout: 264 seconds]
Posterdati has quit [Remote host closed the connection]
Posterdati has joined #commonlisp
Posterdati has quit [Client Quit]
Posterdati has joined #commonlisp
gooba has quit [Remote host closed the connection]
gooba has joined #commonlisp
Renfield has joined #commonlisp
ymir has joined #commonlisp
Inline has quit [Ping timeout: 264 seconds]
szkl has quit [Quit: Connection closed for inactivity]
<Renfield> Hi, I have a lisp question: https://paste.rs/xlQDy.lisp
<ixelp> Source Code | Rocket Powered Pastebin
X-Scale has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 29.1]
<thuna`> Renfield: macros don't evaluate their arguments, so with (let-list* vals ...) you are calling LIST-PAIRS with PAIR-LIST as the *symbol* VALS, and not its value
<Renfield> Thanks a lot, I see now. I need to do (eval key-vals). That works the way I expect if the macro were pretending to be a function there.
chomwitt has joined #commonlisp
<bike> it is generally not a good idea to use eval, and especially not for this
<bike> most notably, EVAL doesn't know about your lexical environment, so if key-vals is a lexical variable problems will occur
NicknameJohn has joined #commonlisp
azimut has quit [Remote host closed the connection]
<Renfield> What would be the proper way to do this? Or is this entire thing discouraged?
<bike> well, i'm not sure i understand exactly what you want to do. you want to expand into a let*? so you're binding variables. but the variables are only known at runtime? that's a very unusual thing to want to do. what is the context of this operation?
fitzsim has quit [Ping timeout: 264 seconds]
azimut has joined #commonlisp
SunClonus has joined #commonlisp
<Renfield> My intermediate problem is that I want to be able to use &key and &body, but they don't work well together, sometimes giving me errors for odd number of keys. So I'm trying to devise an interface that doesn't have such limitations. I pass int a set of key-value pairs and a body and let* does the assignment and runs the body with them.
SunClonus has quit [Client Quit]
epony has quit [Remote host closed the connection]
ymir has quit [Ping timeout: 268 seconds]
<thuna`> Renfield: Do you want the macro to accept an arbitrary amount of keyword arguments?
<Renfield> Yes, that would be nice.
<Renfield> With the example, I provide two, but I could provide one or none.
akoana has joined #commonlisp
<thuna`> There's &allow-other-keys for that, see ,clhs 3.4.1.4
<thuna`> clhs 3.4.1.4
<specbot> Specifiers for keyword parameters: http://www.lispworks.com/reference/HyperSpec/Body/03_dad.htm
<ixelp> CLHS: Section 3.4.1.4
<bike> (defmacro let-list* ((&rest bindings &key &allow-other-keys) &body body) ...)?
<bike> i don't follow how the (let-list* vals ...) is involved, though
<thuna`> Essentially, you can do `&rest ARGS &key FOO BAR &allow-other-keys' and you will have FOO and BAR bound normally and ARGS will contain a plist of all the arguments passed (including those for FOO and BAR)
<aeth> the fun thing about allow-other-keys is that it works in both directions because you can `:allow-other-keys t` on the caller side, too
fitzsim has joined #commonlisp
<Renfield> I want to be able to define a macro which uses lets say one key and has a body. I have done that. If I call that macro, provide the key value and one form for the body, I get an error regarding an odd number of key val parameters (I don't remember the exact error message).
johnjaye has quit [Ping timeout: 255 seconds]
<bike> could you give an example of how you try to use the macro that causes the problem?
<Renfield> Okay, let me reproduce.
johnjaye has joined #commonlisp
ymir has joined #commonlisp
NicknameJohn has quit [Ping timeout: 256 seconds]
<thuna`> Renfield: You cannot do what you are describing with &key. Your options are to: 1. have the lambda list be as bike suggested, ((&key FOO) &body BODY), or 2. have the lambda list be (&body BODY) and pop the first two elements if the first is a keyword.
<thuna`> In the first case, your macro's signature will be like (mymacro (:foo foo) body...), and in the second case it will be like (mymacro :foo foo body...) but it will be possible for the caller to omit `:foo foo'.
<thuna`> I would suggest that you go for the first option.
randm has quit [Remote host closed the connection]
<Renfield> Oh. I did not know you can have nested lists in the parameter section. I will have to investigate this possibility.
zxcvz has joined #commonlisp
puchacz has quit [Quit: Client closed]
randm has joined #commonlisp
zxcvz has quit [Client Quit]
tyson2 has quit [Remote host closed the connection]
amb007 has quit [Remote host closed the connection]
amb007 has joined #commonlisp
X-Scale has quit [Quit: Client closed]
Inline has joined #commonlisp
rgherdt has quit [Ping timeout: 256 seconds]
jmdaemon has joined #commonlisp
mgl has quit [Ping timeout: 246 seconds]
ymir has quit [Ping timeout: 264 seconds]
agm has quit [Ping timeout: 255 seconds]
amb007 has quit [Ping timeout: 255 seconds]
BrokenCog is now known as MommyDearest
ymir has joined #commonlisp
shka has quit [Ping timeout: 276 seconds]
mgl has joined #commonlisp
epony has joined #commonlisp
akoana has quit [Quit: leaving]
dino__ has quit [Ping timeout: 255 seconds]
tok has quit [Remote host closed the connection]