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/>
NotThatRPG has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bocaneri has joined #commonlisp
Sauvin has quit [Ping timeout: 276 seconds]
Bocaneri is now known as Guest6661
rumgzy has joined #commonlisp
Guest6661 has quit [Ping timeout: 250 seconds]
rumgzy is now known as Sauvin
random-nick has quit [Ping timeout: 248 seconds]
karlosz has quit [Quit: karlosz]
NotThatRPG has joined #commonlisp
NotThatRPG has quit [Client Quit]
sloanr has joined #commonlisp
Lumine has quit [Remote host closed the connection]
rendar has quit [Ping timeout: 248 seconds]
sloanr has quit [Ping timeout: 255 seconds]
mathrick has quit [Ping timeout: 276 seconds]
tyson2 has quit [Remote host closed the connection]
mathrick has joined #commonlisp
<beach> What does it even mean to return the definition of a symbol?
dipper_ has joined #commonlisp
<Bike> i figured they meant the fdefinition, since that's what people often ask about
<beach> Oh, I see.
waleee has quit [Ping timeout: 248 seconds]
msavoritias has quit [Ping timeout: 248 seconds]
azimut_ has quit [Ping timeout: 255 seconds]
dcb has quit [Quit: MSN Messenger 3.8]
jeffrey has quit [Ping timeout: 276 seconds]
xristos has quit [Read error: Connection reset by peer]
ryanbw has quit [Ping timeout: 276 seconds]
kevingal_ has quit [Ping timeout: 265 seconds]
kevingal has quit [Ping timeout: 265 seconds]
gxt__ has quit [Ping timeout: 255 seconds]
gxt__ has joined #commonlisp
pvb has joined #commonlisp
igemnace has joined #commonlisp
msavoritias has joined #commonlisp
rgherdt has joined #commonlisp
steew has quit [Read error: Connection reset by peer]
steew has joined #commonlisp
Patternmaster has quit [Quit: leaving]
pve has joined #commonlisp
bitspook has joined #commonlisp
Lumine has joined #commonlisp
attila_lendvai has quit [Ping timeout: 255 seconds]
shka has joined #commonlisp
worstname has joined #commonlisp
igemnace has quit [Remote host closed the connection]
occ has quit [Ping timeout: 265 seconds]
kopiyka has quit [Remote host closed the connection]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
Gleefre has quit [Ping timeout: 260 seconds]
kopiyka has joined #commonlisp
occ has joined #commonlisp
mooseball has joined #commonlisp
occ has quit [Read error: Connection reset by peer]
dmgk has quit [Quit: ZNC - https://znc.in]
dmgk has joined #commonlisp
dmgk has quit [Remote host closed the connection]
rendar has joined #commonlisp
rendar has quit [Changing host]
rendar has joined #commonlisp
dmgk has joined #commonlisp
cage has joined #commonlisp
pranavats has left #commonlisp [Error from remote client]
ryanbw has joined #commonlisp
morganw has joined #commonlisp
bjorkintosh has quit [Read error: Connection reset by peer]
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has quit [Changing host]
pranavats has joined #commonlisp
<splittist> Gah! Why is colour so hard? Back in the day I'm sure cmyk to rgb was easy, but now it's all "it depends"...
<beach> What changed?
<splittist> I guess (a) devices started being able to represent lots of colours, so the idea of machine-controlled 'accuracy' arose, then (b) a huge accretion of 'knowledge' meant all programs dealing with colour had to account for the possibility of being used as the input to a vastly-sophisticated multi-millions press, rather than just throwing any old thing into a bitmap to be displayed on a device that has never been, and never will be,
<splittist> tuned i.e. any screen I'm likely to look at.
<beach> I see.
karlosz has joined #commonlisp
azimut has joined #commonlisp
<splittist> <rant over> (:
random-nick has joined #commonlisp
<Shinmera> splittist: (colored:convert (colored:cmyk) 'colored:rgb)
McParen has joined #commonlisp
<splittist> Shinmera: I get no-applicable-method, with colored:convert [thing created with colored:cmyk c m y k] 'colored:rgb (:
<Shinmera> :(
<Shinmera> Guess I never did get around to finishing that
lxi has joined #commonlisp
<Shinmera> I believe because I wanted to write a colour space format parser, and yikes
cage has quit [Remote host closed the connection]
cage has joined #commonlisp
<Shinmera> But yes, colours are difficult.
cage has quit [Remote host closed the connection]
cage has joined #commonlisp
<splittist> Shinmera: fair enough. The super-naive don't care version is easy enough for even me to write. colored will help with the hard bits (:
<Shinmera> Fwiw I wouldn't mind having the naive version in there in some way ;)
<splittist> I will test before I PR ...
<splittist> And perhaps a grayscale, as well
<Shinmera> :)
<pjb> You don't really need more than black, dark-grey, light-grey, and white…
repeter` has joined #commonlisp
repeter has quit [Ping timeout: 276 seconds]
cage has quit [Remote host closed the connection]
cage has joined #commonlisp
cage has quit [Remote host closed the connection]
cage has joined #commonlisp
McParen has quit [Ping timeout: 255 seconds]
bitspook has quit [Ping timeout: 252 seconds]
<splittist> pjb: surely one of green or amber and black is enough for anybody
<hayley> A sufficiently low-bandwidth channel with chroma encoded in-band is indistinguishable from colour.
lxi has quit [Ping timeout: 248 seconds]
bitspook` has joined #commonlisp
lxi has joined #commonlisp
bitspook` has quit [Ping timeout: 248 seconds]
lxi has quit [Ping timeout: 252 seconds]
Gleefre has joined #commonlisp
repeter`` has joined #commonlisp
repeter` has quit [Ping timeout: 252 seconds]
occ has joined #commonlisp
bitspook` has joined #commonlisp
bitspook` has quit [Remote host closed the connection]
bitspook` has joined #commonlisp
puchacz has joined #commonlisp
puchacz has quit [Client Quit]
puchacz has joined #commonlisp
bitspook` has quit [Remote host closed the connection]
xristos has joined #commonlisp
igemnace has joined #commonlisp
kevingal has joined #commonlisp
kevingal_ has joined #commonlisp
Gleefre has quit [Ping timeout: 260 seconds]
<kevingal> When you recompile a function in Emacs with C-c C-c, how is it decided which package to bind the function in? SLIME/SBCL seems to know if there's an (in-package ...) earlier in the file and uses that package.
<kevingal> Couldn't figure it out from briefly digging around in the SLIME source code.
<kevingal> I thought that maybe it would search back through the file for the previous (in-package ...).
<beach> Something like that probably.
<beach> But it does not bind the function in a package. It just sets the *PACKAGE* variable so that READ can do the right thing.
<edgar-rft> the current CL package is probably not detected by SLIME but by SWANK (the CL code in the slime directory) which highly likely just returns the value of the CL: *PACKAGE* variable
<beach> edgar-rft: But it doesn't use the current package. It uses the package indicated by the IN-PACKAGE form in the file.
tyson2 has joined #commonlisp
Gleefre has joined #commonlisp
<_death> what's interesting is that the heuristic includes a forwards search as well.. so evaluating the defun form in "(defun foo () 42) (in-package :bar)" would happen in bar
puchacz has quit [Quit: Client closed]
<beach> I don't understand why that would be a good heuristic.
easye has joined #commonlisp
<_death> maybe to serve some clumsy hacking style in the slime-scratch buffer
<ixelp> slime/slime.el at e193bc5f3431a2f71f1d7a0e3f28e6dc4dd5de2d · slime/slime · GitHub
<kevingal> "The current package is defined as the buffer-local value of `slime-buffer-package' if set, and otherwise the package named by the nearest IN-PACKAGE as found by text search (cl-first backwards, then forwards)."
<kevingal> So it only searches forwards if it doesn't find something backwards.
Gleefre has quit [Ping timeout: 260 seconds]
<_death> right.. I also found the s/first/cl-first/ a funny emacsism
pranavats has left #commonlisp [Error from remote client]
dcb has joined #commonlisp
NicknameJohn has joined #commonlisp
Gleefre has joined #commonlisp
dipper_ has quit [Ping timeout: 250 seconds]
masinter has quit [Remote host closed the connection]
tedwing has joined #commonlisp
pranavats has joined #commonlisp
tevo has quit [Ping timeout: 276 seconds]
marsia has quit [Ping timeout: 260 seconds]
marsia has joined #commonlisp
mooseball has quit [Ping timeout: 252 seconds]
rgherdt has quit [Ping timeout: 248 seconds]
tevo has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
igemnace has quit [Quit: WeeChat 3.8]
edgar-rft has quit [Quit: Leaving]
occ has quit [Ping timeout: 260 seconds]
Jach has quit [Ping timeout: 248 seconds]
jonatack1 has joined #commonlisp
occ has joined #commonlisp
jon_atack has quit [Ping timeout: 265 seconds]
Jach has joined #commonlisp
rogersm has joined #commonlisp
mooseball has joined #commonlisp
repeter`` has quit [Ping timeout: 260 seconds]
<jcowan> I find it irritating that there is no way to load a file and wind up in a different package (that I know of). For example, currently if you want to be dropped into an ISLisp REPL you need to both load islisp.lisp and do an (in-package :islisp).
rogersm has quit [Client Quit]
tyson2 has joined #commonlisp
kevingal_ has quit [Ping timeout: 260 seconds]
kevingal has quit [Ping timeout: 260 seconds]
<pjb> jcowan: you can use #.(include-file "foo.lisp")
<ixelp> common-lisp/cesarum/utility.lisp · master · com-informatimago / com.informatimago · GitLab
<pjb> you can also make it a macro, to avoid #.
<pjb> or even a function that evaluates the forms read.
<jcowan> Thanks
<jcowan> Although you still end up having to enter two forms, one to load utility.lisp and the one above.
<jcowan> IWBNI there was a cl:repl that took :package as one of its arguments
<pjb> jcowan: perhaps you'll prefer this: https://termbin.com/njcn and write just: (include-file "foo.lisp")
<jcowan> Shinmera: The Curse of Lisp strikes!
<pjb> jcowan: you can save an image with it pre-loaded.
<pjb> Or you can define it in your rc file.
<jcowan> If you are using the right Lisp, yes.
<Shinmera> jcowan: Eh?
<jcowan> Shinmera> Guess I never did get around to finishing that
<Shinmera> Not sure what that has to do with any curses or what
<pjb> jcowan: you can also define your own REPL in the file, and run it, so that LOAD never returns.
<jcowan> I'll think about that. It might be a bigger effort than ISLisp itself.
<pjb> jcowan: eg. add this at the end of your file: (let ((*package* (or (find-package "SOME-NEW-PACKAGE") (error "package not found")))) (loop (mapcar (function print) (multiple-value-list (eval (progn (princ "> ") (finish-output) (read)))))))
<jcowan> So far so good, except for condition handling.
<edwlan[m]> I made a local modification to slime to add an after-evaluation hook
<edwlan[m]> The goal was to be able to send a web socket event to the browser that would update a page containing docstrings for the current package
<jcowan> Actually it can be simplified, because ISLisp doesn't have multiple values.
<edwlan[m]> But a mechanism like that could do this too
<pjb> jcowan: you can use com.informatimago.common-lisp.interactive.interactive:repl instead.
<jcowan> I'll have a look
tyson2 has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
puchacz has joined #commonlisp
Posterdati has quit [Ping timeout: 240 seconds]
NotThatRPG has joined #commonlisp
Posterdati has joined #commonlisp
<mooseball> i'm trying to install mcclim, and cl-unicode fails to install, saying 'no symbol named "*STANDARD-OPTIMIZE-SETTINGS*" in "CL-PPCRE"'. anyone else seen this? i'm a newb.
<mooseball> (ql:quickload :cl-unicode) fails w same
<Bike> mooseball: ppcre should have had that symbol for quite a while. what's (ql:where-is-system :cl-ppcre)?
<mooseball> ah, that dep was loaded when i had the errors, but maybe i've tricked ql with an old version
tyson2 has quit [Remote host closed the connection]
<mooseball> i moved version 1.2.3 out of the path, but where-is-system still thinks it is there. can i refresh my system list or force install?
<Bike> where did you even find a fifteen year old version... well whatever. that depends on why asdf thinks it's there. was it in quicklisp local projects or something?
edgar-rft has joined #commonlisp
<mooseball> i had a copy of practical common lisp code, in my CL folder
<mooseball> :/
<mooseball> learning introduces errors...
<Bike> well, once you've deleted the directory, maybe just restart your lisp and see if asdf finds something more reasonable this time around
<mooseball> it works... thx again B. also i'm surprised there isn't a refresh path like option. but anyway, rolling now.
<Bike> i think there is, i just don't remember it because restarting is easy
<mooseball> i'm obvs still in #clschool, hehe
pranavats has left #commonlisp [Error from remote client]
pranavats has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
tyson2 has joined #commonlisp
azimut has joined #commonlisp
waleee has joined #commonlisp
kenran has joined #commonlisp
chipxxx has joined #commonlisp
tedwing has quit [Ping timeout: 264 seconds]
triffid has joined #commonlisp
puchacz has quit [Quit: Client closed]
cage has quit [Quit: rcirc on GNU Emacs 28.2]
worstname has quit [Ping timeout: 260 seconds]
chipxxx has quit [Ping timeout: 265 seconds]
tyson2 has quit [Remote host closed the connection]
chipxxx has joined #commonlisp
kenran has quit [Remote host closed the connection]
easye has quit [Remote host closed the connection]
specbot has quit [Remote host closed the connection]
minion has quit [Remote host closed the connection]
chipxxx has quit [Ping timeout: 260 seconds]
minion has joined #commonlisp
specbot has joined #commonlisp
chipxxx has joined #commonlisp
chipxxx has quit [Remote host closed the connection]
chipxxx has joined #commonlisp
chipxxx has quit [Ping timeout: 252 seconds]
chipxxx has joined #commonlisp
mooseball has quit [Quit: Leaving]
<Shinmera> phoe: lol remember this https://github.com/Shinmera/verbose/issues/7
<ixelp> Add DEFINE-CONTROLLER to redefine the whole pipeline · Issue #7 · Shinmera/verbose · GitHub
chipxxx has quit [Ping timeout: 265 seconds]
pve has quit [Quit: leaving]
NicknameJohn has quit [Ping timeout: 255 seconds]
shka has quit [Ping timeout: 260 seconds]
tedwing has joined #commonlisp
chipxxx has joined #commonlisp
chipxxx has quit [Ping timeout: 252 seconds]
chipxxx has joined #commonlisp
rgherdt has joined #commonlisp
chipxxx has quit [Quit: Leaving]
morganw has quit [Remote host closed the connection]
borodust has quit [Remote host closed the connection]
rgherdt has quit [Remote host closed the connection]
Gleefre has quit [Ping timeout: 260 seconds]
akoana has joined #commonlisp
<whereiseveryone> For anyone interested this Sunday, Demo: Live Loading Common Lisp Systems with Guix https://mail.gnu.org/archive/html/guix-devel/2023-03/msg00363.html
<ixelp> Demo: Live Loading Common Lisp Systems with Guix
borodust has joined #commonlisp
tedwing has quit [Ping timeout: 265 seconds]
Jach has quit [Ping timeout: 250 seconds]
random-nick has quit [Ping timeout: 248 seconds]
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 276 seconds]
Lord_of_Life_ is now known as Lord_of_Life