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/>
taiju has joined #commonlisp
qhong has quit [Read error: Connection reset by peer]
qhong has joined #commonlisp
ahlk has joined #commonlisp
livoreno has quit [Ping timeout: 240 seconds]
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
triffid has quit [Remote host closed the connection]
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
triffid has joined #commonlisp
waleee has quit [Ping timeout: 260 seconds]
sjl has quit [Ping timeout: 245 seconds]
danieli6 has joined #commonlisp
ecraven has quit [Ping timeout: 260 seconds]
ecraven has joined #commonlisp
danieli has quit [Ping timeout: 268 seconds]
danieli6 is now known as danieli
thuna` has quit [Remote host closed the connection]
triffid has quit [Ping timeout: 268 seconds]
triffid has joined #commonlisp
sjl has joined #commonlisp
jealousmonk has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
triffid has quit [Ping timeout: 268 seconds]
triffid has joined #commonlisp
knusbaum has quit [Quit: ZNC 1.8.2 - https://znc.in]
knusbaum has joined #commonlisp
Oddity has joined #commonlisp
varjag has quit [Ping timeout: 252 seconds]
dec0d3r has joined #commonlisp
jack_rabbit has joined #commonlisp
knusbaum has quit [Ping timeout: 245 seconds]
knusbaum has joined #commonlisp
jack_rabbit has quit [Ping timeout: 252 seconds]
NotThatRPG_ has joined #commonlisp
NotThatRPG has quit [Ping timeout: 252 seconds]
viaken has quit [Quit: reboop]
varjag has joined #commonlisp
varjag has quit [Ping timeout: 245 seconds]
mon_aaraj has quit [Ping timeout: 252 seconds]
mon_aaraj has joined #commonlisp
viaken has joined #commonlisp
NotThatRPG_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
varjag has joined #commonlisp
livoreno has joined #commonlisp
varjag has quit [Ping timeout: 252 seconds]
taiju has quit [Ping timeout: 244 seconds]
danieli has quit [Remote host closed the connection]
danieli has joined #commonlisp
danieli has quit [Read error: Connection reset by peer]
danieli has joined #commonlisp
danieli has quit [Remote host closed the connection]
danieli has joined #commonlisp
danieli has quit [Read error: Connection reset by peer]
danieli has joined #commonlisp
varjag has joined #commonlisp
varjag has quit [Ping timeout: 268 seconds]
varjag has joined #commonlisp
jeosol has quit [Quit: Client closed]
varjag has quit [Ping timeout: 245 seconds]
azimut has joined #commonlisp
jeosol has joined #commonlisp
anticomputer has quit [Ping timeout: 268 seconds]
anticomputer has joined #commonlisp
parjanya has quit [Read error: Connection reset by peer]
yauhsien has joined #commonlisp
hineios5 has joined #commonlisp
hineios has quit [Ping timeout: 252 seconds]
hineios5 is now known as hineios
yauhsien has quit [Ping timeout: 268 seconds]
varjag has joined #commonlisp
varjag has quit [Ping timeout: 272 seconds]
bilegeek has quit [Quit: Leaving]
azimut has quit [Remote host closed the connection]
azimut has joined #commonlisp
varjag has joined #commonlisp
MajorBiscuit has joined #commonlisp
varjag has quit [Ping timeout: 268 seconds]
shka has joined #commonlisp
azimut has quit [Remote host closed the connection]
anticomputer has quit [Remote host closed the connection]
azimut has joined #commonlisp
anticomputer has joined #commonlisp
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
elderK has quit [Quit: Connection closed for inactivity]
triffid has quit [Ping timeout: 268 seconds]
triffid has joined #commonlisp
ahlk has quit [Remote host closed the connection]
yauhsien has joined #commonlisp
knusbaum has quit [Ping timeout: 252 seconds]
knusbaum has joined #commonlisp
mon_aaraj has quit [Ping timeout: 245 seconds]
yauhsien has quit [Ping timeout: 245 seconds]
causal has quit [Quit: WeeChat 3.5]
mon_aaraj has joined #commonlisp
karlosz has quit [Quit: karlosz]
karlosz has joined #commonlisp
pve has joined #commonlisp
occ has joined #commonlisp
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
karlosz has quit [Ping timeout: 244 seconds]
mon_aaraj has quit [Ping timeout: 252 seconds]
mon_aaraj has joined #commonlisp
Th30n has joined #commonlisp
frgo has joined #commonlisp
Seok__ has quit [Read error: Connection reset by peer]
Seok__ has joined #commonlisp
karlosz has joined #commonlisp
karlosz has quit [Client Quit]
anticomputer has quit [Quit: quit]
anticomputer_ has joined #commonlisp
boogs has joined #commonlisp
<Shinmera> Bike: Well, started on this at least. https://github.com/Shinmera/filesystem-utils
yauhsien has joined #commonlisp
moosh has quit [Remote host closed the connection]
OlCe has quit [Remote host closed the connection]
azimut has quit [Remote host closed the connection]
triffid has quit [Remote host closed the connection]
azimut has joined #commonlisp
triffid has joined #commonlisp
yauhsien has quit [Ping timeout: 268 seconds]
frgo has quit [Remote host closed the connection]
pjb has quit [Ping timeout: 276 seconds]
pjb has joined #commonlisp
<Shinmera> jackdaniel: does ECL have some form of wrapper around posix stat? I can't seem to find anything.
livoreno has quit [Remote host closed the connection]
livoreno has joined #commonlisp
<Shinmera> or alternatively, functions to determine if a file is actually a directory, symlink, or regular file.
frgo has joined #commonlisp
<Th30n> I assume you've checked uiop?
<Shinmera> correct.
<jackdaniel> Shinmera: it does, but not a part of lisp runtime (i.e it does not return lisp values). that's regarding stat
<jackdaniel> regarding file kind, there is a function file-kind
<jackdaniel> it is part of the exported api
<jackdaniel> the second (required) argument tells the function whether it should or should not follow symlinks
<Shinmera> Ah, file-kind is exactly what I need. Thanks!
<jackdaniel> i.e
<jackdaniel> CL-USER> (ext:file-kind "/tmp/jack" nil) ; :LINK
<jackdaniel> CL-USER> (ext:file-kind "/tmp/jack" t) ; :DIRECTORY
<jackdaniel> sure
dec0d3r has quit [Quit: Leaving]
<jackdaniel> it may also return fancy values like :fifo or :special on applicable platforms
<Shinmera> Right.
pranavats has joined #commonlisp
MajorBiscuit has quit [Ping timeout: 252 seconds]
<jackdaniel> Shinmera: while not properly documented, it is at least listed in the manual in "3.2.4 Operating System Interface Reference", there are other filesystem operators so you may want to skim it for your library
Th30n has quit [Ping timeout: 245 seconds]
<Shinmera> Yeah I found the page, but somehow skimmed over file-kind.
frgo has quit []
orestarod has joined #commonlisp
dlowe has quit [Remote host closed the connection]
rogersm has joined #commonlisp
Th30n has joined #commonlisp
notzmv has quit [Ping timeout: 276 seconds]
livoreno has quit [Ping timeout: 260 seconds]
livoreno has joined #commonlisp
<Bike> cool cool
MajorBiscuit has joined #commonlisp
igemnace has joined #commonlisp
rogersm has quit [Quit: Leaving...]
yauhsien has joined #commonlisp
thuna` has joined #commonlisp
yauhsien has quit [Ping timeout: 252 seconds]
azimut has quit [Remote host closed the connection]
triffid has quit [Remote host closed the connection]
anticomputer_ has quit [Read error: Connection reset by peer]
azimut has joined #commonlisp
triffid has joined #commonlisp
anticomputer has joined #commonlisp
tyson2 has joined #commonlisp
orestarod has quit [Ping timeout: 276 seconds]
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
mfiano has quit [Quit: WeeChat 3.5]
Oddity has quit [Ping timeout: 276 seconds]
<Shinmera> Bike: if you can think of other fs-interactive bits, let me know
<Shinmera> I feel like I've forgotten functions I would have liked in the past.
yauhsien has joined #commonlisp
xaotuk has joined #commonlisp
yauhsien has quit [Ping timeout: 245 seconds]
ebrasca has joined #commonlisp
mon_aaraj has quit [Ping timeout: 252 seconds]
xaotuk has quit [Ping timeout: 245 seconds]
mon_aaraj has joined #commonlisp
jeosol has quit [Quit: Client closed]
mfiano has joined #commonlisp
notzmv has joined #commonlisp
Psybur has joined #commonlisp
jeosol has joined #commonlisp
<cosimone> hello, does anyone know if there is a way in emacs+slime to show a list of currently defined symbols (functions, special variables, etc.)? sadly, speedbar doesn't seem to work, at least ootb
<cosimone> ideally, i'd like something like the "system browser 1" window in this image: http://www.lispworks.com/images/lw-ide-gtk.png
NotThatRPG has joined #commonlisp
<jdz> cosimone: You can inspect a package object.
<beach> Wouldn't that information be absolutely huge in most cases?
mon_aaraj has quit [Ping timeout: 245 seconds]
<jdz> Like, (find-package "CL-USER") and then M-x slime-inspect-presentation-at-point on the value.
<beach> I recommend Clouseau over the SLIME inspector, though.
NotThatRPG has quit [Read error: Connection reset by peer]
mon_aaraj has joined #commonlisp
NotThatRPG has joined #commonlisp
WaxCPU is now known as Andrew
mon_aaraj has quit [Ping timeout: 245 seconds]
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anticomputer has quit [Ping timeout: 268 seconds]
mon_aaraj has joined #commonlisp
anticomputer has joined #commonlisp
ebrasca has quit [Ping timeout: 245 seconds]
<dbotton> Shinmera's definitions works very well cosimone https://github.com/Shinmera/definitions
<dbotton> (find-definitions "CLOG") for a package
<dbotton> APROPOS-DEFINITIONS for searches
frgo has joined #commonlisp
<cosimone> thanks for the answer, inspect presentations seem quite alright
<cosimone> *answers
waleee has joined #commonlisp
Th30n has quit [Quit: WeeChat 3.6]
yauhsien has joined #commonlisp
waleee has quit [Ping timeout: 244 seconds]
yauhsien has quit [Ping timeout: 252 seconds]
Krystof has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
anticomputer has joined #commonlisp
nij- has joined #commonlisp
NotThatRPG has joined #commonlisp
occ has quit [Ping timeout: 244 seconds]
chip2n has quit [Ping timeout: 276 seconds]
occ has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dBc has joined #commonlisp
eddof13 has joined #commonlisp
varjag has joined #commonlisp
occ has quit [Ping timeout: 245 seconds]
frgo_ has joined #commonlisp
jealousmonk has quit [Remote host closed the connection]
jealousmonk has joined #commonlisp
frgo has quit [Ping timeout: 240 seconds]
frgo_ has quit [Ping timeout: 260 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Oladon has joined #commonlisp
eddof13 has joined #commonlisp
anticomputer has quit [Quit: quit]
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anticomputer has joined #commonlisp
prokhor has quit [Remote host closed the connection]
eddof13 has joined #commonlisp
<cosimone> i just found out something strange: the following form evaluates to 4 in at least ccl, sbcl and clisp (mapcan #'1+ (list 1 2 3)). why is that so? i realize that using mapcan in this situation does not make much sense, since mapcan is supposed to concatenate the resulting lists via nconc. applying 1+ to each element of this list does not even yield a list in the first place, so why am i getting this behavior and not, say, an error or
<cosimone> at least a warning?
aartaka has quit [Ping timeout: 244 seconds]
MajorBiscuit has quit [Quit: WeeChat 3.5]
aartaka has joined #commonlisp
triffid has quit [Remote host closed the connection]
<beach> Looks like a defect to me.
<beach> The standard says that (mapcan f list) should behave like (apply #'nconc (mapcar f list)).
triffid has joined #commonlisp
<cosimone> true, that's why it looks strange to me
<cosimone> (apply #'nconc (mapcar #'1+ (list 1 2 3))) sure as hell does not evaluate to 4, i get an error saying "The value 2 is not of the expected type LIST", as i would expect
<beach> Indeed.
<Catie> It's odd that three separate implementations do the same wrong thing though
<cosimone> i fail to see how evaluating to 4 would make sense, and i could not find some kind of exception in the standard saying so
<cosimone> Catie: not so strange if they share code, see MIT loop
<cosimone> but this particular standard function is implementable in literally one line, so it's even weirder
<yitzi> `(nconc 4)` is permitted.
varjag has quit [Ping timeout: 268 seconds]
<cosimone> (nconc 4)
<Catie> cosmione: That's true, though the SBCL code looks fairly idiosyncratic. I don't have the CCL or CLISP source at the moment, so I couldn't compare
<cosimone> yes, but that's not what it's supposed to do. it's supposed to call (nconc 2 3 4) after the function 1+ was applied to each element in the original list
mon_aaraj has quit [Ping timeout: 252 seconds]
<cosimone> again, this particular use of mapcan makes no sense and should never be done regardless, but i'd like a hard error instead of silently returning some value
<Catie> I'm mistaken, both SBCL and CCL define mapcan in terms of a function map1, which looks suspiciously similar between the two
<cosimone> mmmmmmmmmmmmmmmmmm...
mon_aaraj has joined #commonlisp
<yitzi> And there is no requirement that implementation has to use `(nconc 2 3 4)`, just that whatever it does should be equivalent. It doesn't need to wait the "mapcar" is complete to start the concatenation.
<Catie> It also looks like in SBCL they accounted for a similar error in mapcon, where (nconc 1 1) would cause an error, but there doesn't appear to be a similar special case for mapcan. CCL doesn't have the special case code at all
<cosimone> yitzi: fair point, but in this particular instance, the behavior definitely doesn't seem to be equivalent
<cosimone> Catie: uh, the rabbit hole is deeper than i thought
<Catie> cosmione: There's several layers of mystery, each with a discovery more shocking than the last
<Catie> cosimone: I apologize for spelling your name wrong
<cosimone> ain't that the truth
<beach> It is also true that NCONC does not have any exceptional situations listed, so if the arguments are not lists, then the behavior is undefined.
<cosimone> beach: i see, if the behavior is undefined, then getting some mysterious value instead of an error is technically compliant, although not ideal in my opinion
<beach> Exactly.
anticomputer has quit [Remote host closed the connection]
<beach> Hence WSCL.
anticomputer has joined #commonlisp
<cosimone> i know wscl exists, but i don't know if it says something about this particular use of mapcan
<beach> It probably doesn't yet. But it could.
<cosimone> Catie: yikes, you dared spell my name wrong, now i'm outraged
<cosimone> beach: if it doesn't yet, it could be a useful addition
<beach> Exactly. It is just a matter of writing an issue on GitHub.
<cosimone> i use mapping functions all the time and i often make mistakes such as passing the wrong function, failing silently is something i definitely do not like
morganw has joined #commonlisp
cosimone has quit [Read error: Connection reset by peer]
cage has joined #commonlisp
dBc has quit [Quit: leaving]
<jackdaniel> mapcant - loke mapcan but issueing an error when it can't
<jackdaniel> like*
<jackdaniel> issuing*
aartaka has quit [Ping timeout: 268 seconds]
ebrasca has joined #commonlisp
<aeth> mapcat... attach a telemetry device (apparently called a "telemeter") to a cat and map where it goes
aartaka has joined #commonlisp
<jackdaniel> catmap, like a catnip but accepts a function as an argument
NotThatRPG has joined #commonlisp
still has joined #commonlisp
nij- has left #commonlisp [@commonlisp]
cosimone has joined #commonlisp
dmc00 has joined #commonlisp
still69 has joined #commonlisp
Oladon has quit [Quit: Leaving.]
still has quit [Ping timeout: 252 seconds]
tyson2 has quit [Remote host closed the connection]
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
still69 is now known as still-lisp123
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Shinmera> still-lisp123: Did you PM me or was that someone else
jealousmonk has quit [Remote host closed the connection]
karlosz has joined #commonlisp
<Shinmera> still-lisp123: As of 4f69721 you can use (for:for ((a = 1 :then 2))). It was previously not possible to do this, as I overlooked the use-case, so you'll need a fresh copy of FOR.
eddof13 has joined #commonlisp
NotThatRPG has joined #commonlisp
<Shinmera> I guess at least I made improvements to a lot more libraries than I thought I would these holidays.
<still-lisp123> Shinmera i'm at the start of my way with lisp, for know only learned how to load systems from quicklisp, anyway thank you
<still-lisp123> should search for the ways how to get systems from github
<Shinmera> still-lisp123: you can clone https://github.com/shinmera/for into quicklisp/local-projects/
<still-lisp123> ah get it, does local systems have precedence over installed with quicklisp database?
<Shinmera> yes
<Shinmera> so you have to make sure to keep it up to date yourself, or remove it once it gets rolled out in quicklisp again.
azimut_ has joined #commonlisp
azimut has quit [Quit: ZNC - https://znc.in]
<still-lisp123> And do i actually correctly understood that `loop` `iterate` or your `for` is alternative to iterators in another languages, right? So `loop` is limited because you can't add another keywords, but `iterate` and `for` are expandable?
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aartaka has quit [Ping timeout: 260 seconds]
aartaka has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
ym has joined #commonlisp
pjb is now known as Guest9442
pjb has joined #commonlisp
<Shinmera> Indeed.
<Shinmera> Note that some implementations *do* allow extending LOOP as well, but as far as I understand nobody does so because it isn't portable.
<Shinmera> In my case I wanted something that had a more structured nature than either loop or iterate.
Guest9442 has quit [Ping timeout: 264 seconds]
<pjb> #+foo (loop on foo implementation) #-foo (loop for other in implementations do (something-normal :with other))
tyson2 has joined #commonlisp
pjb has quit [Ping timeout: 276 seconds]
pjb`` has joined #commonlisp
<NotThatRPG> I'm a big fan of iterate, personally. I'm interested to know what you mean by something that has a more structured nature; sounds intriguing
<Shinmera> Well, have a look at FOR linked above. :)
pjb`` has quit [Ping timeout: 240 seconds]
pjb has joined #commonlisp
azimut_ has quit [Remote host closed the connection]
azimut has joined #commonlisp
aartaka has quit [Ping timeout: 252 seconds]
<SAL9000> pjb: trivial-loop? :-)
pjb has quit [Ping timeout: 276 seconds]
aartaka has joined #commonlisp
pjb`` has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 245 seconds]
Lord_of_Life_ is now known as Lord_of_Life
pjb`` has quit [Ping timeout: 264 seconds]
pjb```` has joined #commonlisp
eddof13 has joined #commonlisp
pjb```` has quit [Ping timeout: 264 seconds]
pjb````` has joined #commonlisp
pjb````` has quit [Ping timeout: 276 seconds]
still-lisp123 has quit [Quit: Client closed]
pjb`````` has joined #commonlisp
orestarod has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yauhsien has joined #commonlisp
pjb`````` has quit [Ping timeout: 272 seconds]
yauhsien has quit [Ping timeout: 245 seconds]
pjb has joined #commonlisp
pjb has quit [Ping timeout: 240 seconds]
Dynom_ has joined #commonlisp
Dynom_ is now known as Guest6196
pjb````` has joined #commonlisp
mon_aaraj has quit [Ping timeout: 252 seconds]
pjb has joined #commonlisp
mon_aaraj has joined #commonlisp
pjb````` has quit [Ping timeout: 240 seconds]
pjb is now known as Guest6102
pjb` has joined #commonlisp
<NotThatRPG> Shinmera: That's really neat. I'm an ITERATE lover, but the need for code-walking isn't great. Hard to see code-walking and common lisp as fundamentally consistent.
pjb` has quit [Changing host]
pjb` has joined #commonlisp
Guest6102 has quit [Ping timeout: 244 seconds]
pjb` is now known as pjb
pjb is now known as Guest7550
<Shinmera> Indeed. :)
pjb has joined #commonlisp
Guest7550 has quit [Ping timeout: 240 seconds]
pjb has quit [Ping timeout: 260 seconds]
Oddity has joined #commonlisp
boogs has quit [Read error: Connection reset by peer]
pjb``` has joined #commonlisp
boogs has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
pjb``` has quit [Ping timeout: 260 seconds]
pjb`````` has joined #commonlisp
analogsalad has joined #commonlisp
analog_salad has joined #commonlisp
analog_salad has quit [Client Quit]
pjb`````` has quit [Ping timeout: 264 seconds]
eddof13 has joined #commonlisp
cage has quit [Remote host closed the connection]
morganw has quit [Remote host closed the connection]
pjb has joined #commonlisp
pjb is now known as Guest3077
pjb has joined #commonlisp
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
gateway2000 has quit [Quit: Leaving]
pjb has quit [Remote host closed the connection]
Guest3077 has quit [Remote host closed the connection]
gateway2000 has joined #commonlisp
jeosol has quit [Quit: Client closed]
waleee has joined #commonlisp
mon_aaraj has quit [Ping timeout: 268 seconds]
mon_aaraj has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
analogsalad has quit [Quit: bye]
dlowe has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
shka has joined #commonlisp
Guest6196 has quit [Quit: WeeChat 3.5]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shka has quit [Ping timeout: 252 seconds]
mon_aaraj has quit [Ping timeout: 268 seconds]
eddof13 has joined #commonlisp
mon_aaraj has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tyson2 has joined #commonlisp
eddof13 has joined #commonlisp
akoana has joined #commonlisp
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
jeosol has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ym has quit [Quit: Leaving]
azimut has quit [Ping timeout: 268 seconds]
NotThatRPG has joined #commonlisp
anticomputer has quit [Remote host closed the connection]
pve has quit [Quit: leaving]
anticomputer has joined #commonlisp
orestarod has quit [Ping timeout: 272 seconds]
anticomputer has quit [Quit: quit]
anticomputer_ has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
triffid has quit [Ping timeout: 268 seconds]
thuna` has quit [Remote host closed the connection]