Fork me on GitHub
#off-topic
<
2020-10-02
>
Aron09:10:47

One thing I will never be comfortable with is the ><<=>= being prefixed. The order messes with my mind. interesting because I don't have similar issues with division or subtraction, just lessthan/greaterthan

jsn10:10:23

they all accept varargs though, you can't easily get that semantics w/o prefixed syntax

manutter5111:10:43

One trick I heard of is to mentally think of them as:

<   are-the-following-ordered-from-least-to-greatest?
>   are-the-following-ordered-from-greatest-to-least?
etc

manutter5111:10:02

Like if you imagine the shape of the operator as a picture of the shape the “heights” of the quantities.

15
👏 6
dominicm11:10:21

Crocodiles always eat the biggest number

🐊 9
Stefan11:10:06

@manutter51 That’s nice, so basically “ascending?” and “descending?” respectively I guess

sova-soars-the-sora23:10:59

"monotonically increasing" and "monotonically decreasing" is the word from the docs. < increasing ... > decreasing (< 1 2 3 4 5 6 7 8 9 10) all good ( > 100 8 1) all good

manutter5111:10:32

Yeah, it’s the only way I can keep them straight, hat’s off to whoever came up with that.

thom12:10:24

I picture a little skier going either uphill < or downhill > on the top of the bracket and that helps me.

lread12:10:13

If I forget, I just mentally move the operator past the first argument and then it becomes clear to me.

sogaiu12:10:36

lol, that's exactly what i do too 🙂

walterl16:10:55

I like how this community (Rich) has turned "hammock" into a verb 😄 https://clojurians.slack.com/archives/C03S1KBA2/p1601648356409300

😆 3
👍 6
hammock 6
emccue16:10:08

Just noodling in my brain now

emccue16:10:42

How would I deploy a service that does its work on the filesystem in an environment where the filesystem if often destroyed

emccue16:10:50

and is it worth the trouble

valtteri18:10:26

Maybe use something like https://aws.amazon.com/efs/ if the perf characteristics are sufficient for you

ghadi18:10:30

you can mount EFS into a Lambda now

Miloš Tepić21:10:26

Hey there peeps! Not sure on which channel to ask but do you write scripts in Clojure or some other lisp dialect? I want to write a script to sync my home directory with some directory on external HDD using rsync or similar tool. But also I want to exclude some files and directories. I know I can write a simple bash script but I want to explore other possibilities and I want to have fun. 😄

andy.fingerhut21:10:20

I have not used it myself, but you might want to check out babashka https://github.com/borkdude/babashka. Also there is a #babashka channel here. If you have a system with a JVM installed, and the Clojure CLI tools, you can also write a single-file Clojure/JVM program like this: https://github.com/jafingerhut/dotfiles/blob/master/bin/clj-check-added-metadata. (only the first few lines of that file are necessary to adapt for another script -- I do not currently have a shorter example that uses that approach)

Miloš Tepić21:10:41

This looks interesting. Thanks.

andy.fingerhut21:10:46

Here is a shorter example of a single-file Clojure/JVM program, in case that approach interests you: https://github.com/jafingerhut/dotfiles/blob/master/bin/clj-simple-single-file-script

sova-soars-the-sora21:10:26

that's really neat! so it invokes clojure on the command-line...

Frank Henard22:10:08

I used babashka with borg-backup and am fairly happy

sova-soars-the-sora23:10:59

"monotonically increasing" and "monotonically decreasing" is the word from the docs. < increasing ... > decreasing (< 1 2 3 4 5 6 7 8 9 10) all good ( > 100 8 1) all good