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/>
yitzi has quit [Ping timeout: 260 seconds]
yitzi has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
cladur has joined #commonlisp
snits has quit [Read error: Connection reset by peer]
snits has joined #commonlisp
cladur has quit [Ping timeout: 256 seconds]
rgherdt has joined #commonlisp
NotThatRPG_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cladur has joined #commonlisp
cladur has quit [Ping timeout: 256 seconds]
cladur has joined #commonlisp
dnhester26 has joined #commonlisp
cladur has quit [Ping timeout: 255 seconds]
epony has quit [Remote host closed the connection]
epony has joined #commonlisp
pve has quit [Quit: leaving]
rgherdt has quit [Ping timeout: 255 seconds]
cladur has joined #commonlisp
Alfr has quit [Killed (cadmium.libera.chat (Nickname regained by services))]
Alfr has joined #commonlisp
cladur has quit [Ping timeout: 268 seconds]
rgherdt has joined #commonlisp
dra has quit [Quit: Leaving]
kevingal has quit [Remote host closed the connection]
cladur has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 264 seconds]
cladur has quit [Ping timeout: 276 seconds]
Lord_of_Life_ is now known as Lord_of_Life
abrantesasf has quit [Remote host closed the connection]
rgherdt has quit [Quit: Leaving]
chomwitt has quit [Ping timeout: 264 seconds]
Pixel_Outlaw has joined #commonlisp
NicknameJohn has quit [Ping timeout: 246 seconds]
dcb has quit []
dcb has joined #commonlisp
NotThatRPG has joined #commonlisp
NotThatRPG has quit [Client Quit]
cladur has joined #commonlisp
random-nick has quit [Ping timeout: 256 seconds]
cladur has quit [Ping timeout: 246 seconds]
cladur has joined #commonlisp
lispmacs[work] has quit [Read error: Connection reset by peer]
cladur has quit [Ping timeout: 255 seconds]
cladur has joined #commonlisp
Jach has quit [Ping timeout: 256 seconds]
Jach has joined #commonlisp
yitzi has quit [Remote host closed the connection]
BrokenCog is now known as Gojira
cladur has quit [Remote host closed the connection]
cladur has joined #commonlisp
cladur has quit [Remote host closed the connection]
NicknameJohn has joined #commonlisp
NicknameJohn has quit [Ping timeout: 245 seconds]
herjazz has joined #commonlisp
cladur has joined #commonlisp
cladur has quit [Ping timeout: 256 seconds]
cladur has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
rtypo has quit [Ping timeout: 240 seconds]
waleee has quit [Ping timeout: 245 seconds]
herjazz has quit [Quit: leaving]
bjorkint0sh has joined #commonlisp
bjorkintosh has quit [Ping timeout: 245 seconds]
Pixel_Outlaw has quit [Quit: Leaving]
Oladon has joined #commonlisp
NotThatRPG has joined #commonlisp
cladur_ has joined #commonlisp
cladur has quit [Ping timeout: 245 seconds]
bjorkint0sh has quit [Ping timeout: 245 seconds]
<Gojira> question about map function. I'm trying to pass a keyword to the function: (map 'list testfunc alst :num num) ... the keyword :num belongs to testfunc ... but it's being consumed by map. any suggestions??
<beach> (map 'list (lambda (x) (funcall testfuc :num num)) alst)
<Gojira> ah ... presumably (map 'list (lambda (x) (funcall testfunc alst :num num))) works as well ... finding out.
<beach> Gojira: But you really need better naming. Not TESTFUNC, ALST, :NUM, NUM.
<beach> Well, I presume the TESTFUNC applies to a single element of ALST.
<beach> So then you don't want (FUNCALL TESTFUNC ALST) because then it applies to the entire list.
<Gojira> ahh no. I'm typing what you suggested and now realizing that's what you were thinking ... i do wnat it to the list. Originally I had:
<Gojira> (map 'list testfunc alst)
<beach> Then TESTFUNC applies to a single element.
<Gojira> but, I want (testfunc alst :key num) to be mapped.
<Gojira> right.
<beach> ,(map 'list #'1+ '(1 2 3 4 5))
<ixelp> (map 'list #'1+ '(1 2 3 4 5)) => (2 3 4 5 6)
<beach> Here 1+ applies to each element. Not to the list.
<beach> But (FUNCALL TESTFUNC ALST) will apply TESTFUNC to the entire list. Not to each element.
<beach> ,(funcall #'list '(1 2 3))
<ixelp> (funcall #'list '(1 2 3)) => ((1 2 3))
<Gojira> correct. because funcall expects a list of lists.
<beach> *sigh*
<Gojira> osrry ..
<beach> No, FUNCALL applies its first argument to the remaining arguments.
<Gojira> correct. because testfunc expects a lidst of lists.
<beach> I don't think so.
<Gojira> don't think what?
<beach> You said (map 'list testfunc alst), so then TESTFUNC is applied to each element of ALST.
cladur_ has quit [Remote host closed the connection]
<Gojira> and alst is a list of lists.
<Gojira> so testfunc will get a list.
<beach> Fair enough, but that is not important here.
<Gojira> correct.
<Gojira> i want map to not consume :key, but instead pass it to testfunc.
<Gojira> along with alst
<beach> Until now, you have not told us the shape of ALST not what TESTFUNC does.
<Gojira> didn't seem important here.
<beach> But I showed you how to do that.
<beach> It is not important.
<Gojira> presumably then it should be (lambda (x) (funcall testfunc x :num num))??
<beach> What is important is that you want the second argument to MAP to be a function with a single parameter, since you are giving only one sequence for it to map over.
cladur has joined #commonlisp
<Gojira> right.
<beach> Ah, yes, I forgot the X in my example.
<Gojira> okay. that's what i was syaing originally wasn't right.
<beach> But you said (funcall testfunc alst :num num) and not (funcall testfunc x :num num)
<beach>
<Gojira> right. I confused myself :)>
cladur has quit [Remote host closed the connection]
ym has joined #commonlisp
robin has joined #commonlisp
cladur has joined #commonlisp
<beach> Gojira: What you are doing is known as "currying", and there are library functions that can do that for you.
<beach> Presumably named after Haskell Curry.
<beach> I haven't tested this, but (map 'list (alexandria:rcurry testfunc :num num) alst) or something like that might work.
<beach> ... but you really need to improve the names of your functions and variables.
rainthree has joined #commonlisp
ronald_ has quit [Ping timeout: 245 seconds]
ronald has joined #commonlisp
<Gojira> I know of the concept but I've never been able to get my head around it. Don't even understand it enough to recognize when it's relevant :)> [currying].
<beach> You can read up on it on Wikipedia.
NicknameJohn has joined #commonlisp
rainthree has quit [Ping timeout: 252 seconds]
Oladon has quit [Quit: Leaving.]
olnw has joined #commonlisp
Alfr has quit [Remote host closed the connection]
Alfr has joined #commonlisp
notzmv has quit [Ping timeout: 256 seconds]
olnw has quit [Remote host closed the connection]
lagash has quit [Ping timeout: 260 seconds]
<beach> In the DEFCLASS macro, it is indicated that the slot name must be a symbol that is syntactically valid for use as a variable name. But I can't find any such restrictions in the MOP specification for class initialization. I suppose a custom direct slot specification class could allow any old slot name.
azimut has joined #commonlisp
cladur has quit [Quit: Leaving...]
azimut has quit [Ping timeout: 240 seconds]
Aesth has joined #commonlisp
agm has joined #commonlisp
<agm> if you set *READ-SUPPRESS* manually, how do you go back?
<beach> ::clhs *read-suppress*
<ixelp> CLHS: Variable *READ-SUPPRESS*
<beach> agm: You set it back.
azimut has joined #commonlisp
<beach> Or you can bind it instead of setting it.
<agm> yeah okay, but you can't read a SETQ form
<beach> What?
<agm> if you're in the repl, once you set that variable you can't read other forms, i think...
<beach> I mean, of course you can. But I don't see how that is relevant.
<beach> Then don't set it manually.
<agm> haha i agree
<beach> "This variable is intended primarily to support the operation of the read-time conditional notations #+ and #-."
<agm> yes, maybe that page should include some kind of warning
<beach> agm: Good idea. I suggest you contribute such a thing to the language reference document that dnhester26 is creating.
<agm> i'll consider that
<beach> We can't directly modify that page, so this is the best we can do I think.
epony has quit [Remote host closed the connection]
mgl has joined #commonlisp
robin has quit [Ping timeout: 276 seconds]
mgl has quit [Ping timeout: 268 seconds]
iska has joined #commonlisp
notzmv has joined #commonlisp
chomwitt has joined #commonlisp
NicknameJohn has quit [Ping timeout: 245 seconds]
rainthree has joined #commonlisp
dinomug has quit [Remote host closed the connection]
pve has joined #commonlisp
shka has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
attila_lendvai has joined #commonlisp
<dnhester26> agm: with this link you can just edit the page (I think without having to do a fork etc) https://github.com/lisp-docs/cl-language-reference/tree/develop/docs/chap-23/cd-c-dictionary/read-suppress_variable.md
<dnhester26> If you are modifying the original specficiation because of an error instead of adding information then you can modify the original spec file here: https://github.com/lisp-docs/cl-language-reference/blob/develop/docs/chap-23/cd-c-dictionary/_read-suppress_variable.md
<dnhester26> Notice it's imported in the first file, and named the same with an additional `_` underscore prefix
<hayley> I'm told I need to make a fork when I press the edit button.
chomwitt has quit [Ping timeout: 256 seconds]
kenanb has joined #commonlisp
NicknameJohn has joined #commonlisp
danse-nr3 has joined #commonlisp
dino_tutter has joined #commonlisp
<agm> dnhester26: thanks
<dnhester26> agm I didn't mean to bother though so no pressure, just trying to remove the friction if you were actually thinking of writing something
<dnhester26> hayley: ok, sorry, I didn't know. I guess since I'm in the repo it just let me make the change
<dnhester26> agm hayley if anyone wants to just be added to the repo to skip the fork process I can also add you if you give me your github username
traidare has joined #commonlisp
traidare2 has joined #commonlisp
traidare has quit [Ping timeout: 255 seconds]
traidare2 has quit [Ping timeout: 260 seconds]
traidare has joined #commonlisp
traidare has quit [Ping timeout: 245 seconds]
traidare has joined #commonlisp
_cymew_ has joined #commonlisp
rainthree has quit [Ping timeout: 252 seconds]
danse-nr3 has quit [Read error: Connection reset by peer]
danse-nr3 has joined #commonlisp
traidare has quit [Ping timeout: 276 seconds]
traidare has joined #commonlisp
agm has quit [Ping timeout: 255 seconds]
rgherdt has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
rtypo has joined #commonlisp
Aesth has quit [Read error: Connection reset by peer]
random-nick has joined #commonlisp
waleee has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
shka has joined #commonlisp
dino_tutter has quit [Quit: Leaving]
waleee has quit [Ping timeout: 240 seconds]
waleee has joined #commonlisp
danse-nr3 has quit [Ping timeout: 256 seconds]
dino_tutter has joined #commonlisp
son0p has quit [Ping timeout: 276 seconds]
Lycurgus has joined #commonlisp
kevingal has joined #commonlisp
rtypo has quit [Ping timeout: 256 seconds]
mgl has joined #commonlisp
danse-nr3 has joined #commonlisp
jonatack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
luis5 has joined #commonlisp
mgl has quit [Ping timeout: 256 seconds]
meritamen has joined #commonlisp
mgl has joined #commonlisp
meritamen has quit [Client Quit]
meritamen has joined #commonlisp
mgl has quit [Ping timeout: 276 seconds]
attila_lendvai has quit [Ping timeout: 256 seconds]
josrr has joined #commonlisp
danse-nr3 has quit [Remote host closed the connection]
danse-nr3 has joined #commonlisp
yitzi has joined #commonlisp
cage has joined #commonlisp
jmdaemon has quit [Ping timeout: 264 seconds]
kevingal has quit [Ping timeout: 246 seconds]
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has quit [Changing host]
bjorkintosh has quit [Read error: Connection reset by peer]
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
son0p has joined #commonlisp
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
dino_tutter has quit [Ping timeout: 252 seconds]
dra has joined #commonlisp
<Shinmera> By the way... you can now get Kandria and its fabulous OST in a bundle with some extra bits off on Steam (it's on sale!): https://store.steampowered.com/bundle/37667/Kandria__OST/
<ixelp> Welcome to Steam
<Shinmera> And for those not in the know, Kandria is a Lisp game: https://github.com/shirakumo/kandria
<ixelp> GitHub - Shirakumo/kandria: A post-apocalyptic actionRPG. Now on Steam!
jonatack has quit [Ping timeout: 256 seconds]
jonatack has joined #commonlisp
seok has quit [Quit: Client closed]
jonatack has quit [Ping timeout: 264 seconds]
seok has joined #commonlisp
waleee has quit [Ping timeout: 252 seconds]
jonatack has joined #commonlisp
rgherdt has joined #commonlisp
dnhester26 has joined #commonlisp
rtypo has joined #commonlisp
seok has quit [Quit: Client closed]
danse-nr3 has quit [Read error: Connection reset by peer]
seok has joined #commonlisp
danse-nr3 has joined #commonlisp
shka has quit [Read error: Connection reset by peer]
drewjose has quit [Quit: have a nice day ^_^]
shka has joined #commonlisp
meritamen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
drewjose has joined #commonlisp
drewjose has quit [Remote host closed the connection]
drewjose has joined #commonlisp
epony has joined #commonlisp
pfdietz has quit [Quit: Client closed]
<paulapatience> Shinmera: Is this normal? https://plaster.tymoon.eu/view/4052
<paulapatience> Basically pathname-utils:native-namestring fails when provided with the result of asdf:system-relative-pathname when it has no type.
<paulapatience> Tried on the latest commit.
rainthree has joined #commonlisp
rgherdt has quit [Ping timeout: 240 seconds]
bjorkintosh has quit [Remote host closed the connection]
bjorkintosh has joined #commonlisp
cage has quit [Remote host closed the connection]
pfdietz has joined #commonlisp
drewjose has quit [Quit: have a nice day ^_^]
lispmacs[work] has joined #commonlisp
<lispmacs[work]> hi, what is the trick again for quieting the style warning when a specific parameter variable is not used in a specific function
<beach> (declare (ignore <name>))
<pfdietz> Or ignorable (which is better in macros where the parameter *might* be ignored, or might not be.)
<lispmacs[work]> okay, thanks
<yitzi> Also better when there are #+/#- in the body.
<pfdietz> Also, if it's a method, you can specify (<param> t) and you don't the warning if it isn't used (but if you just write <param> in the parameter list, it does.)
<beach> pfdietz: What passage in the standard says that?
<bike> "The expansion of the defmethod macro ``refers to'' each specialized parameter (see the description of ignore within the description of declare). This includes parameters that have an explicit parameter specializer name of t." in clhs defmethod
<beach> Thank you!
<pfdietz> Right, on the page for defmethod.
<bike> technically it's undefined whether an unspecialized parameter is "referred to". sbcl treats every parameter as being referred to, specialized or not
<beach> SBCL apparently declares every parameter, specialized or not, as IGNORABLE.
<pfdietz> I think that may have changed at some point?   Vague memory.
<beach> Doesn't sound like a good idea to me.
<pfdietz> It might be nice to have a NOT IGNORABLE declaration, meaning this code must refer to the name.
<beach> That would have been a good idea.
<beach> Hmm, does this mean that if a specialized parameter is explicitly declared IGNORE, that would deserve a warning?
kenanb has quit [Read error: Connection reset by peer]
<paulapatience> CCL warns, though.
<beach> Good! SBCL does not.
kenanb has joined #commonlisp
pfdietz has quit [Quit: Client closed]
dino_tutter has joined #commonlisp
traidare has quit [Ping timeout: 268 seconds]
Aesth has joined #commonlisp
attila_lendvai has joined #commonlisp
jonatack has quit [Ping timeout: 268 seconds]
jonatack has joined #commonlisp
jonatack has quit [Ping timeout: 256 seconds]
mgl has joined #commonlisp
pfdietz has joined #commonlisp
<pfdietz> I *think* sbcl could do it if line 732 of src/pcl/boot.lisp were changed.
danse-nr3 has quit [Ping timeout: 260 seconds]
tyson2 has quit [Remote host closed the connection]
danse-nr3 has joined #commonlisp
Aesth has quit [Read error: Connection reset by peer]
seok has quit [Quit: Client closed]
seok has joined #commonlisp
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
<scymtym> regarding the editor work beach mentioned yesterday: i'm currently working on an editing library one layer above the cluffer library (which handles items, lines and cursors within a buffer)
<scymtym> this new library is independent of any user interface or command processor and provides the usual operations for movement and editing of objects (like items, words, expressions, etc), multiple cursors, marks and regions. there is also code for incremental search, undo and "abbrevs"
tyson2 has joined #commonlisp
<mfiano> Great!
Aesth has joined #commonlisp
decweb has quit [Ping timeout: 260 seconds]
justache is now known as justResolute
justResolute is now known as justIrresolute
decweb has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
decweb has quit [Ping timeout: 245 seconds]
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
decweb has joined #commonlisp
dajole has joined #commonlisp
tyson2` has joined #commonlisp
tyson2` has quit [Remote host closed the connection]
tyson2` has joined #commonlisp
tyson2 has quit [Ping timeout: 255 seconds]
Kyuvi has joined #commonlisp
danse-nr3 has quit [Read error: Connection reset by peer]
<jcowan> scymtym: oooh, shiny
<jcowan> how are words defined?
dnhester26 has joined #commonlisp
ronald_ has joined #commonlisp
ronald has quit [Read error: Connection reset by peer]
waleee has joined #commonlisp
<Gojira> question about loop. I'd like to iterate a list, with element being (car alist) and nextelement being (cadr alist). Is this possible using loop?
<pfdietz> You can destructure in loop.
<pfdietz> (loop for (a . b) in alist ...)
<Gojira> ahhhh. thanks!
<scymtym> jcowan: at the moment, a word is just a sequence of non-whitespace, non-punctuation characters. the more important idea is that most operations take a "unit" such as WORD and a "direction" and apply some universal machinery to iterate over the corresponding buffer items. so Emacs' DELETE-FORWARD-CHAR, KILL-LINE BACKWARD-KILL-PARAGRAPH and friends is one function, motion is one function changing case is one function and so on.
<scymtym> most operations will just work if new "units" are defined although sometimes tweaks are added. here are some examples in a very old version of the manual: https://scymtym.github.io//text.editing/text.html#Units
<ixelp> text.editing User’s Manual
<jcowan> Fair enough. I was hoping a word would be defined by a regular expression.
<jcowan> If you use a Thompson DFA it's performant enough.
<ixelp> Implementing Regular Expressions
tyson2`` has joined #commonlisp
tyson2`` has quit [Remote host closed the connection]
ronald_ has quit [Ping timeout: 264 seconds]
ym has quit [Ping timeout: 264 seconds]
tyson2` has quit [Ping timeout: 255 seconds]
ronald has joined #commonlisp
danse-nr3 has joined #commonlisp
Aesth has quit [Read error: Connection reset by peer]
akoana has joined #commonlisp
<scymtym> it could be. i'm also integrating hayley's one-more-re-nightmare library. primarily for re search but there is no reason it couldn't be used for "unit" predicates as well
skeemer has quit [Ping timeout: 252 seconds]
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
cage has joined #commonlisp
rainthree has quit [Ping timeout: 256 seconds]
<Shinmera> paulapatience: it is not. A fix is up in f28068a
<Shinmera> Also handles other pathname component types better now.
<Shinmera> So thanks for the report!
akoana has quit [Quit: leaving]
<paulapatience> Super! Thanks for the quick fix.
_cymew_ has quit [Ping timeout: 252 seconds]
skeemer has joined #commonlisp
Pixel_Outlaw has joined #commonlisp
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
<Shinmera> It would have been much quicker if I had been in a place with wifi
<Shinmera> had to wait to get home to push the fix
kenanb has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.1)]
lispmacs[work] has quit [Remote host closed the connection]
Kyuvi has quit [Ping timeout: 250 seconds]
Fare has joined #commonlisp
Fare has quit [Ping timeout: 260 seconds]
green_ has quit [Remote host closed the connection]
green_ has joined #commonlisp
jonatack has joined #commonlisp
jonatack has quit [Ping timeout: 256 seconds]
seok has quit [Quit: Client closed]
seok has joined #commonlisp
danse-nr3 has quit [Ping timeout: 256 seconds]
Fare has joined #commonlisp
varjag has joined #commonlisp
kenanb has joined #commonlisp
Aesth has joined #commonlisp
robin has joined #commonlisp
jmdaemon has joined #commonlisp
yitzi has quit [Remote host closed the connection]
chomwitt has joined #commonlisp
jonatack has joined #commonlisp
josrr has quit [Remote host closed the connection]
jon_atack has joined #commonlisp
son0p has quit [Remote host closed the connection]
jonatack has quit [Ping timeout: 256 seconds]
green_ has quit [Ping timeout: 256 seconds]
josrr has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 29.1]
Kyuvi has joined #commonlisp
attila_lendvai has quit [Ping timeout: 276 seconds]
green_ has joined #commonlisp
notzmv has quit [Ping timeout: 255 seconds]
zetef has joined #commonlisp
edgar-rft has quit [Quit: don't waste your life by reading this]
edgar-rft has joined #commonlisp
yitzi has joined #commonlisp
donleo has joined #commonlisp
lispmacs[work] has joined #commonlisp
<lispmacs[work]> Is there a way to (unbind?) a method I've defined with defmethod, without restarting the inferior lisp (in SLIME)?
shka has quit [Ping timeout: 260 seconds]
<_death> I usually inspect the generic function and use the remove method button (C-c I #'gf-name RET)
azimut has quit [Ping timeout: 240 seconds]
dnhester26 has quit [Remote host closed the connection]
dustinm` has quit [Quit: Leaving]
Aesth has quit [Read error: Connection reset by peer]
dino_tutter has quit [Ping timeout: 264 seconds]
chomwitt has quit [Ping timeout: 256 seconds]
dustinm` has joined #commonlisp
Lord_Nightmare has quit [Quit: ZNC - http://znc.in]
varjag has quit [Quit: ERC 5.4.1 (IRC client for GNU Emacs 29.0.50)]