WhoBuilt

Rust is the language of the AGI

Jun 3, 2025· 29 min· 17K views·Watch on YouTube

Speaker

Michael Yuan, an open-source project contributor, presents Rust Coder at an AI conference, showing how it uses Rust tools and language models to help people and AI agents generate and fix Rust code.

Rust’s strengths and learning curve

Yuan says Rust has been the most loved language in Stack Overflow’s developer survey for ten years, with 82% admiration in the data he presents. He contrasts that with lower interest in using Rust and points to its steep learning curve: its compiler and type system require precise code from the start.

Why Rust may suit AI code generation

Yuan argues that Rust’s compiler gives AI models a clear signal about whether generated code is valid. He says this tight feedback loop can reduce debugging after code compiles, and that a language built for machine verification may be a better fit when AI writes more code.

Rust Coder demos for learners and IDEs

Rust Coder aims to help people learn Rust and generate code with AI, using educational materials and a knowledge base of common programming tasks. In one demo, a model answers a number-base conversion problem, explains its solution, and produces code that runs with `cargo run`. In another, an MCP server generates Rust projects or compiles and fixes files; Yuan shows it repairing a missing brace.

How the system is built and used

The system combines coding models, prompts, a growing knowledge base of compiler errors, and tools for project generation and compile-and-fix workflows. Yuan describes an open-source stack using LlamaEdge, vector search options including Elasticsearch, TiDB, and Qdrant, and an MCP server. Rust Coder can be run with Docker Compose and used through APIs or MCP integrations.

From developer tools to autonomous agents

Yuan sees MCP tools as a way for language models to use services such as a Rust compiler and bug-fixing system. He sketches a future drone example: an agent could generate Rust code using an SDK in the knowledge base, compile and debug it, then upload it to the drone. He frames this as a long-term vision and says the project is still in progress and welcomes contributions.

Takeaways

  • A compiler can provide AI coding systems with a concrete signal for whether generated code is valid.
  • A specialized knowledge base of compiler errors and fixes can help an assistant handle language-specific problems.
  • Rust Coder exposes project generation and compile-and-fix workflows through APIs and MCP tools.
  • The drone scenario is a long-term vision, not a demonstrated capability; Yuan describes the project as ongoing.

Mentioned in this talk

Search inside this talk

What was claimed 16

Related talks