Hacker News new | ask | show | jobs
by zamalek 14 days ago
The reason rust is so tied to all the AI rewrites is because we see that the power of AI improves when the task has stronger verifiability. A stronger example is reverse-engineering: you have the final machine code to verify against. Performance of the final binary is still a bonus, but it's the strictness of Rust that makes it great for AI.
2 comments

Yep, the blog post about the copilot rewrite basically goes into that: https://github.blog/ai-and-ml/generative-ai/migrating-the-gi...

Rust here was mostly because they wanted to link to it. It has some benefits by itself, but the real killer feature was the e2e tests that they had for the effort.

> we see that the power of AI improves when the task has stronger verifiability.

Do we actually see this? I mostly write in a dynamic language (Elixir) and it generally one-shots features with no errors. I also have an extended project in zig and it rarely if ever writes spatiotemporal memory errors and doesn't segfault unless I'm miscompiling targets or doing something truly cursed (pointers crossing ABIs in a dllloaded shared library)

The "power of AI improving" does not mean it becomes completely incompetent on the other end of the spectrum.
It's not incompetent at all I think it's arguably better in some cases. I have shoulder surfed on friends trying to wrote rust or python and just doing terribly.