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.
online event I presume?
nice!
Yes online.
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
@lennart.buit I recommend reading the Rust book and doing the exercises
Right! That went much more elaborate since I looked at it a few years ago
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.
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 ^^
I do have one "real" Rust project: https://github.com/babashka/pod-babashka-filewatcher of course it's to enhance babashka / Clojure ๐
Epic! I was like, is this JNI or some epic Graal option or something, but no, just plain old stdin/stdout
yep ๐
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.
Right; yeah, thats always my struggle. Trying to do something new in a new language
welcome to contribute to the filewatcher. one thing I want to add to it is able to unwatch a directory or something like that
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
you would say its rust-y
Iโll show myself out
this is our office humor, canโt help it
thanks for letting me in on your office humor
Anyhow, Iโll take a look as to whether I can help with that. Sounds like a good / contained challenge!
it does involve some knowledge of lifetimes, the relevant knowledge is in the last part of the Rust book
are you guys doing rustacean things in :emacs: ?
I do
@skuro I recommend https://github.com/rust-lang/rls
looking around, seemed to me that rust-analyzer
was kinda recommended, but it's fairly hard for me to compare the two LS implementations
haven't tried that one
first result I found was https://rust-lang.github.io/compiler-team/working-groups/rls-2.0/
I did the google half a year ago, maybe things changed
but I know my setup works, so I ain't changing it now ๐
oh I know the feeling
emacs config + muscle memory be like
I'm almost always using IntelliJ. But it feels more sluggish with each release. Might try VS Code at some point.