specbot has quit [Remote host closed the connection]
minion has quit [Remote host closed the connection]
specbot has joined #commonlisp
minion has joined #commonlisp
dre has quit [Ping timeout: 240 seconds]
jeosol has quit [Quit: Client closed]
dre has joined #commonlisp
lisp123 has joined #commonlisp
yauhsien has joined #commonlisp
lisp123 has quit [Ping timeout: 272 seconds]
guest74 has joined #commonlisp
genpaku has joined #commonlisp
notzmv has quit [Ping timeout: 250 seconds]
waleee has quit [Ping timeout: 260 seconds]
tenex has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
tenex has quit [Quit: Konversation terminated!]
yauhsien has quit [Remote host closed the connection]
yauhsien has joined #commonlisp
yauhsien has quit [Ping timeout: 240 seconds]
jeosol has joined #commonlisp
Oladon has joined #commonlisp
ick has joined #commonlisp
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 240 seconds]
Bike has quit [Quit: Connection closed]
jsq has joined #commonlisp
notzmv has joined #commonlisp
<beach>
Good morning everyone!
<jsq>
Morning
jsq has quit [Read error: Connection reset by peer]
jsq has joined #commonlisp
Bike has joined #commonlisp
<beach>
jsq: Are you new here? I don't recognize your nick.
<jsq>
Yes just a new guy.
<beach>
Great! Welcome!
zacque has quit [Quit: Goodbye :D]
yagamisa1o has quit [Ping timeout: 256 seconds]
yagamisato has joined #commonlisp
yagamisato has joined #commonlisp
yagamisato has quit [Changing host]
yauhsien has joined #commonlisp
jsq has quit [Remote host closed the connection]
yauhsien has quit [Ping timeout: 276 seconds]
jsq has joined #commonlisp
notzmv has quit [Ping timeout: 260 seconds]
jsq has quit [Client Quit]
mfiano has quit [Quit: WeeChat 3.5]
notzmv has joined #commonlisp
mfiano has joined #commonlisp
Oladon has quit [Quit: Leaving.]
mfiano has quit [Quit: WeeChat 3.5]
semz_ has joined #commonlisp
semz is now known as Guest9098
Guest9098 has quit [Killed (calcium.libera.chat (Nickname regained by services))]
semz_ is now known as semz
ick has quit [Ping timeout: 276 seconds]
Bike has quit [Quit: Connection closed]
triffid has quit [Ping timeout: 240 seconds]
mfiano has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
raeda has quit [Remote host closed the connection]
raeda has joined #commonlisp
pranavats has joined #commonlisp
mfiano has quit [Quit: WeeChat 3.5]
triffid has joined #commonlisp
mfiano has joined #commonlisp
yauhsien has joined #commonlisp
pfd has joined #commonlisp
yauhsien has quit [Ping timeout: 272 seconds]
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 256 seconds]
ick has joined #commonlisp
makomo has joined #commonlisp
slowButPresent has quit [Quit: leaving]
makomo has quit [Quit: WeeChat 3.4]
makomo has joined #commonlisp
shka has joined #commonlisp
<patrix>
hey all.. and welcome jsq!
<beach>
Hello patrix.
rotateq has quit [Ping timeout: 260 seconds]
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
ahlk has quit [Ping timeout: 250 seconds]
aartaka has joined #commonlisp
zacque has joined #commonlisp
borodust has quit [Remote host closed the connection]
yauhsien has joined #commonlisp
yauhsien has quit [Remote host closed the connection]
frgo has quit [Ping timeout: 276 seconds]
yauhsien has joined #commonlisp
ahlk has joined #commonlisp
yauhsien has quit [Ping timeout: 276 seconds]
lisp123 has joined #commonlisp
rotateq has joined #commonlisp
borodust has joined #commonlisp
lisp123 has quit [Ping timeout: 276 seconds]
rogersm has joined #commonlisp
<rotateq>
Good morning, how would I use SET-PPRINT-DISPATCH to say that #\Space shall be printed this way in pretty print and not "#\ "? Someone told me yesterday it's way better using that instead of (defmethod print-object ((char (eql #\Space)) stream) ...) and I see now why. But I'm not yet sure nor how to choose the priority.
pjb has joined #commonlisp
Algernon69 has joined #commonlisp
ttree has quit [Ping timeout: 240 seconds]
Algernon69 has quit [Quit: Leaving]
notzmv has quit [Ping timeout: 240 seconds]
attila_lendvai has joined #commonlisp
treflip has joined #commonlisp
notzmv has joined #commonlisp
hashfunc1ebd has joined #commonlisp
vats has joined #commonlisp
pjb has quit [Changing host]
pjb has joined #commonlisp
yauhsien has joined #commonlisp
yauhsien has quit [Remote host closed the connection]
rogersm has quit [Quit: Leaving...]
<hashfunc1ebd>
how do i get the first value return in: (PARSE-INTEGER "FF" :RADIX 16) ?
<hashfunc1ebd>
(CAR (PARSE-INTEGER "FF" :RADIX 16)) doesn't work
yauhsien has joined #commonlisp
<patrix>
Multiple-value-bind and similar forms would help
pjb has quit [Ping timeout: 240 seconds]
<hashfunc1ebd>
i'm using the above in a LOOP form and it's throwing the error "is not of type VECTOR" because i believe that it's getting confused with PARSE-INTEGER
<rotateq>
hashfunc1ebd: If you just need the first, then binding in a LET form for example is enough. For binding more you can use MULTIPLE-VALUE-BIND.
<patrix>
Yes that’s a much more complete answer lol
<rotateq>
And yes, multiple value are different from lists or vectors, I see them as kind of tuples.
yauhsien has quit [Ping timeout: 240 seconds]
<rotateq>
patrix: But you were faster. :)
<patrix>
Magical tuples where you only get the first one unless you want the other ones with special constructs
<patrix>
Rotateq faster but less precise, there must be some JavaScript joke in there
<hashfunc1ebd>
i just tried binding the value in a LET form and it still throws the same error
dre has quit [Ping timeout: 260 seconds]
<rotateq>
Signals an error. ;)
<rotateq>
hashfunc1ebd: Have you something to show? That would help me for helping you.
<hashfunc1ebd>
hm
<patrix>
(let ((a (parse-integer "FF" :radix 16))) a) ;; works for me
<rotateq>
And don't worry, what is has with values took a longer time for me.
<hashfunc1ebd>
well thanks for the suggestion rotateq, but it's appearing that i guess my problem may not be what i was thinking
<rotateq>
patrix: Yes as expected.
<hashfunc1ebd>
and thanks patrix
<patrix>
And referring to the multiple values,
<patrix>
(multiple-value-bind (a b) (parse-integer "FF" :radix 16) (format t "a: ~A, b: ~B" a b))
<patrix>
(Hurray for “CL REPL” app for iOS lol)
<rotateq>
patrix: I like that app very much and it shows how to use ECL with QML to write such. But typing at phone is exhausting for me.
<patrix>
Agreed, thankfully I’m on an iPad with Magic Keyboard so it’s a slightly bearable
<rotateq>
Oh that should be better, or using a physical keyboard.
<patrix>
Good enough for the moment, at a coffee shop
hashfunc1ebd has quit [Ping timeout: 272 seconds]
<rotateq>
I'm a bit worried I did not help them enough.
<zacque>
One downside is that this will modify the "default" pprint-dispatch table
<zacque>
To workaround that, you can (defvar *PD* (copy-pprint-dispatch)), then write a wrapper function like (defun custom-write (sexpr &rest args) (apply #'write sexpr :pprint-dispatch *PD* args))
borodust has quit [Remote host closed the connection]
xaotuk has joined #commonlisp
cosimone has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 256 seconds]
jmdaemon has quit [Ping timeout: 276 seconds]
borodust has joined #commonlisp
borodust has quit [Remote host closed the connection]
<ehammarstrom>
_death: That makes sense, thanks
rotateq has quit [Remote host closed the connection]
jeosol has quit [Quit: Ping timeout (120 seconds)]
pjb has joined #commonlisp
lisp123 has joined #commonlisp
lisp123 is now known as john_mccarthy_jn
john_mccarthy_jn is now known as lisp123
rotateq has joined #commonlisp
borodust has joined #commonlisp
notzmv has quit [Ping timeout: 250 seconds]
lisp123 has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
lisp123 has joined #commonlisp
z4kz has joined #commonlisp
cosimone has joined #commonlisp
random-nick has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 276 seconds]
Lord_of_Life has joined #commonlisp
icepic1984[m] has joined #commonlisp
ick has quit [Ping timeout: 246 seconds]
<icepic1984[m]>
Hi folks. Quick question. Why do some people use "#:" in `defpackage` as prefix for package name while other simply use ":" ? Is this just a question of taste?
<jackdaniel>
icepic1984[m]: #:foo does not intern a new symbol in the keywords package
<jackdaniel>
packages are designated by a string, so some people even do "MY-PACKAGE" instead of #:my-package
<lisp123>
jackdaniel: I like the string approach
<lisp123>
IMHO its the most pure solution
<lisp123>
everything else gets coerced to a string
<jackdaniel>
I agree (but my muscle memory disagrees and puts #:foo everywhere)
<icepic1984[m]>
So simply using a ":" would pollute the keywords package?
<jackdaniel>
pollute is a strong word, but essentially - yeah
<icepic1984[m]>
ok thanks. Sorry for the dump question. But i am new to clisp. And there a lot of new concepts to learn :)
<lisp123>
CL needs to become more climate friendly
<lisp123>
No more polluting namespaces!
<jackdaniel>
icepic1984[m]: sure
<lisp123>
icepic1984[m]: Its a question, that if somebody asks, is a very good signal of being a good CL programmer in the future
<jackdaniel>
keep in mind, that the language is abbreviated as cl (or common lisp)
<jackdaniel>
clisp is one of many common lisp implementations
<lisp123>
Clisp is arguably the most successful lisp in terms of projects that achieved commercial success
<z4kz>
how about Clojure?
<jackdaniel>
if you consider being in the opening of the anime a peak of being successful then sure
<z4kz>
=)
Xach has quit [Remote host closed the connection]
admich1 has quit [Read error: Connection reset by peer]
ick has joined #commonlisp
admich1 has joined #commonlisp
Xach has joined #commonlisp
Oddity has quit [Ping timeout: 240 seconds]
xaotuk has quit [Ping timeout: 240 seconds]
<mfiano>
jackdaniel: I stumbled on this a while ago, and some other uses of CL in cinema. If you squint real hard you can make out the indentation we often see in #clschool :) https://moviecode.tumblr.com/image/88826139010
<jackdaniel>
heh
<mfiano>
apparently this is from Fare's poiu
z4kz has quit [Quit: Client closed]
<rotateq>
maybe z4kz meant Clozure CL ^^
aeth has quit [Ping timeout: 250 seconds]
<rotateq>
lisp123: the one question about the #: or what?
aeth has joined #commonlisp
<rotateq>
For some time now I always do (cl:defpackage #:foo ...) and (cl:in-package #:foo).
<mfiano>
I use '#:foo when concatenating symbols with alexandria:symbolicate. No reason to pollute my package
<mfiano>
(alexandria:symbolicate *foo* '#:/ *bar*) for example
<mfiano>
But I always use uninterned symbols in package definitions
<rotateq>
Oh interesting too. :)
<rotateq>
mfiano: Did you now come across with your recent FORMAT question?
<mfiano>
And I suppose system definitions too
<rotateq>
yes indeed
<mfiano>
I have been through so much code since then I forgot what it was
<mfiano>
One of these days I'd like to write an expression based FORMAT syntax instead of being reminded of printf() everytime I have to open the HyperSpec.
<lisp123>
rotateq: yeah
Xach has quit [Changing host]
Xach has joined #commonlisp
Xach is now known as Xach
Bike has joined #commonlisp
rotateq has quit [Remote host closed the connection]
pjb has quit [Ping timeout: 240 seconds]
lisp123 has quit [Quit: Leaving...]
aartaka has quit [Ping timeout: 246 seconds]
admich1 has quit [Read error: Connection reset by peer]
admich1 has joined #commonlisp
cosimone has quit [Remote host closed the connection]
admich1 has quit [Read error: Connection reset by peer]
admich1 has joined #commonlisp
cosimone has joined #commonlisp
aartaka has joined #commonlisp
rotateq has joined #commonlisp
slowButPresent has joined #commonlisp
cage has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
aeth has quit [Ping timeout: 246 seconds]
aeth has joined #commonlisp
specbot has quit [Remote host closed the connection]
minion has quit [Read error: Connection reset by peer]
minion has joined #commonlisp
specbot has joined #commonlisp
pranavats has joined #commonlisp
admich1 has quit [Ping timeout: 250 seconds]
admich1 has joined #commonlisp
rotateq has quit [Ping timeout: 240 seconds]
lonjil has quit [Quit: No Ping reply in 180 seconds.]
lonjil has joined #commonlisp
nature has quit [Ping timeout: 272 seconds]
nature has joined #commonlisp
xaotuk has joined #commonlisp
admich1 has quit [Ping timeout: 272 seconds]
admich1 has joined #commonlisp
z4kz has joined #commonlisp
nature has quit [Ping timeout: 240 seconds]
Inline has quit [Quit: Leaving]
nature has joined #commonlisp
Inline has joined #commonlisp
z4kz has quit [Quit: Client closed]
dlowe has quit [Read error: Connection reset by peer]
dlowe has joined #commonlisp
admich1 has quit [Read error: Connection reset by peer]
pve has joined #commonlisp
<NotThatRPG>
mfiano: Drew McDermott has a macro that is to FORMAT as ITERATE is to LOOP: does the same thing, but in Lispy syntax. If you are interested, I can try to dig up a pointer.
admich1 has joined #commonlisp
<jackdaniel>
are you referring to ytools?
frgo has joined #commonlisp
admich has joined #commonlisp
yauhsien has joined #commonlisp
aeth has quit [Ping timeout: 272 seconds]
aeth has joined #commonlisp
ttree has joined #commonlisp
rotateq has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yauhsien has quit [Remote host closed the connection]
notzmv has joined #commonlisp
notzmv has quit [Ping timeout: 250 seconds]
tyson2 has quit [Remote host closed the connection]
yauhsien has joined #commonlisp
Xach has quit [Ping timeout: 276 seconds]
yauhsien has quit [Ping timeout: 248 seconds]
sjl has joined #commonlisp
pjb has joined #commonlisp
admich1 has quit [Remote host closed the connection]
admich has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
Sankalp- has joined #commonlisp
Sankalp has quit [Ping timeout: 272 seconds]
Sankalp- is now known as Sankalp
tyson2 has joined #commonlisp
NotThatRPG has joined #commonlisp
ick has quit [Ping timeout: 240 seconds]
<NotThatRPG>
jackdaniel: Yes, it's buried in there somewhere. I keep meaning to pull bits of ytools out for easier use one at a time. Right now the framework is too monolithic for easy adoption
Xach has joined #commonlisp
<jackdaniel>
_death pointed me to another (I think that written by him) version of OUT derived (afair) from ytools
<jackdaniel>
that was some time ago
<mfiano>
NotThatRPG: Nice.
<NotThatRPG>
jackdaniel: That would be great! Something that does not need to be extracted by me!
borodust has quit [Remote host closed the connection]
<_death>
(should've been double side, but you get the idea)
Sankalp has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
ec has joined #commonlisp
borodust has joined #commonlisp
yauhsien has joined #commonlisp
Dynom has joined #commonlisp
yauhsien has quit [Remote host closed the connection]
yauhsien has joined #commonlisp
waleee has joined #commonlisp
jeosol has joined #commonlisp
morganw has joined #commonlisp
yauhsien has quit [Ping timeout: 276 seconds]
jmes has joined #commonlisp
pfd has quit [Quit: Client closed]
orestarod has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karlosz has joined #commonlisp
Inline has quit [Remote host closed the connection]
NotThatRPG has joined #commonlisp
karlosz has quit [Quit: karlosz]
tyson2 has quit [Remote host closed the connection]
aeth_ has joined #commonlisp
aeth has quit [Killed (NickServ (GHOST command used by aeth_))]
aeth_ is now known as aeth
matt` has joined #commonlisp
kpoeck has joined #commonlisp
igemnace has quit [Ping timeout: 246 seconds]
treflip has quit [Quit: good night]
Oddity has joined #commonlisp
attila_lendvai has quit [Remote host closed the connection]
attila_lendvai has joined #commonlisp
shka has quit [Quit: Konversation terminated!]
shka has joined #commonlisp
tyson2 has joined #commonlisp
paul0 has joined #commonlisp
Xach has quit [Remote host closed the connection]
fitzsim has quit [Read error: Connection reset by peer]
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
Xach has joined #commonlisp
Dynom has quit [Quit: WeeChat 3.5]
cage has quit [Quit: rcirc on GNU Emacs 27.1]
kpoeck has quit [Quit: Client closed]
siabard has quit [Remote host closed the connection]
siabard has joined #commonlisp
yauhsien has joined #commonlisp
Colleen has quit [Ping timeout: 260 seconds]
Colleen has joined #commonlisp
shka has quit [Ping timeout: 260 seconds]
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Oladon has joined #commonlisp
pfd has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
qhong has quit [Read error: Connection reset by peer]
matt` has quit [Remote host closed the connection]
qhong has joined #commonlisp
yauhsien has quit [Remote host closed the connection]
orestarod has quit [Ping timeout: 240 seconds]
yauhsien has joined #commonlisp
random-nick has quit [Ping timeout: 246 seconds]
random-nick has joined #commonlisp
yauhsien has quit [Ping timeout: 276 seconds]
cosimone has quit [Ping timeout: 260 seconds]
yauhsien has joined #commonlisp
morganw has quit [Remote host closed the connection]
pjb has quit [Ping timeout: 240 seconds]
ebrasca has joined #commonlisp
igemnace has joined #commonlisp
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
pve has quit [Quit: leaving]
aartaka has quit [Ping timeout: 240 seconds]
tfeb has joined #commonlisp
tfeb has quit [Client Quit]
yauhsien has quit [Remote host closed the connection]
z4kz has joined #commonlisp
yauhsien has joined #commonlisp
<bollu>
I'm trying to find the common lisp equivalent of python's glob (https://docs.python.org/3/library/glob.html), which allows one to list all files in a given directory (recursively)
yauhsien has quit [Ping timeout: 256 seconds]
attila_lendvai has quit [Read error: Connection reset by peer]
<rotateq>
bollu: You could have a look to the UIOP package.
attila_lendvai has joined #commonlisp
<bollu>
rotateq thanks, it seems I need to use a combination of `uiop:collect-sub*directories* and `uiop:directory-files`
<bollu>
I was hoping for something higher level
<rotateq>
Ah okay good, I don't really know much about all what it offers.
attila_lendvai_ has joined #commonlisp
attila_lendvai has quit [Read error: Connection reset by peer]
Oladon has quit [Quit: Leaving.]
X-Scale has quit [Ping timeout: 256 seconds]
attila_lendvai_ has quit [Ping timeout: 246 seconds]
X-Scale has joined #commonlisp
attila_lendvai has joined #commonlisp
<yitzi>
bollu: Also the directory function when the pathname has :wild components.
Posterdati has quit [Ping timeout: 272 seconds]
z4kz has quit [Quit: Client closed]
<bollu>
yitzi can you elaborate? I don't follow what a :wild component is
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
Posterdati has joined #commonlisp
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
<yitzi>
bollu: You should read the CLHS section on Filenames and on DIRECTORY for the specifics. Basically CL pathnames have components (host, directory, name, type...) and those components can be specified to be wild (like glob), unspecified, etc. First off try `(directory #P"*.jpg")` in a directory with some jpegs (or something).
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
<bollu>
yitzi holy shit, that's insane, common lisp *already knows* about globbing and wildcards?
attila_lendvai has quit [Read error: Connection reset by peer]
<yitzi>
Yes, pretty much.
attila_lendvai has joined #commonlisp
attila_lendvai has quit [Ping timeout: 276 seconds]
<bollu>
OK, I played around with (pathname), (pathname-type) and (pathname-name). It's awesome, how it neatly stores the information about complex paths like "a/b/**/c/d/**/foo.txt"
<bollu>
every time I interact with common lisp, I always go "oh, neat, these people **really thought about** what they were doing"!
<bollu>
I've only ever had this experience with very very strongly typed languages like Haskell and Agda
<bollu>
it's really neat to see the same culture in a language with such a different focus and flavour :)