freenode/#lisp - IRC Chatlog
Search
6:34:58
jmercouris
how can I know that what I am looking at on github https://github.com/oconnore/queues is the same thing?
6:35:23
jmercouris
specifically this line; #<system queues.simple-queue / queues-20170124-git / quicklisp 2017-04-03>
11:47:40
michipili
Hello there! I am new to common lisp and just tried quicklisp. I am not sure how to convince quicklisp package installer to look for 3rd party (binary object) library in special locations.
11:48:29
Xach
michipili: but in my experience, it is easiest to try to put those libraries in standard system locations
11:49:31
michipili
My lisp system is sbcl intstalled over macports and resides in /opt/local/bin/sbcl, yet the quicklisp system does not find libraries under /opt/local/lib
11:50:09
antoszka
michipili: I don't know about macports, but had good success running sbcl (and others) with quicklisp from brew.
11:50:59
antoszka
Though I only have a linux pc at hand at the moment, so can't look at my stuff immediately ;)
11:51:23
Xach
michipili: hmm, I don't know how that needs to be configured, sorry. for search purposes, it is not really a quicklisp issue - it is lower than that. it has to do with how the shared library loader (usually via cffi) searches, which also uses the underlying system configuration.
11:52:43
michipili
@Xach Well, I'm totally new to lisp and the corresponding environment so the tiniest bit of information is still helpful :)
11:54:36
Xach
michipili: you could try (push #p"/opt/local/lib/" cffi:*foreign-library-directories*)
12:01:06
Xach
There is also an environment variable you can set before starting lisp, or within lisp
13:25:23
rumbler31
michipili: coming from a lisp user on osx that also uses macports, try the push method Xach mentioned first. One way to do that is to quickload cffi first, then issue the above command, then quickload all other libraries. On OSX usually the shared objects have their dependencies embedded as full hardcoded paths, so for macports shared objects I believe this should be enough. The story changes on windows
13:27:47
rumbler31
Generally, modifiying DYLD_LIBRARY_PATH environment variable is considered bad practice for reasons that are complicated to explain, which is what you would ostensibly do to tell osx where to find shared libraries that it normally can not. If you go this route, then later use a gui like emacs to fire everything up, opening cocoa apps from finder does not import the login shell environment variables, so when emacs load
13:27:47
rumbler31
s lisp all of the dlopen calls for macports dependencies (ie the path in DYLD_LIBRARY_PATH) will fail
13:28:20
rumbler31
you have to open terminal and issue open /Applications/Emacs.app which will open the cocoa emacs app but inherit the environment properly
16:54:39
phoe_
What tool can I use for that job if I know the gradient's length? I thought of alexandria's LERP, but I've never used it yet.
17:31:41
didi
So... Do you use the implicit PROGN of LOOP's do? e.g. (loop for x to 42 do (print x) (print (1+ x)))
17:35:10
didi
One more: If I want to add a key without a value to a hash table but I don't want to mess with any previously stored value of that key, I use (setf (gethash key hashtable) (gethash key hashtable)). Is there another way, as succinct?
17:35:47
aeth
phoe_: If you want an accurate gradient, you may want to change it into a different color space first. https://en.wikipedia.org/wiki/Color_space
17:36:18
aeth
There's probably one where lerp is a better fit than RGB and rgb->something-else->lerp-it->rgb is probably easier than doing fancier math
17:51:02
phoe_
basically, I need not the image itself, but the RGB values of individual colors along the way.