3 ms·
I've been trying this one for a while: I'm a Python programmer. Help me understand memory management in Rust. Mainly because I want to fully understand me
by simonw 2y ago
I've been trying this one for a while:
I'm a Python programmer. Help me
understand memory management in Rust.
Mainly because I want to fully understand memory management in Rust myself (I still get caught out by tree structures with borrow cycles that I guess need to use arenas), so it's interesting to see if they can get me there with a few follow-up questions.
- jacobsenscott 2y agoThis isn't a good way to learn this. If you don't know how rust memory management works you don't know if the llm is just hallucinating the answer.
- gh0stcat 2y agoAlso Rust has great documentation compared to other languages, I particularly like this one for the quizzes to test your understanding: https://rust-book.cs.brown.edu/ https://rust-book.cs.brown.edu/
- simonw 2y agoThat's why it's an interesting test: I don't know the answer myself, so it's an exercise in learning with an unreliable teacher. If a model ever DOES nail this I'll figure that out when I feel like I have a solid mental model, try to put that knowledge into action and it works.