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/>
random-nick has quit [Ping timeout: 246 seconds]
lewisje has quit [Read error: Connection reset by peer]
lewisje has joined #commonlisp
<phoe> NotThatRPG: hmmm
<phoe> pjb: would https://gist.github.com/phoe/a049bbab5ac14fb5b5e70715b19b2942 be nonconforming then?
<ixelp> GOOPS-like generic dispatch in CL, a quick sketch · GitHub
<phoe> wait, no, it's conforming
<phoe> the question was different, it's not about CALL-METHOD but CALL-NEXT-METHOD
<pjb> Well, the problem would be if you changed the list of applicable method in between.
<pjb> For example: https://termbin.com/sdxoo
<pjb> But I think we can expect that in all implementations.
VincentV` has joined #commonlisp
attila_lendvai has quit [Ping timeout: 268 seconds]
VincentVega has quit [Ping timeout: 272 seconds]
Noisytoot has quit [Excess Flood]
Noisytoot has joined #commonlisp
speskk has quit [Quit: Bye.]
VincentV` has quit [Ping timeout: 248 seconds]
dsx has quit [Ping timeout: 252 seconds]
Oladon has joined #commonlisp
jeosol has joined #commonlisp
akoana has quit [Quit: leaving]
Nilby has quit [Ping timeout: 260 seconds]
<NotThatRPG> phoe: I think that's conforming -- call-next-method is only invoked inside around methods. I was asking if I could "smuggle it out" by return a closure that invoked it. I don't *think* that's legit, but I would have to chase a whole lot of pointers around inside the CLHS to figure out....
NotThatRPG is now known as NotThatRPG_away
<Bike> i think that is legit. it has indefinite extent, after all. that last clause confuses things though.
waleee has quit [Ping timeout: 252 seconds]
waleee has joined #commonlisp
pve has quit [Ping timeout: 252 seconds]
pve has joined #commonlisp
Noisytoot has quit [Ping timeout: 260 seconds]
bilegeek has joined #commonlisp
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #commonlisp
Noisytoot has joined #commonlisp
<taichi> I am probably doing this wrong, but is there an easy way to locally declare `sb-cover:store-coverage-data' over an asdf:load-system. It seems the information gets dropped somewhere along the way
taichi is now known as mariari
Noisytoot has quit [Ping timeout: 256 seconds]
semi has joined #commonlisp
bilegeek has quit [Quit: Leaving]
azimut has quit [Remote host closed the connection]
<mariari> nevermind it seems declaim dynamically scopes it correctly, I let the warning by SBCL mislead me
azimut has joined #commonlisp
Noisytoot has joined #commonlisp
waleee has quit [Ping timeout: 252 seconds]
semi has quit [Remote host closed the connection]
alfonsox has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
son0p has quit [Read error: Connection reset by peer]
azimut has quit [Ping timeout: 255 seconds]
Fare has joined #commonlisp
ec_ has quit [Remote host closed the connection]
ec_ has joined #commonlisp
White_Flame has quit [Remote host closed the connection]
White_Flame has joined #commonlisp
Lycurgus has joined #commonlisp
pillton has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.2)]
aartaka has joined #commonlisp
Oladon has quit [Quit: Leaving.]
igemnace has joined #commonlisp
seletz has quit [Ping timeout: 260 seconds]
mingus has joined #commonlisp
rgherdt has joined #commonlisp
ec_ has quit [Ping timeout: 255 seconds]
seletz has joined #commonlisp
ec_ has joined #commonlisp
aartaka has quit [Ping timeout: 260 seconds]
pranavats has left #commonlisp [Disconnected: Hibernating too long]
ec_ has quit [Remote host closed the connection]
ec_ has joined #commonlisp
aartaka has joined #commonlisp
emacsomancer[m] has joined #commonlisp
Lycurgus has quit [Quit: Exeunt: personae.ai-integration.biz]
aartaka has quit [Ping timeout: 260 seconds]
aartaka has joined #commonlisp
Spawns has joined #commonlisp
shka has joined #commonlisp
Spawns_Carpeting has quit [Ping timeout: 264 seconds]
igemnace has quit [Remote host closed the connection]
igemnace has joined #commonlisp
masinter has quit [Ping timeout: 268 seconds]
Cymew has joined #commonlisp
mingus1 has joined #commonlisp
masinter has joined #commonlisp
mingus has quit [Ping timeout: 252 seconds]
mingus1 is now known as mingus
rodicm has joined #commonlisp
pranavats has joined #commonlisp
MajorBiscuit has joined #commonlisp
alfonsox has quit [Ping timeout: 252 seconds]
justReddy is now known as justache
ttree has quit [Ping timeout: 260 seconds]
jmdaemon has quit [Ping timeout: 260 seconds]
attila_lendvai has joined #commonlisp
khrbt_ has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
khrbt has joined #commonlisp
aartaka has quit [Ping timeout: 272 seconds]
_cymew_ has joined #commonlisp
aartaka has joined #commonlisp
attila_lendvai has quit [Ping timeout: 268 seconds]
heeenkk has joined #commonlisp
azimut has joined #commonlisp
grawlinson_ has joined #commonlisp
grawlinson has quit [Ping timeout: 260 seconds]
grawlinson_ is now known as grawlinson
_cymew_ has quit [Ping timeout: 272 seconds]
sunarch has quit [Quit: Connection closed for inactivity]
megeve has quit [Quit: Connection closed for inactivity]
avocadoist has quit [Ping timeout: 260 seconds]
alfonsox has joined #commonlisp
scymtym has joined #commonlisp
jmdaemon has joined #commonlisp
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #commonlisp
random-nick has joined #commonlisp
jmdaemon has quit [Ping timeout: 268 seconds]
genpaku has quit [Read error: Connection reset by peer]
genpaku has joined #commonlisp
aartaka has quit [Ping timeout: 272 seconds]
aartaka has joined #commonlisp
VincentVega has joined #commonlisp
VincentVega has left #commonlisp [#commonlisp]
Brucio-61 has quit [Ping timeout: 260 seconds]
scymtym has quit [Ping timeout: 272 seconds]
heeenkk has quit [Quit: Connection closed for inactivity]
Brucio-61 has joined #commonlisp
scymtym has joined #commonlisp
Brucio-61 has quit [Ping timeout: 260 seconds]
Brucio-61 has joined #commonlisp
zachel has quit [Remote host closed the connection]
zachel has joined #commonlisp
heeenkk has joined #commonlisp
_cymew_ has joined #commonlisp
avocadoist has joined #commonlisp
tyson2 has joined #commonlisp
<Shinmera> 24 hours until Kandria releases. Woop.
* scymtym keeps fingers crossed
<louis77> exciting!
* splittist brushes up on his German so he can purchase directly from the Kandria site
<Shinmera> Oh, does the xsolla plugin switch to german based on your IP or something? That's annoying.
<splittist> Yes. It's in good company (Google and Apple do the same).
<Alfr> Shinmera, sorry, I missed yesterday; but all the best anyway.
<Shinmera> Thanks!
<mfiano> :nailbite:
<mfiano> Good luck and congrats again!
<Catie> I am very excited
<mfiano> Yes, we had a number of people that RSVP'd that never showed up. I know a couple people were sick, and dbotton, what a very nice guy. He had his 3rd grandson and conferenced in on his way there or something.
<louis77> I assume the jitsi session wasn't recorded?
<Shinmera> I don't think so, but I'll have a stream on Twitch tomorrow if you want to ask questions live.
<louis77> thx
random-nick has quit [Ping timeout: 272 seconds]
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
<mfiano> No it was not.
Cymew has quit [Quit: Konversation terminated!]
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
<phoe> Shinmera: also huge congrats from my side, a person belonging to the sick and coughing club
Noisytoot has joined #commonlisp
<phoe> (at the moment)
<Shinmera> Get well soon!
frgo has joined #commonlisp
<beach> Shinmera: I'll buy you dinner in Amsterdam.
<Shinmera> Oh my :)
<mfiano> I forgot to mention that. He told me that when I invited him :)
Noisytoot has quit [Remote host closed the connection]
Noisytoot has joined #commonlisp
pdietz has joined #commonlisp
Inline has quit [Ping timeout: 255 seconds]
jeosol has quit [Quit: Client closed]
Inline has joined #commonlisp
ec_ has quit [Remote host closed the connection]
Inline has quit [Client Quit]
ec_ has joined #commonlisp
pdietz has quit [Quit: Client closed]
jeosol has joined #commonlisp
<jeosol> Shinmera: Good with your lunch and wishing you great success!!!
<phoe> a launch lunch?
<edgar-rft> with astronaut food
heeenkk has quit [Quit: Connection closed for inactivity]
waleee has joined #commonlisp
jeosol has quit [Quit: Client closed]
<mfiano> Yes I hope you successfully fill that gut with the finest food one can dine on.
<Shinmera> Eh, I'll probably just eat some spaghetti or something
jeosol has joined #commonlisp
<jeosol> phoe: Thanks for catching that and correcting me.  I just woke up and brain not fully functioning
<jeosol> I will resend the message
<jeosol> Shinmera: Good with your launch and wishing you great success!!!
<Shinmera> Thanks
<jeosol> I changed where I sleep in years (from hard to soft surface) and I (and brain) seemed to overslept
Cymew has joined #commonlisp
<jeosol> Shinmera: This should serve as encourage (myself included) for those trying to deploy products that primarily use CL
<Shinmera> let's hope it does, then.
<jeosol> Takes a lot of dedication and commitment, but achievable
<jeosol> But there is the money/sale side of things
<Shinmera> There unfortunately is, yes.
azimut has quit [Ping timeout: 255 seconds]
azimut has joined #commonlisp
NotThatRPG_away has quit [Ping timeout: 252 seconds]
Inline has joined #commonlisp
jeosol has quit [Quit: Client closed]
tyson2 has quit [Remote host closed the connection]
NotThatRPG has joined #commonlisp
waleee has quit [Ping timeout: 252 seconds]
tyson2 has joined #commonlisp
kenran has joined #commonlisp
aartaka has quit [Ping timeout: 260 seconds]
aartaka has joined #commonlisp
<kenran> hey everyone. this might be a stupid question, as I'm not really familiar at all with (common) lisp in this regard, just evaluating if it might be a good fit: is it possible (with, say, sbcl) to build a binary, and have it "be" a REPL at the same time, so that I can interact and change the running program by calling the code it was written in/with?
Cymew has quit [Ping timeout: 256 seconds]
<kenran> sorry if this doesn't make sense. I'm thinking of something like emacs, where I can evaluate elisp and change the running editor instance by interacting with its own code base, but emacs is not written entirely in elisp. would building something that behaves this way be simpler or harder (assuming it's possible) if the whole program were written in the lisp itself?
<kenran> and (again, assuming it even makes sense) could you point me to some terminology I could google or some resources I could read to learn about this?
kenran has quit [Remote host closed the connection]
<beach> kenran: Sure, that is entirely possible. You just need to create a binary with your application being able to call EVAL.
<mfiano> they left
<mfiano> IRC continues to amaze me.
kenran has joined #commonlisp
<Catie> I have to imagine it was some sort of connection error
<beach> kenran: Sure, that is entirely possible. You just need to create a binary with your application being able to call EVAL.
<kenran> beach: thanks, I disconnected for a second there.
<kenran> I just remembered there's also a window manager and the nyxt browser which both seem to work this way as well
<mfiano> Any application can be interactive with Common Lisp. It is designed for incremental development.
<Catie> If you want to interact with the image using Emacs, Swank or Slynk (depending on whether you're using Slime or Sly) are gonna be your best friend
<kenran> Catie: I was going to try and do a little proof of concept editor in common lisp to learn a bit of the language and ncurses, and having evaluation of common lisp code from inside the editor itself would be an awesome piece :)
<kenran> I already got sly (with slynk, I suppose) installed, and now I have to figure out how to actually write common lisp "projects" :) but the cookbook seems like a great resource.
<Catie> Ah gotcha, then yeah as long as you can call EVAL the world is your oyster
<kenran> quicklisp and asdf look a bit "foreign" to me, coming from other languages, but I guess that'll not be a hurdle
<Catie> It's well worth learning about both of them, they'll make your life quite a bit easier
<kenran> Thanks for the input everyone. I've done the bootstrapping like two years ago, but never had the time to dive into it further up until now, so everything I had working is probably "new" to me again
Inline has quit [Ping timeout: 260 seconds]
<kenran> Oh: the "create a binary" part is of course something that's optional at the start. I guess that makes it even easier, rather than harder, right?
<phoe> yes
random-nick has joined #commonlisp
<phoe> you should be able to open up Lisp, load your code, then execute a function
<phoe> creating a binary is basically creating a modified version of your Lisp that has your code already loaded and upon start calls your function instead of dropping into the REPL
<kenran> Cool, very encouraging :) I have to leave for a bit now, thanks everyone!
kenran has quit [Remote host closed the connection]
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Inline has joined #commonlisp
pdietz has joined #commonlisp
louis77 has quit [Remote host closed the connection]
alfonsox has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
rodicm has quit [Quit: Leaving]
prxq_ has joined #commonlisp
prxq has quit [Ping timeout: 272 seconds]
tane has joined #commonlisp
tane has quit [Changing host]
tane has joined #commonlisp
ec_ has quit [Remote host closed the connection]
ec_ has joined #commonlisp
pdietz has quit [Quit: Client closed]
louis77 has joined #commonlisp
akonai has quit [Ping timeout: 272 seconds]
akonai has joined #commonlisp
n0den1te has joined #commonlisp
perrierjouet has quit [Ping timeout: 252 seconds]
akonai has quit [Ping timeout: 252 seconds]
cage has joined #commonlisp
cosimone has joined #commonlisp
akonai has joined #commonlisp
perrierjouet has joined #commonlisp
MajorBiscuit has quit [Ping timeout: 260 seconds]
jmdaemon has joined #commonlisp
akonai has quit [Ping timeout: 260 seconds]
perrierjouet has quit [Quit: WeeChat 3.8]
akonai has joined #commonlisp
morganw has joined #commonlisp
n0den1te has quit [Quit: leaving]
NotThatRPG has joined #commonlisp
jmdaemon has quit [Ping timeout: 264 seconds]
perrierjouet has joined #commonlisp
aartaka has quit [Ping timeout: 255 seconds]
aartaka has joined #commonlisp
akonai has quit [Ping timeout: 268 seconds]
molson has quit [Ping timeout: 260 seconds]
pdietz has joined #commonlisp
akonai has joined #commonlisp
molson has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jmdaemon has joined #commonlisp
NotThatRPG has joined #commonlisp
akonai has quit [Ping timeout: 256 seconds]
akonai has joined #commonlisp
jmdaemon has quit [Ping timeout: 260 seconds]
VincentVega has joined #commonlisp
VincentVega has left #commonlisp [#commonlisp]
akonai has quit [Ping timeout: 260 seconds]
akonai has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.8]
jmdaemon has joined #commonlisp
pdietz has quit [Quit: Client closed]
ttree has joined #commonlisp
kenran has joined #commonlisp
perrierjouet has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.8]
<White_Flame> kenran: the typical way to interact/develop CL programs is through emacs & the SLIME interface
perrierjouet has joined #commonlisp
<White_Flame> you can build CL binaries that have the server to that, and connect into it via emacs and open up a remote REPL into it
<White_Flame> for the "full" development environment
pdietz has joined #commonlisp
<White_Flame> (as well as some internal interface for calling EVAL)
<pjb> kenran: actually, the "create binary part" is usually called "saving a lisp image" or "saving an executable lisp image".
<pjb> kenran: by default when you do that, you'll get a lisp image that when rebooted drops back in the REPL (only with all that was loaded before saving already loaded after booting it). You have to give specific options to the function saving the lisp image to install your own "toplevel function" replacing the REPL.
repeter`` has quit [Ping timeout: 260 seconds]
<pjb> kenran: see some example: https://gitlab.com/informatimago/hw generate.lisp generate-hw.lisp
<ixelp> Pascal J. Bourguignon / hw · GitLab
jmdaemon has quit [Ping timeout: 260 seconds]
<pjb> kenran: ecl is different, it doesn't have lisp images, instead it saves an ELF binary. But you get mostly the same result.
jeosol has joined #commonlisp
akonai has quit [Ping timeout: 268 seconds]
akonai has joined #commonlisp
Inline has quit [Ping timeout: 256 seconds]
varjag has joined #commonlisp
waleee has joined #commonlisp
guest1 has joined #commonlisp
akonai has quit [Ping timeout: 260 seconds]
Inline has joined #commonlisp
akonai has joined #commonlisp
pdietz has quit [Quit: Client closed]
jmdaemon has joined #commonlisp
<kenran> pjb: ah, I think I might have done the save-lisp-and-die thing once in the past to create an executable with sbcl
aartaka has quit [Ping timeout: 272 seconds]
rgherdt has quit [Remote host closed the connection]
aartaka has joined #commonlisp
akonai has quit [Ping timeout: 252 seconds]
jmdaemon has quit [Ping timeout: 260 seconds]
akonai has joined #commonlisp
Fare has quit [Ping timeout: 252 seconds]
_cymew_ has quit [Ping timeout: 256 seconds]
tyson2 has quit [Remote host closed the connection]
lisp123 has joined #commonlisp
ec_ has quit [Remote host closed the connection]
ec_ has joined #commonlisp
scymtym has quit [Ping timeout: 252 seconds]
Brucio-61 has quit [Ping timeout: 260 seconds]
Fare has joined #commonlisp
Oladon has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.8]
nij- has joined #commonlisp
<nij-> How do I get the name of the function? E.g. something like (function-name #'+) => "+" ?
<nij-> I tried #'slot-value without luck.
Brucio-61 has joined #commonlisp
<Alfr> nij-, what should (function-name (lambda () 42)) yield?
<nij-> Alfr "(LAMBDA ())"
jmdaemon has joined #commonlisp
<Alfr> nij-, that usually isn't a valid function name, as those are either symbols or (setf some-symbol).
<Bike> nij-: function-lambda-expression may give you something.
masinter has quit [Ping timeout: 268 seconds]
perrierjouet has joined #commonlisp
<Alfr> But that one may simply always answer nil for the name part.
cage has quit [Quit: rcirc on GNU Emacs 28.2]
tyson2 has joined #commonlisp
<nij-> Bike Oh indeed. And it also gives me (lambda ()) for Alfr's example.
Alfr has quit [Quit: Leaving]
<NotThatRPG> I'm having the oddest problem. I have a function that computes four values, the last of which is a closure. I print out that closure and then return it in a values construct in the next line. But when I trace the function, it displays as only returning THREE values. Any idea what could account for this? It's driving me bonkers.
<pjb> nij-: who said a function had only a single name?
<pjb> Or had a name at all!
<pjb> Actually, we may consider that the name of the function (lambda () 42) #| --> #<Anonymous Function #x302005F3C76F> |# be (lambda () 42) it self! Since (function <my-function-name>) -> the function named my-function-name, and (function (lambda () 42)) -> the anonymous function in question.
Alfr has joined #commonlisp
<pjb> nij-: (defun foo () 42) (setf (fdefinition 'bar) (fdefinition 'foo)) (defun foo () 33) (function-names (function foo)) #| --> (foo) |# (function-names (function bar)) #| --> (bar) |# (values (foo) (bar)) #| --> 33 ; 42 |#
<pjb> nij-: function names may change with time too!
attila_lendvai has joined #commonlisp
<pjb> (defun foo () 42) (setf (fdefinition 'bar) (fdefinition 'foo)) (values (function-names (function foo)) (function-names (function bar))) #| --> (bar foo) ; (bar foo) |#
<pjb> nij-: but fundamentally, what you're asking is what is the name of 42???
<pjb> (let ((the-answer 42) (two-times-twenty-one 42)) (integer-name 42)) ????
<pjb> It's senseless!
dcb has joined #commonlisp
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 252 seconds]
<pjb> nij-: naming is always relative to some authority, to some registry. An object can be given several names. So if you want to name your functions perhaps you should manage your own registry. https://termbin.com/6fmc
Lord_of_Life_ is now known as Lord_of_Life
<pjb> NotThatRPG: what would be the code?
tane has quit [Quit: Leaving]
<pjb> NotThatRPG: there's an infinite number of programs that behave as you describe !!! Why don't you paste the code immediately when you want debugging help?
<White_Flame> NotThatRPG: how high are your optimization settings? maybe some things might become opaque to the tracer?
<NotThatRPG> White_Flame: They are not that high -- I think 2's across the board.
<White_Flame> still, post code
<pjb> It could be the tracer can only print 3 values at most.
<pjb> And specify the implementation.
<White_Flame> or reduce it to a minimal subset of the code that still b0rks out
aartaka has quit [Ping timeout: 268 seconds]
<NotThatRPG> Will do. BTW, this couldn't be a valid compiler optimization: I'm trying to catch the fourth return value and use it, and it errors out right after return.
* NotThatRPG is testing on SBCL and ACL rn
<White_Flame> "errors out" with the closure object being NIL or what?
pdietz has joined #commonlisp
<nij-> pjb I see. Thanks :)
cosimone has quit [Remote host closed the connection]
akonai has quit [Ping timeout: 260 seconds]
srji has quit [Quit: leaving]
igemnace has quit [Remote host closed the connection]
akonai has joined #commonlisp
nij- has quit [Ping timeout: 246 seconds]
lisp123 has quit [Remote host closed the connection]
akonai has quit [Ping timeout: 260 seconds]
akonai has joined #commonlisp
kenran has quit [Remote host closed the connection]
akonai has quit [Ping timeout: 252 seconds]
guest1 has left #commonlisp [#commonlisp]
akonai has joined #commonlisp
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robin has quit [Remote host closed the connection]
varjag has quit [Ping timeout: 260 seconds]
akonai has quit [Ping timeout: 260 seconds]
akonai has joined #commonlisp
agent1011001 has joined #commonlisp
pjb has quit [Quit: reboot for system update…]
Oladon has quit [Quit: Leaving.]
<prokhor> can somebody pls turn me to an concise introdunction to reader macros?
attila_lendvai has quit [Ping timeout: 272 seconds]
masinter has joined #commonlisp
Lycurgus has joined #commonlisp
morganw has quit [Remote host closed the connection]
akonai has quit [Ping timeout: 264 seconds]
agent1011001 has quit [Quit: Client closed]
<Fare> prokhor, see their example use in fare-quasiquote and/or scribble
grawlinson has quit [Ping timeout: 268 seconds]
akonai has joined #commonlisp
<ixelp> Reader Macros in Common Lisp · GitHub
<pdietz> Or just read the CLHS