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/>
<aeth> jcowan: as opposed to relying on order and thus not being able to modify it like that at all, but it's probably not the best example because you can't put that into the macro lambda list
<aeth> at least, as described
<Josh_2> jcowan: because you can specialize methods using #'eql you can write macros which accept keywords and then use a generic function to generate different forms based on the key provided
<Josh_2> :sunglasses:
azimut has quit [Ping timeout: 258 seconds]
causal has joined #commonlisp
xlarsx has joined #commonlisp
xlarsx has quit [Ping timeout: 252 seconds]
tasty has quit [Remote host closed the connection]
tasty has joined #commonlisp
tasty has quit [Changing host]
tasty has joined #commonlisp
lottaquestions_ has joined #commonlisp
pdietz has joined #commonlisp
vn36 has quit [Ping timeout: 248 seconds]
akoana has joined #commonlisp
<hayley> jcowan: One example would be e.g. WITH-OPEN-FILE where you're passing all the keywords to OPEN, and checking they keyword arguments are correct is handy.
Lord_of_Life has quit [Ping timeout: 248 seconds]
Lord_of_Life has joined #commonlisp
random-nick has quit [Ping timeout: 250 seconds]
mathrick_ has quit [Read error: Connection reset by peer]
mathrick has joined #commonlisp
<pdietz> Sometimes it's just nice to name your arguments.  Positional arguments get nasty if you have too many.
waleee has quit [Ping timeout: 250 seconds]
xlarsx has joined #commonlisp
xlarsx has quit [Ping timeout: 264 seconds]
xlarsx has joined #commonlisp
grawlinson has quit [Ping timeout: 250 seconds]
xlarsx has quit [Ping timeout: 252 seconds]
mariari has quit [Ping timeout: 260 seconds]
tyson2 has quit [Remote host closed the connection]
mariari has joined #commonlisp
<jcowan> hayley: That's a great example.
<hayley> And indeed naming things is great, a la DEFINE-REWRITES in https://github.com/telekons/one-more-re-nightmare/blob/master/Code/DFA-construction/re-types.lisp
mariari has quit [Ping timeout: 252 seconds]
mariari has joined #commonlisp
<jcowan> It doesn't have an order dependency, either, because all the values of the keywords are self-evaluating.
<hayley> Hm, I support :hash-cons rewrites too, but don't use it. I wonder how that happened.
xlarsx has joined #commonlisp
mariari has quit [Ping timeout: 260 seconds]
xlarsx has quit [Ping timeout: 250 seconds]
eddof13 has joined #commonlisp
mariari has joined #commonlisp
drainpipe has joined #commonlisp
jeosol has joined #commonlisp
akoana has quit [Quit: leaving]
drainpipe has quit [Ping timeout: 252 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knusbaum has quit [Ping timeout: 268 seconds]
pdietz has quit [Quit: Client closed]
eddof13 has joined #commonlisp
grawlinson has joined #commonlisp
cdegroot has quit [Ping timeout: 264 seconds]
cdegroot has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest091 has joined #commonlisp
Guest091 has quit [Quit: Ping timeout (120 seconds)]
Guest097 has joined #commonlisp
<Guest097> How would I create a list of objects to store in a variable Im currently doing this (defvar *posts* '((make-post :title "blah"))) when I do it this way I keep getting errors around this isnt of type post
<hayley> (list (make-post :title "blah"))
<Guest097> isnt that equivalent?
<hayley> QUOTE doesn't evaluate anything in its argument.
<Guest097> ahh thats very subtle
<hayley> LIST is a function, and thus all arguments to it are evaluated.
<Guest097> i guess I still dont quite have a grasp on the macro thing huh, tysm
<Guest097> Ok last question I think I have for now, when I (defvar some-symbol 'some-value) and then recompile that expression I would expect it to redefine some-symbol but this isnt the case, when I (setf some-symbol 'some-new-value) this works but this feels weird to me?
<hayley> DEFVAR won't re-assign an already defined variable, no. If you want that behaviour, you can use DEFPARAMETER.
<Guest097> Ok gotcha thanks for you help
genpaku has quit [Remote host closed the connection]
genpaku has joined #commonlisp
eddof13 has joined #commonlisp
Guest097 has quit [Quit: Ping timeout (120 seconds)]
mariari has quit [Ping timeout: 260 seconds]
mariari has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #commonlisp
eddof13 has quit [Client Quit]
xlarsx has joined #commonlisp
xlarsx has quit [Ping timeout: 268 seconds]
shka has joined #commonlisp
rgherdt has joined #commonlisp
igemnace has joined #commonlisp
attila_lendvai has joined #commonlisp
vn36 has joined #commonlisp
_cymew_ has joined #commonlisp
<semz> In a nested set of loop forms, is it possible to access the outermost loop-finish? Or more generally, to selectively shadow loop-finish in a loop form?
<semz> Somewhat annoyingly, this issue makes macros that expand into loop forms leaky
Brucio-61 has quit [Ping timeout: 250 seconds]
<phoe> doesn't seem so
scymtym has quit [Ping timeout: 250 seconds]
Brucio-61 has joined #commonlisp
vn36 has quit [Ping timeout: 264 seconds]
<beach> I tried something like (loop with outer = (lambda () (loop-finish)) ... do (loop ... (funcall outer))) but for my particular test case, something went wrong. I think the idea might work though.
frgo has quit [Ping timeout: 250 seconds]
<phoe> seems like the GO is established before the TAGBODY
<phoe> at least on SBCL
<beach> That explains it.
katya has joined #commonlisp
katya has quit [Client Quit]
katya has joined #commonlisp
<semz> :do (let ((exit (lambda () (loop-finish)))) ...) seems to work
mariari has quit [Ping timeout: 264 seconds]
<beach> So then you would have to do something unattractive like (loop FOR outer = (lambda...))
<semz> although I can't find any details on where exactly loop-finish is available in the CLHS
<beach> Yeah, same problem. You would create a new function in each iteration.
<semz> SBCL indeed doesn't optimize it into a single function, unfortunate.
<beach> One would have to do something twisted like testing a loop variable for 0 and create the function only then.
<beach> What about (loop for outer = (lambda () (loop-finish)) then outer do (loop ...))?
<beach> That appears to work.
<phoe> beach: nice
<beach> Thanks! A bit twisted though.
<semz> decent as a workaround at least, it's only one line
<beach> Sure.
enzuru has quit [Quit: ZNC 1.8.2 - https://znc.in]
enzuru has joined #commonlisp
pve has joined #commonlisp
vn36_ has joined #commonlisp
vn36_ has quit [Ping timeout: 260 seconds]
Guest080 has joined #commonlisp
Guest080 has quit [Client Quit]
ttree has quit [Ping timeout: 260 seconds]
Cymew has joined #commonlisp
skeemer__ has quit [Remote host closed the connection]
aartaka has joined #commonlisp
MajorBiscuit has joined #commonlisp
azimut has joined #commonlisp
pjaspers has joined #commonlisp
epony has quit [Ping timeout: 252 seconds]
epony has joined #commonlisp
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
Noisytoot has joined #commonlisp
szkl has quit [Quit: Connection closed for inactivity]
random-nick has joined #commonlisp
aartaka has quit [Ping timeout: 260 seconds]
<phoe> I have a Parenscript question: https://plaster.tymoon.eu/view/3476#3476
scymtym has joined #commonlisp
<phoe> found it - (ps:ps (ps:lambda () (ps:lisp `',*foo*)))
aartaka has joined #commonlisp
pjaspers has left #commonlisp [ERC 5.4 (IRC client for GNU Emacs 28.0.60)]
pdietz has joined #commonlisp
amb007 has joined #commonlisp
silasfox has joined #commonlisp
Dynom_ has joined #commonlisp
Dynom_ is now known as Guest8855
aartaka has quit [Ping timeout: 252 seconds]
amb007 has quit [Ping timeout: 264 seconds]
aartaka has joined #commonlisp
jmdaemon has quit [Ping timeout: 248 seconds]
pillton has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.2)]
aartaka has quit [Ping timeout: 252 seconds]
amb007 has joined #commonlisp
aartaka has joined #commonlisp
Guest42 has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
szkl has joined #commonlisp
amb007 has joined #commonlisp
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
amb007 has quit [Ping timeout: 246 seconds]
epony has quit [Quit: QUIT]
amb007 has joined #commonlisp
attila_lendvai has quit [Read error: Connection reset by peer]
attila_lendvai has joined #commonlisp
pdietz has quit [Ping timeout: 244 seconds]
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
aartaka has quit [Ping timeout: 260 seconds]
aartaka has joined #commonlisp
silasfox has quit [Quit: WeeChat 3.6]
Noisytoot has joined #commonlisp
waleee has joined #commonlisp
tyson2 has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
amb007 has joined #commonlisp
pdietz has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
amb007 has joined #commonlisp
waleee has quit [Ping timeout: 268 seconds]
waleee has joined #commonlisp
aartaka has quit [Ping timeout: 268 seconds]
aartaka has joined #commonlisp
Volt_ has quit [Quit: ]
amb007 has quit [Ping timeout: 268 seconds]
aartaka has quit [Ping timeout: 264 seconds]
aartaka has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 250 seconds]
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
xlarsx has joined #commonlisp
xlarsx has quit [Ping timeout: 248 seconds]
azimut has quit [Ping timeout: 258 seconds]
jeffrey has joined #commonlisp
amb007 has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
amb007 has quit [Ping timeout: 268 seconds]
azimut has joined #commonlisp
pdietz has quit [Quit: Client closed]
amb007 has joined #commonlisp
cosimone has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
eddof13 has joined #commonlisp
cosimone has quit [Ping timeout: 268 seconds]
amb007 has joined #commonlisp
pdietz has joined #commonlisp
amb007 has quit [Ping timeout: 248 seconds]
molson has quit [Ping timeout: 260 seconds]
pranavats has joined #commonlisp
vn36__ has joined #commonlisp
molson has joined #commonlisp
aartaka has quit [Ping timeout: 260 seconds]
aartaka has joined #commonlisp
Guest42 has quit [Ping timeout: 244 seconds]
amb007 has joined #commonlisp
<jackdaniel> aww, https://old.reddit.com/r/lisp/comments/y6xrtd/impressions_of_common_lisp_and_the_lisp_community/ , at the very last a satisfied customer! (not that I've answered any of their questions)
aartaka has quit [Ping timeout: 252 seconds]
drainpipe has joined #commonlisp
drainpipe has quit [Client Quit]
aartaka has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amb007 has quit [Ping timeout: 260 seconds]
attila_lendvai has quit [Ping timeout: 264 seconds]
<AadVersteden[m]> jackdaniel: this stands in stark contrast with the general opinion of the common lisp community when I learned it, though I was treated superbly too. That post made me happy too :-)
<jackdaniel> I've received a lot of love from people on irc when I've started programming in cl, so I can't complain
<Josh_2> So did I
<jackdaniel> I'm too young to know the first thing about usenet, it was already dead
<phoe> so did I
<White_Flame> it was pretty contentious on irc when I joined
<White_Flame> but I think that boils down to 1 or 2 people influencing the tone
<jackdaniel> at least we are done with discussions "why #lisp is for common lisp, not all lisps", these were quite toxic because both sides had a point (and the squatting side had an advantage of numbers)
orestarod has joined #commonlisp
jeffrey has quit [Quit: Client quit]
eddof13 has joined #commonlisp
amb007 has joined #commonlisp
xlarsx has joined #commonlisp
waleee has quit [Ping timeout: 268 seconds]
amb007 has quit [Ping timeout: 264 seconds]
xlarsx has quit [Ping timeout: 260 seconds]
vn36__ has quit [Ping timeout: 260 seconds]
lottaquestions has joined #commonlisp
lottaquestions_ has quit [Ping timeout: 250 seconds]
vn36 has joined #commonlisp
<phoe> one of the few good points of having to move to libera
amb007 has joined #commonlisp
<AadVersteden[m]> I personally didn't mind the #lisp name and find it sad that it's not there for Common Lisp anymore. Glad to see other opinions.
Cymew has quit [Ping timeout: 246 seconds]
tyson2 has quit [Remote host closed the connection]
aartaka has quit [Read error: Connection reset by peer]
aartaka has joined #commonlisp
amb007 has quit [Ping timeout: 264 seconds]
<Josh_2> I agree AadVersteden[m]
frgo has joined #commonlisp
frgo has quit [Read error: Connection reset by peer]
frgo has joined #commonlisp
motherhucker has joined #commonlisp
Vjalmr has joined #commonlisp
pdietz has quit [Ping timeout: 244 seconds]
rendar has quit [Quit: Leaving]
aartaka has quit [Ping timeout: 250 seconds]
aartaka has joined #commonlisp
MajorBiscuit has quit [Ping timeout: 268 seconds]
cage has joined #commonlisp
xlarsx has joined #commonlisp
pdietz has joined #commonlisp
vn36 has quit [Ping timeout: 252 seconds]
vn36__ has joined #commonlisp
amb007 has joined #commonlisp
vn36__ has quit [Ping timeout: 264 seconds]
vn36 has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
ebrasca has joined #commonlisp
vn36 has quit [Ping timeout: 252 seconds]
rendar has joined #commonlisp
rendar has quit [Changing host]
tyson2 has joined #commonlisp
rendar has joined #commonlisp
derelict has quit [Quit: bye]
vn36 has joined #commonlisp
amb007 has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
amb007 has quit [Ping timeout: 268 seconds]
amb007 has joined #commonlisp
igemnace has quit [Remote host closed the connection]
Alecui has joined #commonlisp
vn36 has quit [Ping timeout: 252 seconds]
amb007 has quit [Ping timeout: 248 seconds]
xlarsx has quit [Remote host closed the connection]
xlarsx has joined #commonlisp
aartaka has quit [Ping timeout: 248 seconds]
aartaka has joined #commonlisp
motherhucker has quit [Ping timeout: 260 seconds]
xlarsx has quit [Ping timeout: 248 seconds]
causal has quit [Quit: WeeChat 3.6]
pdietz has quit [Quit: Client closed]
amb007 has joined #commonlisp
thuna` has joined #commonlisp
eddof13 has joined #commonlisp
morganw has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
snits has quit [Ping timeout: 260 seconds]
vn36__ has joined #commonlisp
frodef has joined #commonlisp
aartaka has quit [Ping timeout: 260 seconds]
aartaka has joined #commonlisp
snits has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eddof13 has joined #commonlisp
pdietz has joined #commonlisp
pdietz has quit [Client Quit]
_cymew_ has quit [Ping timeout: 260 seconds]
cosimone has joined #commonlisp
snits has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
amb007 has joined #commonlisp
snits has joined #commonlisp
amb007 has quit [Ping timeout: 260 seconds]
vn36__ has quit [Ping timeout: 252 seconds]
waleee has joined #commonlisp
amb007 has joined #commonlisp
thuna` has quit [Ping timeout: 252 seconds]
amb007 has quit [Ping timeout: 268 seconds]
tyson2 has quit [Remote host closed the connection]
thuna` has joined #commonlisp
epony has joined #commonlisp
<thuna`> Could someone give examples of fiveam tests? I can't figure out how I should word the tests
<thuna`> With buttercup, I would write (describe "foo" (it "should do thing")). What's the equivalent in fiveam?
vn36_ has joined #commonlisp
<jackdaniel> (test my-test (is (= 3 3)) (is (< 4 18)) (finishes (some-function)))
<thuna`> That's not very descriptive, though?
cosimone has quit [Remote host closed the connection]
<jackdaniel> you may add a format string after the actual test
jeosol has quit [Ping timeout: 244 seconds]
anticomputer has quit [Quit: quit]
amb007 has joined #commonlisp
_cymew_ has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
anticomputer has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 27.1]
tyson2 has joined #commonlisp
Alecui has quit [Ping timeout: 250 seconds]
xlarsx has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
chipxxx has quit [Ping timeout: 250 seconds]
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
xlarsx has quit [Remote host closed the connection]
_cymew_ has quit [Ping timeout: 264 seconds]
Guest8855 has quit [Quit: WeeChat 3.6]
xlarsx has joined #commonlisp
aartaka has quit [Ping timeout: 248 seconds]
aartaka has joined #commonlisp
attila_lendvai has joined #commonlisp
xlarsx has quit [Ping timeout: 250 seconds]
mathrick has quit [Ping timeout: 264 seconds]
pve has quit [Quit: leaving]
aartaka has quit [Ping timeout: 250 seconds]
aartaka has joined #commonlisp
aartaka has quit [Ping timeout: 248 seconds]
anticomputer has quit [Quit: quit]
motherhucker has joined #commonlisp
anticomputer has joined #commonlisp
xlarsx has joined #commonlisp
attila_lendvai has quit [Ping timeout: 264 seconds]
shka has quit [Ping timeout: 248 seconds]
xlarsx has quit [Ping timeout: 260 seconds]
tyson2 has quit [Remote host closed the connection]
amb007 has joined #commonlisp
vn36_ has quit [Ping timeout: 268 seconds]
amb007 has quit [Ping timeout: 260 seconds]
rgherdt has joined #commonlisp
tyson2 has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
cosimone has joined #commonlisp
jmdaemon has joined #commonlisp
genpaku has quit [Read error: Connection reset by peer]
genpaku has joined #commonlisp
morganw has quit [Remote host closed the connection]
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
cosimone has quit [Remote host closed the connection]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cosimone has joined #commonlisp
xlarsx has joined #commonlisp
xlarsx has quit [Ping timeout: 260 seconds]
rgherdt has quit [Remote host closed the connection]
cosimone has quit [Remote host closed the connection]
orestarod has quit [Ping timeout: 268 seconds]
cosimone has joined #commonlisp
cosimone has quit [Read error: Connection reset by peer]
cosimone has joined #commonlisp
amb007 has joined #commonlisp
amb007 has quit [Ping timeout: 268 seconds]
azimut has quit [Ping timeout: 258 seconds]
cosimone` has joined #commonlisp
cosimone has quit [Ping timeout: 260 seconds]
cosimone` has quit [Remote host closed the connection]
cosimone has joined #commonlisp
xlarsx has joined #commonlisp
random-nick has quit [Ping timeout: 248 seconds]
motherhucker has quit [Ping timeout: 252 seconds]
xlarsx has quit [Ping timeout: 268 seconds]
amb007 has joined #commonlisp
cosimone has quit [Remote host closed the connection]
amb007 has quit [Ping timeout: 252 seconds]
motherhucker has joined #commonlisp
cosimone has joined #commonlisp
eddof13 has joined #commonlisp
mfiano has joined #commonlisp
mfiano has quit [Client Quit]
mfiano has joined #commonlisp
mfiano has quit [Client Quit]
eddof13 has quit [Client Quit]
mfiano has joined #commonlisp