Cookie preferences

We use essential cookies to make the site work. With your permission, we also use optional cookies for analytics, marketing, and functionality.

Leonardo Ribeiro's blog

Rust is not replacing Python for AI. It is taking the layer underneath.

A way to split the Rust-for-AI slogan into notebooks, agents, and the service that has to stay up.

13 min read

Generate an image of Rust programming logo with a explosion behind it.
Image is a hand drawn drawing with black pen.

I keep saving posts that say Rust already won AI. Then I watch an agent miss the one method the crate already had.

By the end you will have a way to split that slogan into model work, agent-written code, and infrastructure, plus a seven-question stack check you can run before you rewrite anything.

The slogan is ahead of the code I can actually check

I save those posts the way I save a sketch I am not ready to build. The caption is short. The claim is loud. “Rust is the language for AI” sounds settled, like the stack already moved and I am late.

I still cannot point to one stack where that is true end to end.

Not a notebook, an agent, a service, and a data path, all in Rust, all the thing people mean when they say AI. I can point to pieces. I cannot point to a coronation.

The throughline I want you to leave with is smaller than the slogan and more useful. Split the claim into three jobs before you treat it as a career move. Model work. Agent-written code. Infrastructure. Then run a checklist on your own project, not on a timeline.

Two videos sit under that split, and they do not agree on a winner. Why AI Infrastructure Is Moving to Rust asks, in the title and the description I could actually read, why infrastructure is moving toward Rust while Python still dominates machine learning. AI agents can now write idiomatic Rust (or can they?) is a five-minute trial. The host watches agents miss idiomatic crate use even when a guidance layer is in the room.

That is a tension, not a scoreboard. One source is about where the language shows up. The other is about whether the code an agent writes is the code the crate already knew how to write.

What I will not pretend I heard

The transcript for the infrastructure video did not load. I am not going to invent its examples, name a system it never put in front of me, or quote a line I did not hear.

Before I publish a tighter version of this, I should add only what that video actually shows: a concrete system, a memory-safety case, a comparison I can point at. Until then, the title and the description are the frame, and the frame is enough to argue with. It is not enough to borrow a bug story.

If you are the person who scrolls past a “de-facto language” take and feels the stack has already moved, that feeling is the thing to slow down. A louder claim is not a migration. It is a caption.

Python still owns the part people mean by AI

The infrastructure video’s own question is the useful one. Why talk about growth in infrastructure if Python is still the language people associate with machine learning?

That question only makes sense if both things can be true at once.

Calling Rust the de-facto language for AI collapses two jobs. One job is shaping models. Prompts. Notebooks. Experiments you throw out on Friday because the loss curve looked wrong. The other job is the software those models run on. The process that has to stay up after the notebook is closed.

People say “AI” and mean the first job. The posts I save often mean the second, then borrow the glamour of the first.

If your day is still the notebook

If your day is prompts, notebooks, and model experiments, a Rust headline is not a resignation letter from Python.

You do not owe the timeline a rewrite because a title put “AI” and “Rust” in the same line. Python still owns the part of the work that looks like learning, trying, and sharing a version. That is the part most of the audience means. The infrastructure video’s framing keeps Python in that seat on purpose. It does not announce that training notebooks have switched.

I do not have an adoption number to put next to that sentence. Neither source gave me a share of the stack, a survey, or a count of services. If a figure belongs here later, it has to be one I can cite from that video or from work I have actually touched. A guessed percentage would make the slogan feel checked when it is not.

What you can check without a percentage is the job in front of you. Are you shaping a model, or are you keeping a program alive around one?

Those are different afternoons. They can share a repo and still not share a language.

The rise is real where the program has to stay up

The same title still points somewhere. Infrastructure is the place the movement is being claimed. The description names memory safety as part of why people look at Rust there. That is a reason to look. It is not a full proof, and I will not dress it up as one.

The underlayer bet is the narrower claim I am willing to hold: Rust can become the default for the floor of a system while staying optional on the desk.

A rise can be real and still be smaller than the slogan.

What would make that bet concrete is not another saved post. It is a service, a runtime, or a data path I have shipped or watched fail. A place where a leak, a crash, or a quiet drift was the actual problem, and memory safety was part of why someone reached for Rust instead of staying in the language of the notebook.

[Your story: a service, runtime, or data path you shipped or watched fail, and what staying up required]

I am not going to invent that failure so the section feels finished. A made-up outage would be worse than a gap. The gap is honest. The bet stays a bet until the floor has a name.

The floor versus Friday’s notebook

You can name your own floor without waiting on me.

The floor is the process that must not leak, crash, or drift. The queue. The server that holds state between requests. The path that moves data when nobody is watching the notebook. Friday’s notebook is the other thing. You can delete it. You can start a new version tomorrow. The cost of being wrong is a bad chart, not a pager.

A language can win the floor and still be a poor fit for the chart. That is not a contradiction once you stop treating “AI” as one job.

Memory safety belongs in that sentence as a reason people look, the way the infrastructure video’s description puts it, not as a story I did not watch. If the video walks through a bug, a runtime, or a comparison, that is the detail this section is missing. Until it is in the draft, the underlayer bet is a way to read the title, not a case study.

The practical cut is simple. Keep the desk language where the experiment lives. Put the stricter language where the process has to hold. Do not let a caption merge them.

Agents still write yesterday’s Rust

Even if the floor is moving, the code that lands on that floor is often written by an agent. That is a different problem from “which language won.”

The Let’s Get Rusty trial states two reasons agents miss. Rust is relatively new. There is less training data than for C or C++. Generated code is not reliably idiomatic. The second problem sits in the ecosystem. Crates update often. Agents reach for outdated APIs, miss new features, or pin an older version. The host says they have seen that version slip themselves.

I have watched the same kind of miss, in the small way the opening describes. The method was already on the type. The agent wrote around it.

More Rust underneath can make the miss worse

Here is the part neither video says alone. If more of the AI stack’s floor is Rust, and that Rust lives in fast-moving crates, then “the language is winning” does not make agent output safer. It raises the cost of yesterday’s API.

A young language plus a young crate is a bad memory test. The model is asked to remember a library that changed after the cutoff, in a language it saw less of than C++. The host’s own experience, an agent pinning an older version, is the ordinary failure mode. Not a dramatic exploit. A quiet stale import.

Your stake is practical. Copying an agent’s Rust into a service is not the same as learning the language the infrastructure is moving toward.

You can paste a diff that compiles and still ship the old shape of the crate. The service stays up in the sense that it runs. It does not stay current. Review is the difference, and review requires you to know the crate well enough to see the skipped method.

That is why the underlayer bet only holds if agents are taught the crates in the workspace, instead of being trusted to remember a young language. Trust here is the wrong tool. The training set is behind the changelog.

Symposium tries to teach the crate instead of waiting on the model

Symposium is the project the trial is actually about. Nicholas Matsakis, described in the video as one of Rust’s main designers and maintainers, is the person behind it. The repo is symposium-dev/symposium.

The mechanism is plain. Symposium scans the workspace dependencies. It installs skills, hooks, and MCP servers so the agent gets guidance tied to what the project actually uses. Not a generic “write good Rust” prompt. A note attached to the crates already in the tree.

If you author a crate and want in, you add a skills directory and a skills.md, plus optional metadata, telling agents how the library wants to be used. People who depend on your crate, and who let an agent write against it, are supposed to follow those conventions.

The video points at a recommendations repo that lists crates with that support. The host names Toasty, an ORM they had not used before. The captions also throw out other names I will not clean up into official package titles, because I only have the spoken trial, not a manifest. Toasty is the one the test actually runs.

A note at the moment of use

The fix on offer is not “train a bigger model on all of Rust.”

It is a note from the library author, delivered when the agent is about to write. That matches the two failures from the previous section. Less training data, and crates that move. You do not wait for the next model to absorb Toasty’s current API. You hand the current note to the agent that is already in the repo.

The limit is just as plain. The note only exists for crates whose authors bothered to write it. A recommendations list is a start, not coverage. If your floor depends on a crate that never added skills.md, Symposium has nothing local to teach. The agent is back to memory.

So the underlayer bet now has a condition. Rust can sit under the system. The agent still needs a crate-level guide, and that guide is opt-in. Opt-in guidance is a process, not a property of the language.

I like that shape. It is closer to how I already work. A version, a detail, a note next to the work, instead of a claim that the tool already knows.

The same Toasty prompt did not crown a winner

The trial is small on purpose, and I am going to keep it small.

Two Codex agents. The same task-tracker prompt. One project with Symposium, one without. Same behavior. The code did not match.

On listing projects, the Symposium version called all directly on the projects object. The version without it went through a query object and asked for a list. The host calls the Symposium version cleaner.

On delete, the result flipped. Symposium’s version deleted related tasks by hand. The version without it called delete on the project and relied on Toasty’s relationship cascade.

Read that twice. The guidance layer won the list and lost the delete, in the same afternoon, on a crate the host had not used before.

Hit or miss is the result, not the language

A five-minute trial is not a verdict on Rust. It is not a verdict on Symposium either. The host says the run was hit or miss, and that the idea could still help.

I agree with the size of that claim. One idiom got shorter. Another idiom got longer, and the longer one did extra work the crate was willing to do itself. Cleaner is not the same as current. Shorter is not the same as correct about relationships.

The video’s 4,108 views and 200 likes are not evidence about Rust’s share of AI. They are a count of people who opened a five-minute clip. I am one more person writing from the clip, not from a census.

What the paired diff does show is how to read an agent PR. Do not ask only “did it compile” or “did the behavior match.” Ask which method it used, and which method the crate already had. The cascade was sitting there. One agent used it. One agent reimplemented it. Guidance did not decide that split in a way you could predict from the slogan.

If you are early in this and someone tells you agents now write idiomatic Rust, this is the counterexample you can hold without being cynical. Sometimes they do. Sometimes they walk past the method. The parenthetical in the video title is the honest part.

A tool that fits me is not a language that won

The host’s closer observation is the one I keep. These agent setups often work for one engineer and fail to transfer. Friends and colleagues end up with their own tools, harnesses, and workflows. They watch someone else’s setup, then tweak what they borrow.

That matches how I treat process. A version that finally feels like mine is not a standard I can hand you unchanged. Made between errands is still made. The rough edge is sometimes the point.

Tie that to the underlayer bet. Rust can be the language under the system while the agent harness stays personal. Symposium is one harness. It is not the standard library of AI, and it is not a house style you inherit by installing Rust.

The standard that actually travels

The standard the host keeps is plainer than a product. Use the new tooling and still understand the software. Especially for system work. Quality, robustness, and security stay in view.

I am not going to turn that into a line for a course. The point is the review, not a signup.

Put both sources together and you get a sentence neither title states. Infrastructure may be moving. The person reviewing the diff is still the one who knows whether the cascade was the point.

An agent can match behavior and still hide the design. Deleting tasks by hand might be what you wanted, if the cascade is too blunt. Using the cascade might be what you wanted, if hand-rolled deletes drift the next time a relation is added. The language did not choose. The harness did not choose reliably. You choose, if you can read the crate.

That is the authority worth building. Not “I switched to Rust.” A reviewed diff you can explain.

If your colleague’s harness fails on your repo, that does not mean the floor is fake. It means the note, the skills file, the hooks, the habit of reading delete, did not travel with the binary. Personal tools are allowed. They are just not a default you can announce for everyone else.

Call it default only after the stack check

Call a language the default only after you can answer for the job in front of you. Not for AI in general. For this repo, this crate, this diff.

Here is the stack check. Copy it. Run it on one real task before you rewrite a project in Rust or trust an agent pull request.

  1. Is this claim about notebooks, agents, or the service underneath?

  2. Which crate is in the workspace today, by name and version, not by memory?

  3. Does that crate publish skills or other agent guidance, or are you hoping the model already knows it?

  4. Did the agent use the current API, or an older version and an outdated method?

  5. Did the shorter code skip a cascade, a relationship, or another behavior the crate already implements?

  6. Would this harness transfer to another person on the project, or does it only fit the way you work?

  7. Who is reading the diff for quality, robustness, and security before it is called done?

How to run it once

Pick one task you were about to “just let the agent do.” Answer the seven lines in order. Write the answers next to the diff, even if the answers are short.

If the claim was about notebooks, keep Python where the model work still lives. A Rust headline does not resign you from that desk.

If the claim was about the service, put Rust where the process has to hold, and only where you can name the floor. No invented outage. No borrowed benchmark.

If the claim was about the agent, add crate guidance where the agent keeps missing the current API. A skills.md from the author beats another reminder to “be idiomatic.” If the crate has no note, your review is the note.

Question 5 is the Toasty lesson in reusable form. Matching behavior is not enough. Look for the method the crate already had. Question 4 is the version slip the host has seen. Question 6 is the harness that fits one engineer. Question 7 is the standard that still matters when the slogan is loud.

The rise is the underlayer, not a coronation. What you can do next is one reviewed diff, not a new identity as a Rust person.

I am still figuring out the last detail on my own floor. This version of the claim finally feels like mine because it is small enough to check.

If you want the question where I already ask it, that thread lives at lookmybio.com/esseleoribeiro

If you have tried an agent on a Rust crate you know well, which method did it skip?

Share this post

Get new posts by email

One email from Leonardo Ribeiro when a new post is published. Nothing else.

Comments