HACKER Q&A
📣 andrewstuart

Does ChatGPT Understand Rust?


And if not, what does that mean for learning Rust with a ChatGPT copilot?


  👤 PaulHoule Accepted Answer ✓
ChatGPT doesn't understand anything but it does recognize and repeat common (and not so common) patterns. It sometimes gives the right answers and sometimes gives the wrong answers but it using the same process in either case.

👤 andrewstuart
It seems to me that ChatGPT is a critical tool to assist developers in learning programming languages.

Thus ChatGPT needs to be able to write reasonably good code in a given language and answer in depth questions about the language.

I read somewhere recently that ChatGPT isn't able to explain in detail or give examples for some of Rust's more sophisticated concepts.

This seems to me to be a big problem, especially when Rust is known to be so hard to learn that an AI assistant would be a huge help.

How can this be addressed?


👤 sebzim4500
It definitely knows some Rust. Not as well as it knows Python or JS/TS, but easily well enough to be useful.

Obviously don't expect it to know any libraries released in the least year.