Conversation
Borrow checking in Rust is basically the world's most complex hot-potato game.
2
0
4

@buherator I just shuffle things around / hot-potato for 90% of the easy cases, and then slap an Arc<T> on the tricky 10%.

0
0
1

@buherator my own code just never borrows. `Arc<Mutex<Hashmap<_>>>`and `.clone()` like crazy. Totally fine for my private-use web/network applications (e.g. irc bot). I have actually profiled the allocations last holidays and it was so negligible, I will just keep it as is :D

1
0
0
@freddy I'm doing a pet project now primarily for learning, and doing things "the rusty way" proved to be enlightening so far. If I wanted to get shit done I would've just done it in Python and be done with it 2 hours ago :D
1
0
1

@buherator i see. What I want to say is that there is no one true rusty way. But if you want to, I get it. Hence my valgrind profiling.

0
0
1