clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
dharrigan 2021-06-24T06:13:01.184200Z

Good Morning! Hope everyone is doing grand!

RAMart 2021-06-24T06:15:12.184700Z

โ˜•

RAMart 2021-06-24T06:15:16.184900Z

Next :clojureD 2021 talk now online: https://www.youtube.com/watch?v=A0TafHXszgM

3๐Ÿ”ฅ
mccraigmccraig 2021-06-24T06:28:18.185200Z

maaning

simongray 2021-06-24T06:42:59.185400Z

morning

simongray 2021-06-24T06:54:33.186600Z

Meeting up with all of my actual colleagues for an actual social get-together tomorrow. Kinda weird after all of this time!

1๐Ÿ‘ฏ1๐Ÿ’‡
pez 2021-06-24T06:58:43.186800Z

Morning!

borkdude 2021-06-24T07:18:54.187100Z

Hell-o

jkxyz 2021-06-24T08:25:25.187500Z

Morning!

slipset 2021-06-24T08:49:17.187600Z

Jup. a safer thing would be to use negative infinity as the identity value.

borkdude 2021-06-24T08:53:00.188200Z

ah yes:

user=> (reduce max ##-Inf [1 2 -10 -10M 10M] )
10M

thomas 2021-06-24T09:03:08.188500Z

Morning

slipset 2021-06-24T09:17:25.188600Z

And, of course, max also has a zero value, ##Inf

borkdude 2021-06-24T09:19:31.188800Z

in computers this may work, but in math, this is flawed

slipset 2021-06-24T09:19:47.189Z

How so in maths?

borkdude 2021-06-24T09:20:34.189200Z

in math you can't treat ##Inf as one value

slipset 2021-06-24T09:20:56.189400Z

Well I guess if you go in to talking about which infinities are larger and such, like is #Inf * #Inf > #Inf and such nonsense ๐Ÿ™‚

borkdude 2021-06-24T09:21:03.189600Z

math would say like Clojure: you can't take the value of a macro, but then for Inf

2021-06-24T09:22:27.189900Z

Morning

jasonbell 2021-06-24T09:54:17.190100Z

Morning

fel-mazo 2021-06-24T10:32:55.190400Z

Morning !

reefersleep 2021-06-24T11:40:14.190800Z

๐Ÿ™Œ

val_waeselynck 2021-06-24T13:31:17.191100Z

Morning!

raymcdermott 2021-06-24T14:16:36.191500Z

morning

agigao 2021-06-24T15:09:55.193300Z

Hey folks, Iโ€™m having and interesting issue - canโ€™t load env. variables into the repl started in Emacs, on the other hand Clojure repl started in terminal loads all variables. Any ideas? Mac OS Emacs 27.2 ZSH

agigao 2021-06-26T07:59:27.218800Z

Yeah and also if I provide a var alias in exec-path-from-shell-copy-env then Emacs GUI loads the variable, but the project has dozens of such vars, and I wonder why the library doesnโ€™t automatically load login shell env-vars.

djm 2021-06-26T08:04:04.219400Z

Presumably macOS doesn't make those available to applications. Doesn't exec-path-from-shell start a shell process to get them?

djm 2021-06-26T08:07:50.219600Z

If I had a lot of variables, specific to one project, I would put exports for them in .envrc in the project directory, run direnv allow in there in a shell, then use envrc

agigao 2021-06-26T08:11:35.219800Z

Surprisingly enough I encountered the same issue in Emacs GUI in Manjaro Linux machine :thinking_face: I thought MacOS/M1 was to blame

agigao 2021-06-26T08:12:28.220Z

Yeah, me too, but thatโ€™s how the client has it done across all projects.

agigao 2021-06-26T08:13:08.220200Z

Regarding shell process - not sure, is there a way to check?

djm 2021-06-26T08:14:38.220500Z

On Linux, I think it depends on where you set them. Possibly /.profile is sourced when Xorg starts, but not /.bashrc (or the latter might exit early when not being used in an interactive shell).

djm 2021-06-26T08:14:55.220700Z

Use the source, Luke ๐Ÿ˜

agigao 2021-06-28T08:23:32.297100Z

@djm_uk Thanks! it turns out zsh keeps env variables in .zshenv and Emacs GUI managed to eventually source those vars.

1๐Ÿ‘1
2021-06-28T08:25:32.297700Z

@chokheli how did you fix it in the end?

agigao 2021-06-28T08:26:18.297900Z

@otfrom added vars to .zshenv

2021-06-28T08:26:54.298100Z

๐Ÿ†’

2021-06-28T08:26:55.298300Z

thx

agigao 2021-06-30T05:21:58.432600Z

Cheers!

javahippie 2021-06-24T15:15:35.193500Z

Is Emacs started from the Shell or as a standalone application?

djm 2021-06-24T15:17:11.194Z

I just have (setenv "FOO" "bar") in my emacs config on macOS. I think there is another way to do it on macOS, but I forget what it is

agigao 2021-06-24T15:18:04.194600Z

@javahippie Standalone app

2021-06-24T15:18:39.194800Z

This might help https://github.com/purcell/exec-path-from-shell

djm 2021-06-24T15:19:38.195100Z

This plus direnv also seems to work for the case when I use that https://github.com/purcell/envrc

djm 2021-06-24T15:20:39.195500Z

(use-package envrc
 :config
 (envrc-global-mode))
or whatever

agigao 2021-06-24T20:14:45.195800Z

Couldnโ€™t solve the issue ๐Ÿคท tried all packages and configurations. Trying terminal-based emacs.