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.
<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")
<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]