Author’s note: human written
“and our love turns to rust.” - U2
When picking the right tool (language) for the job, you frequently have your all-things-being-equal choice. Sometimes tools are unequal and you have to go in a direction. Front end requires JS, mssql requires (duh) SQL, etc.
All-things-being-equal, I’m leaning towards Rust as my target of choice for AI driven coding projects for nontrivial production systems.
My reasons, some having to do with AI, and some having to do with the quality of the generated code:
1. It’s fast, with no garbage collection. Generated code is not starting at a performance or scalability disadvantage.
2. It’s type safe, which is helpful for human readers, and helpful for eliminating a large class of errors.
3. Variables are default read only (which is the way it always should have been, imho).
4. Strict data ownership enforced by compile time checking, via the borrow checker, making it more difficult to create or introduce later data alias mistakes.
5. Code can be tiered, where a DSL can be developed from an application core, and use of that DSL alone (with no native “low level” Rust) can be enforced at the higher level tiers, restricting AI from weaving low level and high level constructs in confusing manners.
6. Integrates well with other languages, so Rust can serve as the performant "glue" to other right-for-the job languages.
7. A decent set of packages (this is getting better - other languages beat it here currently, but momentum is on the side of Rust)