Search
Tuesday, 26th of March 2019, 6:32:43 UTC
8:35:52
rdap
i'm too tired for any more lisping today, night o/
9:35:48
beach
Were you able to get in touch with asdf_asdf_asdf or whatever the nick was?
9:36:00
phoe
He ended up on #lisp-pl
12:38:34
Lord_of_Life_
** NICK Lord_of_Life
13:48:52
jmercouris
I'm having trouble with Envy on FreeBSD
13:48:57
jmercouris
it works fine on macOS and Linux
13:49:06
jmercouris
but it doesn't seem to pick up the environment variables on FreeBSD
13:49:09
jmercouris
anyone else have this experience?
13:49:47
jmercouris
however if I set the environment variable I want to read via osicat, it seems to work
13:51:29
jmercouris
looking at the short source for envy.lisp
13:51:36
jmercouris
it seems that asdf::getenv is at fault
13:52:20
jmercouris
ok, I have confirmed that asdf::getenv is the problem, it returns nil
13:52:55
jmercouris
even (uiop:getenv "PATH") returns nil
13:53:18
jmercouris
actually wait, PATH works, but my variable set in my shell does not work
13:53:24
shka__
asdf afaik redirects system queries to uiop
13:53:39
jmercouris
so apparently something is going on with my login shell
13:53:49
jmercouris
because it does pick up PATH, but not APP_ENV
13:54:01
shka__
show the script perhaps?
13:54:19
flip214
jmercouris: did you export the variable, so that child processes can see it?
13:54:23
flip214
PATH is exported by default.
13:54:32
flip214
# export APP_ENV=/dev/null # or whatever
13:55:11
jmercouris
I did in my .cshrc set APP_ENV = "development"
13:55:27
jmercouris
maybe if I also put it in my .profile? or do I have to export it as you say?
13:56:10
lieven
try setenv instead of set
13:56:26
jmercouris
ok, saving and resourcing
13:58:12
jmercouris
how did you know setenv would do it instead of set?
13:58:39
lieven
memories of csh on Sunos 4 from 25 years ago :)
13:58:57
lieven
are the BSDs still using csh as default?
13:59:34
jmercouris
though adduser prompts you to set whatever you want
13:59:47
jmercouris
however, the default account/root account you start with is using csh
14:00:14
jmercouris
I use fish on my main machine, and bash before that, so I didn't know much about csh
14:00:22
jmercouris
I mean, I still don't know much about csh
16:54:36
jasom
minion: memo for jmercouris: don't use csh
16:54:36
minion
Remembered. I'll tell jmercouris when he/she/it next speaks.
17:37:27
grewal
is there a recommended way to distribute lisp scripts?
17:38:17
grewal
I know I can make an image, but I'd rather just share the source code. There seems to be no clean way to handle dependencies
17:41:07
_death
I guess you could use https://www.quicklisp.org/beta/bundles.html .. in some of my "scripts" I have a quickload form with :silent t , but I also use a custom image that has most of the dependencies already loaded
17:41:39
dlowe
grewal: there's some projects that deal with this. cl-launch and roswell come to mind.
18:25:59
phoe
I have a list of triples in form (X Y Z). I am inside a loop that iterates over two variables. How can I find the value of Z if there is a triple with a matching X and Y in the list?
18:27:42
Bike
(third (find-if (lambda (triple) (and (eql (first triple) x) (eql (second triple) y))) list-of-triples))?
18:28:15
phoe
Bike: I kind of wondered if there would be a more elegant way for that
18:28:29
phoe
but I suspect I'd end up with a pattern matching library that way
18:30:18
phoe
I can't effectively FIND a NIL
18:30:23
phoe
and some of my values there are NILs
18:30:47
phoe
oh wait a second, FIND-IF will return the whole triple
18:30:51
Bike
i don't understand, though, if there's triples
18:31:00
Bike
yes, it returns the element that matched
18:31:03
phoe
Oh - yes, I got confused for a moment
18:31:08
phoe
in that case it'll work - thanks
18:31:12
Bike
if by "list of triples" you meant "list of triples and also nils" it should be fine
Tuesday, 26th of March 2019, 18:32:43 UTC