Using Rust Code from Unity for High Performance

Unity gives you several ways to turn C# into machine code. This post is about one it does not ship: a Rust library, called from C# over the same pointers Burst already uses. The interop is about a dozen lines. On the Mono that Unity desktop games ship by default, a game AI workload runs 6.4 times faster in Rust. Against IL2CPP it is 4.7 times faster, and against Unity’s experimental CoreCLR backend and plain .NET 10 about 2.3 times. ...

August 10, 2026 · Oddur Magnusson

Agent Guardrails with Rust

I’ve been spending most of my time in agent-driven development lately, and the biggest insight I keep coming back to is this: the person in the driving seat matters more, not less. The barrier to generating code with agents is basically zero. But agents will optimize for the path of least resistance, and the result will be mediocre. The engineers who have internalized best practices over years of building real systems, who know what good looks like, are the ones who can direct agents past that. The experience to know when code is merely working versus actually well-built is what separates useful agent output from slop. ...

March 22, 2026 · Oddur Magnusson