clojure-nl

Companies working with Clojure in The Netherlands: https://docs.google.com/spreadsheets/d/1NzOqY1v-OReB1IquUgHuT3Kh8K8jhPdlwBM6ds7id6Y/edit?usp=sharing
gklijs 2020-06-17T06:33:52.307Z

Morning, gonna be doing some Rust in my free time the next weeks. But if all goes well get me to speak at Kafka Summit ๐Ÿ˜€. To bad it's not in Taxas.

skuro 2020-06-17T08:08:36.307200Z

online event I presume?

borkdude 2020-06-17T09:22:21.307700Z

nice!

gklijs 2020-06-17T09:36:10.308Z

Yes online.

2020-06-17T09:56:05.308600Z

How do you guys go about learning a new language like Rust; I find it immensely interesting, but never managed to get past the fighting the borrow checker stage

borkdude 2020-06-17T10:00:31.308900Z

@lennart.buit I recommend reading the Rust book and doing the exercises

2020-06-17T10:02:31.309800Z

Right! That went much more elaborate since I looked at it a few years ago

gklijs 2020-06-17T10:19:58.313300Z

Yes, Rust book, and if you are prepared it's going to be tough, it's actually not so bad. The borrow checker also gets improved over time, where the compiler does more and more of the inference, and less code/boilerplate is needed in some cases.

2020-06-17T10:29:12.314100Z

Yah, mostly lack of trying at my side. I didnโ€™t really have a project or something, so I just stopped when it became a bit challenging ^^

borkdude 2020-06-17T10:29:47.314700Z

I do have one "real" Rust project: https://github.com/babashka/pod-babashka-filewatcher of course it's to enhance babashka / Clojure ๐Ÿ™‚

2020-06-17T10:35:58.315800Z

Epic! I was like, is this JNI or some epic Graal option or something, but no, just plain old stdin/stdout

borkdude 2020-06-17T10:46:55.316200Z

yep ๐Ÿ™‚

gklijs 2020-06-17T11:12:53.318300Z

I find it useful to learn one thing at a time. So for example not a new IDE and a new language at the same time. If you have a small existing project in Clojure, you could try to do the same with Rust. It decreases the complexity, and is probably easier to debug than a 'new' project.

2020-06-17T12:07:19.318700Z

Right; yeah, thats always my struggle. Trying to do something new in a new language

borkdude 2020-06-17T12:08:08.319200Z

welcome to contribute to the filewatcher. one thing I want to add to it is able to unwatch a directory or something like that

borkdude 2020-06-17T12:09:08.320100Z

the challenge there is to manage multiple filewatcher objects in some vector or mutable map and destroy them later. my Rust isn't that good yet

2020-06-17T12:10:21.320300Z

you would say its rust-y

2020-06-17T12:10:29.320600Z

Iโ€™ll show myself out

borkdude 2020-06-17T12:10:52.321Z

https://www.youtube.com/watch?v=6zXDo4dL7SU

2020-06-17T12:11:04.321300Z

this is our office humor, canโ€™t help it

borkdude 2020-06-17T12:11:23.321600Z

thanks for letting me in on your office humor

2020-06-17T12:15:04.322100Z

Anyhow, Iโ€™ll take a look as to whether I can help with that. Sounds like a good / contained challenge!

borkdude 2020-06-17T12:17:01.322800Z

it does involve some knowledge of lifetimes, the relevant knowledge is in the last part of the Rust book

skuro 2020-06-17T12:23:27.323300Z

are you guys doing rustacean things in :emacs: ?

borkdude 2020-06-17T13:05:12.323700Z

I do

borkdude 2020-06-17T13:06:42.324300Z

@skuro I recommend https://github.com/rust-lang/rls

skuro 2020-06-17T13:07:37.325400Z

looking around, seemed to me that rust-analyzer was kinda recommended, but it's fairly hard for me to compare the two LS implementations

borkdude 2020-06-17T13:08:09.325600Z

haven't tried that one

skuro 2020-06-17T13:10:28.325900Z

first result I found was https://rust-lang.github.io/compiler-team/working-groups/rls-2.0/

borkdude 2020-06-17T13:15:50.326200Z

I did the google half a year ago, maybe things changed

borkdude 2020-06-17T13:16:03.326500Z

but I know my setup works, so I ain't changing it now ๐Ÿ˜‰

skuro 2020-06-17T13:18:16.326700Z

oh I know the feeling

skuro 2020-06-17T13:19:26.327200Z

emacs config + muscle memory be like

skuro 2020-06-17T13:19:28.327300Z

gklijs 2020-06-17T16:47:40.330200Z

I'm almost always using IntelliJ. But it feels more sluggish with each release. Might try VS Code at some point.