ronald has quit [Read error: Connection reset by peer]
bilegeek has joined #commonlisp
pfdietz has quit [Quit: Client closed]
<prokhor>
hi
<prokhor>
does anybody have an idea on how to train transformer based models in cl? sth like pytorch would be nice... maybe a ffi?
tyson2 has quit [Remote host closed the connection]
josrr has quit [Remote host closed the connection]
aeth_ is now known as aeth
brokkoli_origina has quit [Ping timeout: 255 seconds]
brokkoli_origin has joined #commonlisp
jon_atack has joined #commonlisp
pfdietz has joined #commonlisp
jonatack has quit [Ping timeout: 272 seconds]
waleee has quit [Ping timeout: 255 seconds]
X-Scale has joined #commonlisp
tyson2 has joined #commonlisp
Kyuvi has quit [Quit: Client closed]
Pixel_Outlaw has quit [Remote host closed the connection]
mulk has quit [Ping timeout: 256 seconds]
mulk has joined #commonlisp
NicknameJohn has quit [Ping timeout: 256 seconds]
markb1 has joined #commonlisp
epony has quit [Remote host closed the connection]
pranavats has left #commonlisp [Disconnected: Replaced by new connection]
pranavats has joined #commonlisp
<beach>
Renfield: The macro call (USE-PARAM) is expanded at compile-time, and the expansion contains the value of *MY-PARAM* at compile time. The symbol *MY-PARAM* does not appear in the expansion, so it does not appear in the body of the LET.
mmk2410_ has joined #commonlisp
kmroz has quit [Ping timeout: 255 seconds]
kurfen has quit [Ping timeout: 255 seconds]
kmroz has joined #commonlisp
mmk2410 has quit [Read error: Connection reset by peer]
<beach>
Renfield: If you just do (MACROEXPAND-1 '(WINDOW::USE-PARAM)) you will see what it expands to.
kurfen has joined #commonlisp
ymir has joined #commonlisp
MommyDearest is now known as BrokenCog
pfdietz has quit [Quit: Client closed]
SunClonus has joined #commonlisp
pillton has quit [Ping timeout: 258 seconds]
SunClonus has quit [Remote host closed the connection]
<beach>
Renfield: I am not sure what you are trying to do, but if you define USE-PARAM as (DEFMACRO USE-PARAM () '`(,*MY-PARAM*)) you will get *MY-PARAM* in the expansion, rather than its value.
* beach
is now convinced that the real use case is more complicated, and that his suggestions won't work in the real case.
tyson2 has quit [Remote host closed the connection]
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #commonlisp
decweb has quit [Ping timeout: 255 seconds]
msavoritias has joined #commonlisp
mgl has joined #commonlisp
amb007 has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
glaucon has joined #commonlisp
amb007 has quit [Ping timeout: 246 seconds]
k_hachig has quit [Ping timeout: 260 seconds]
igemnace has joined #commonlisp
wacki has joined #commonlisp
amb007 has joined #commonlisp
zetef has joined #commonlisp
mulk has quit [Ping timeout: 264 seconds]
pfdietz has joined #commonlisp
mulk has joined #commonlisp
glaucon has quit [Quit: WeeChat 3.5]
Pixel_Outlaw has joined #commonlisp
zetef has quit [Remote host closed the connection]
NicknameJohn has joined #commonlisp
chomwitt has joined #commonlisp
awlygj has joined #commonlisp
pve has joined #commonlisp
amb007 has quit [Ping timeout: 255 seconds]
amb007 has joined #commonlisp
msavoritias has quit [Ping timeout: 255 seconds]
NicknameJohn has quit [Ping timeout: 264 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
ymir has quit [Ping timeout: 255 seconds]
zetef has joined #commonlisp
zetef has quit [Remote host closed the connection]
rgherdt has joined #commonlisp
Kyuvi has joined #commonlisp
Inline has quit [Quit: Leaving]
Inline has joined #commonlisp
Pixel_Outlaw has quit [Quit: Leaving]
amb007 has quit [Ping timeout: 256 seconds]
amb007 has joined #commonlisp
lottaquestions has quit [Ping timeout: 260 seconds]
X-Scale has quit [Quit: Client closed]
X-Scale has joined #commonlisp
donleo has joined #commonlisp
lottaquestions has joined #commonlisp
Kyuvi has quit [Ping timeout: 250 seconds]
azimut has joined #commonlisp
bendersteed has joined #commonlisp
shka has joined #commonlisp
danse-nr3 has joined #commonlisp
danse-nr3 has quit [Remote host closed the connection]
danse-nr3 has joined #commonlisp
bilegeek has quit [Quit: Leaving]
X-Scale has quit [Quit: Client closed]
dino__ has joined #commonlisp
knusbaum has quit [Ping timeout: 260 seconds]
thuna` has quit [Remote host closed the connection]
jmdaemon has quit [Ping timeout: 256 seconds]
traidare has joined #commonlisp
pfdietz has quit [Quit: Client closed]
msavoritias has joined #commonlisp
amb007 has quit [Ping timeout: 260 seconds]
amb007 has joined #commonlisp
_cymew_ has joined #commonlisp
danse-nr3 has quit [Read error: Connection reset by peer]
danse-nr3 has joined #commonlisp
amb007 has quit [Ping timeout: 260 seconds]
traidare has quit [Ping timeout: 264 seconds]
tok has joined #commonlisp
Kyuvi has joined #commonlisp
dcb has quit [Quit: Connection closed for inactivity]
dnhester has joined #commonlisp
X-Scale has joined #commonlisp
X-Scale has quit [Client Quit]
specbot has quit [Remote host closed the connection]
specbot has joined #commonlisp
X-Scale has joined #commonlisp
chomwitt has quit [Ping timeout: 255 seconds]
X-Scale has quit [Quit: Client closed]
flounders has quit [Ping timeout: 240 seconds]
Jach has quit [Ping timeout: 268 seconds]
X-Scale has joined #commonlisp
epony has joined #commonlisp
dnhester` has quit [Ping timeout: 246 seconds]
dnhester has quit [Ping timeout: 268 seconds]
waleee has joined #commonlisp
X-Scale has quit [Ping timeout: 250 seconds]
green_ has quit [Ping timeout: 256 seconds]
dnhester` has joined #commonlisp
dnhester has joined #commonlisp
Renfield has quit [Ping timeout: 268 seconds]
flounders has joined #commonlisp
knusbaum has joined #commonlisp
mgl has quit [Remote host closed the connection]
mgl has joined #commonlisp
<younder>
(defun string-join (&rest strings &key (sep " ")) ...) as this (string-join "the" "fat" "cat" "shat" "on" "the" "mat") gives the error "odd number of &KEY arguments". Why?
<beach>
Because every parameter is a &KEY parameter (and there is only one of them) so there must be an even number of arguments.
<younder>
I read it a list of strings and a optional separator sep which defaults to " "
<beach>
But that's not what it means.
<younder>
Not optional - a keyword with a default argument
<younder>
Well that makes no sense to me. Why does does it think the is a key?
<younder>
"the"
danse-nr3 has quit [Read error: Connection reset by peer]
<beach>
Your definition means a function that takes only keyword arguments (so there must be an even number of arguments), and whatever arguments you pass are going to end up in the STRINGS &REST parameter.
<_death>
"In this case the remaining arguments are used for both purposes; that is, all remaining arguments are made into a list for the rest parameter, and are also processed for the &key parameters."
<_death>
in your case, either remove &rest specifier and just pass a list of strings and possible key arguments (the sane option), or leave &rest and remove &key and do your own keyword-like processing in the function (the stareyed teenage lisper option)
<beach>
_death: How would removing the &REST parameter make it possible to pass a list of strings?
tyson2 has joined #commonlisp
<_death>
beach: the signature would then be (defun string-join (strings &key (sep ...)) ...)
<beach>
Ah, so you mean add a required parameter, which you didn't say.
<_death>
beach: right, I said remove the specifier not the variable
<younder>
_death, yeah that's what I did
<beach>
_death: That's a "lambda-list keyword", not a "specifier".
<beach>
... which is why I didn't understand.
<_death>
beach: you're right :)
<younder>
just (string-join (list "string1 "string2"))
green_ has joined #commonlisp
yitzi has joined #commonlisp
danse-nr3 has joined #commonlisp
danse-nr3 has quit [Remote host closed the connection]
danse-nr3 has joined #commonlisp
<_death>
beach: (just a small note, lambda-list keywords are specifiers.. I could've been more specific)
Devon has quit [Ping timeout: 256 seconds]
<_death>
ok, I'm wrong again :).. "Each element of a lambda list is either a parameter specifier or a lambda list keyword.", so the specifier would be the symbol STRINGS.. now I need to internalize this terminological update ;)
traidare has joined #commonlisp
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
<dnhester`>
does anyone here use coleslaw?
green_ has quit [Remote host closed the connection]
pranavats has left #commonlisp [Error from remote client]
<beach>
_death: Good luck! :)
NicknameJohn has joined #commonlisp
pranavats has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
josrr has joined #commonlisp
epony has quit [Read error: Connection reset by peer]
<jcowan>
I'm done here, at least for the present. I'll still be available on #scheme (or so I expect) and #lisp (or so I expect).
<younder>
The hyperspec is too obtuse for me, I need examples.
czy` has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.2.50)]
jcowan has left #commonlisp [#commonlisp]
dnhester has quit [Remote host closed the connection]
dnhester` has quit [Read error: Connection reset by peer]
tyson2 has quit [Read error: Connection reset by peer]
czy has joined #commonlisp
even4voi1 has quit [Quit: leaving]
even4void has joined #commonlisp
NicknameJohn has quit [Ping timeout: 264 seconds]
wacki has quit [Read error: Connection reset by peer]
danse-nr3 has quit [Ping timeout: 264 seconds]
unl0ckd has quit [Ping timeout: 268 seconds]
random-nick has joined #commonlisp
pranavats has joined #commonlisp
wacki has joined #commonlisp
tyson2 has joined #commonlisp
danse-nr3 has joined #commonlisp
epony has joined #commonlisp
ebrasca has joined #commonlisp
ebrasca has quit [Client Quit]
ebrasca has joined #commonlisp
Alfr has quit [Remote host closed the connection]
Alfr has joined #commonlisp
ymir has joined #commonlisp
bendersteed has quit [Quit: bendersteed]
<edgar-rft>
younder: Practical Common Lisp has a whole chapter about &optional, &rest, and &key parameters and what happens if you mix them with examples -> https://gigamonkeys.com/book/functions
<ixelp>
Functions
ymir has quit [Ping timeout: 246 seconds]
pfdietz has joined #commonlisp
ebrasca has quit [Remote host closed the connection]
ebrasca has joined #commonlisp
ebrasca has quit [Remote host closed the connection]
jon_atack has quit [Ping timeout: 264 seconds]
triffid has joined #commonlisp
k_hachig has joined #commonlisp
k_hachig has quit [Ping timeout: 255 seconds]
mm007emko has quit [Ping timeout: 252 seconds]
mm007emko has joined #commonlisp
ebrasca has joined #commonlisp
ec_ has joined #commonlisp
tyson2 has quit [Read error: Connection reset by peer]
ec has quit [Ping timeout: 255 seconds]
k_hachig has joined #commonlisp
k_hachig has quit [Ping timeout: 264 seconds]
epony has quit [Remote host closed the connection]
epony has joined #commonlisp
danse-nr3 has quit [Read error: Connection reset by peer]
danse-nr3 has joined #commonlisp
k_hachig has joined #commonlisp
epony has quit [Remote host closed the connection]
k_hachig has quit [Ping timeout: 264 seconds]
msavoritias has quit [Ping timeout: 260 seconds]
pranavats has left #commonlisp [Disconnected: Replaced by new connection]
pranavats has joined #commonlisp
mm007emko has quit [Read error: Connection reset by peer]
mm007emko has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
k_hachig has joined #commonlisp
epony has joined #commonlisp
ymir has joined #commonlisp
zetef has joined #commonlisp
zetef has quit [Remote host closed the connection]
awlygj has quit [Remote host closed the connection]
dcb has joined #commonlisp
lagash has quit [Ping timeout: 268 seconds]
k_hachig has quit [Ping timeout: 264 seconds]
danse-nr3 has quit [Ping timeout: 256 seconds]
prokhor has quit [Remote host closed the connection]
prokhor has joined #commonlisp
dra has quit [Remote host closed the connection]
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
gilberth has quit [Ping timeout: 264 seconds]
ixelp has quit [Ping timeout: 264 seconds]
rogersm has joined #commonlisp
tyson2 has joined #commonlisp
ixelp has joined #commonlisp
knusbaum has quit [Ping timeout: 268 seconds]
ymir has quit [Ping timeout: 255 seconds]
alcor has joined #commonlisp
igemnace has quit [Remote host closed the connection]
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
k_hachig has joined #commonlisp
yitzi has quit [Remote host closed the connection]
ldb has joined #commonlisp
epony has quit [Remote host closed the connection]
<mrvdb>
hi commonlisp! The line https://github.com/antifuchs/idna/blob/develop/decode.lisp#L16 causes a compile failure (I am on a ppc64 machine, using GUIX, sbcl 2.4.0) Is this implementation dependent? I'm assuming, given the age of that code, it has compiled successfully.
ldb has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
<shka>
oh, that is likely not because of debug!
zupss is now known as zups
<mrvdb>
oh? commenting out the line fixes it though
<shka>
yeah, but this check OUTPUT variable
<shka>
it starts as nil
<shka>
then it becomes some list because of nconc
<shka>
but in line 97, it is used as a vector
<shka>
that's why Derived type of COMMON-LISP-USER::OUTPUT is list
<shka>
but asserted type is vector
<mrvdb>
yeah, i understand the cause of the error, i'm just surprised it wont compile given the age of the code and usage in other packages.
<shka>
add something like for elt on output in line 95
amb007 has joined #commonlisp
<shka>
and replace (aref output i) with (car elt) in line 97
<shka>
and line 98
<shka>
then it should be fine, i think
attila_lendvai_ has joined #commonlisp
<shka>
uh, this code is so ugly
* mrvdb
nods
<shka>
this could be just (map 'string (lambda (case-flag output) (if case-flag (char-code (char-upcase (code-char output)))))) output) case-flags output)
<shka>
also code-char inside lambda
<shka>
still, just one map, no need for loop AND map
mulk has quit [Ping timeout: 255 seconds]
mulk has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
<shka>
*gosh*
<shka>
i can't think today and this ironclad question shows
tyson2 has joined #commonlisp
YaVolvod has left #commonlisp [WeeChat 4.2.1]
chomwitt has quit [Ping timeout: 255 seconds]
msavoritias has joined #commonlisp
rogersm has quit [Remote host closed the connection]
NicknameJohn has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
lispmacs[work] has joined #commonlisp
szkl has quit [Quit: Connection closed for inactivity]
msavoritias has quit [Remote host closed the connection]
pfdietz has quit [Quit: Client closed]
NicknameJohn has quit [Ping timeout: 264 seconds]
lagash has joined #commonlisp
notzmv is now known as livoreno
rogersm has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
rogersm has quit [Remote host closed the connection]
amb007 has joined #commonlisp
Kyuvi has quit [Quit: Client closed]
epony has quit [Remote host closed the connection]
epony has joined #commonlisp
rogersm has joined #commonlisp
rogersm has quit [Remote host closed the connection]
gilberth has joined #commonlisp
NicknameJohn has joined #commonlisp
Kyuvi has joined #commonlisp
rgherdt has quit [Ping timeout: 268 seconds]
yitzi has joined #commonlisp
rgherdt has joined #commonlisp
ronald_ has quit [Ping timeout: 255 seconds]
ronald has joined #commonlisp
epony has quit [Remote host closed the connection]
epony has joined #commonlisp
waleee has quit [Ping timeout: 264 seconds]
waleee has joined #commonlisp
_cymew_ has quit [Ping timeout: 272 seconds]
rogersm has joined #commonlisp
alcor has quit [Remote host closed the connection]
alcor has joined #commonlisp
pve has quit [Quit: leaving]
alcor has quit [Remote host closed the connection]
ymir has quit [Ping timeout: 255 seconds]
alcor has joined #commonlisp
mgl_ has joined #commonlisp
mgl has quit [Read error: Connection reset by peer]
chomwitt has joined #commonlisp
tfeb has joined #commonlisp
k_hachig has quit [Ping timeout: 264 seconds]
cage has quit [Quit: rcirc on GNU Emacs 29.1]
rogersm has quit [Remote host closed the connection]
tfeb has quit [Quit: died]
k_hachig has joined #commonlisp
attila_lendvai_ has quit [Ping timeout: 255 seconds]
mariari has quit [Ping timeout: 256 seconds]
mgl_ has quit [Ping timeout: 255 seconds]
mariari has joined #commonlisp
thuna` has quit [Remote host closed the connection]
k_hachig has quit [Ping timeout: 255 seconds]
SAL9000 has quit [Quit: WeeChat 4.1.2]
prokhor has quit [Remote host closed the connection]
alcor has quit [Remote host closed the connection]
alcor has joined #commonlisp
yitzi has quit [Remote host closed the connection]
NicknameJohn has quit [Ping timeout: 272 seconds]
SAL9000 has joined #commonlisp
ymir has joined #commonlisp
prokhor has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
Kyuvi has quit [Quit: Client closed]
rogersm has joined #commonlisp
rogersm has quit [Read error: Connection reset by peer]
tok has quit [Remote host closed the connection]
mgl_ has joined #commonlisp
Renfield has joined #commonlisp
traidare has quit [Ping timeout: 272 seconds]
shka has quit [Ping timeout: 255 seconds]
tfeb has joined #commonlisp
rgherdt has quit [Quit: Leaving]
tfeb has quit [Client Quit]
epony has quit [Remote host closed the connection]
epony has joined #commonlisp
chomwitt has quit [Ping timeout: 246 seconds]
a51 has joined #commonlisp
alcor has quit [Remote host closed the connection]
knusbaum has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
mm007emko has quit [Read error: Connection reset by peer]
mm007emko has joined #commonlisp
amb007 has quit [Ping timeout: 255 seconds]
ymir has quit [Ping timeout: 264 seconds]
dino__ has quit [Ping timeout: 260 seconds]
amb007 has joined #commonlisp
random-nick has quit [Ping timeout: 252 seconds]
alcor has joined #commonlisp
pillton has joined #commonlisp
k_hachig has joined #commonlisp
ymir has joined #commonlisp
donleo has quit [Ping timeout: 246 seconds]
alcor has quit [Remote host closed the connection]