simonw 2 days 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.

1
jacobsenscott 2 days ago

This 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.

simonw 2 days ago

That'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.

gh0stcat 2 days ago

Also 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/