Choose a theme

Get in touch
Back to journal

AI Is Making Rust, Go, C, and C++ Easier to Ship to Production

A terminal-first workflow makes it easier to try Rust, Go, C, and C++. A local benchmark and a production migration show where the trade-off can pay off.

#Rust
#Go
#C
#C++
#AI Agents
#Software Engineering
Advertisement

I used to associate harder programming languages with a heavier setup. If I needed to follow a crash through several layers of code, I wanted the full IDE open. These days, I can start with a terminal, a failing test, and clear instructions for an agent. Let it trace the failure, make a small change, compile, run the checks, and show me what changed. That shift in how I work is changing what I’d consider writing for production. [1]

What makes a resource-efficient language easier to choose now is that an agent can take on more of the repetitive work after the first release. A small change used to mean tracing the call sites by hand, updating the code and tests together, rerunning the build, and untangling whatever failed. With a reproducible build and clear instructions, I can ask an agent to draft a readable patch, refactor the affected code, write a regression test, run the formatter and linter, and fix the failures it introduced. I still decide what behavior the tests must protect and review the patch before it ships.

I’d give Rust a closer look for a tool that needs to start quickly or run in little memory. I’d try Go for a service I want the team to read and operate easily. I’d also consider C or C++ when the platform or an existing native library makes that the practical choice. C and C++ have long been production languages. What’s changing is how much work it takes to get a first version running in a stack I don’t use every day. I made a version of this argument for Go when I wrote about Gin. This time the question is what happens when I take it beyond a web framework. [2]

What I’d automate on a codebase I have to maintain

I’d start by giving the agent the exact command to reproduce the issue, the behavior I expect, and the build and test commands it should use. For a bug fix, I want a test that fails against the original code for the expected reason and passes with the patch. Then I want the broader checks and the diff. That’s a workflow I can run from a terminal and repeat in CI.

Take the log processor below. If I change how it handles malformed rows, I can have the agent update the parser and its callers, add a case for the new behavior, and run the same checks CI will run. I’d review whether the patch reads clearly, whether the old behavior still holds where it matters, and whether the test would catch a regression. With those checks in place, the next person has a repeatable way to make another change.

The languages give that loop different kinds of feedback. Rust’s ownership rules let the compiler catch certain lifetime and borrowing mistakes, and Cargo gives me a standard entry point for tests. Go gives me built-in fuzzing and a race detector that can catch races on paths the program actually executes. With C or C++, I can ask the agent to run an instrumented build under AddressSanitizer to look for out-of-bounds access and use-after-free. If the process crashes, a debugger like GDB is still useful. In a terminal-first workflow, the agent can run the debugger and surface the stack trace for me. [3] [4] [5] [6] [7] [8]

There’s a difference between getting tests to pass and getting the behavior right. A 2026 preprint put coding agents through 1,963 bug-reproduction tasks across eight languages. Python was the only language whose success rate consistently beat the aggregate across the tested setups, and C++ had particularly low success rates. If I’m choosing C++ for a component, I want stronger evidence from that component’s actual build and tests before I ship it. [9]

One log processor, two implementations

For this article, Codex built a small log processor in Rust and Go in the same session. Both versions read a service name, HTTP status, and duration from each line. They had to skip malformed rows, count 5xx responses, sum durations, and emit services in alphabetical order. The shared acceptance fixture defined the expected output before either version ran. It included a 499, a 503, a negative duration, an out-of-range status, and an extra field.

Both passed. The timed input repeated that fixture to produce 900,000 synthetic lines (10.2 MB). Each program used only its standard library and ran as an optimized build on the same Windows x64 machine with an Intel Core i9-14900HX. After one warm-up per binary, the harness alternated run order across ten trials per language. It measured elapsed time from process launch through output collection and read each process’s peak working set from Windows.

Implementation Median elapsed time Observed range Median peak working set
Rust 1.100.0 77.6 ms 48.8–99.5 ms 5.1 MiB
Go 1.27.0 139.1 ms 90.9–176.2 ms 13.0 MiB

The Rust implementation came out ahead on this job. It reused a line buffer, while the Go implementation converted each scanned line to a string. The input repeated the same two service names, and a different parser or workload could change the result. I’d use this as a reason to test a real component with a resource budget. The experiment covers these two implementations. It leaves open what C and C++ would do on the same input and how much human review each version would need in a larger system.

Where I expect leaner runtimes to gain ground

A heavy IDE affects my development machine. A runtime with a large memory footprint affects every instance I deploy. A language with complex ownership rules costs the team time during development and review. Those are three different costs. Go itself ships with a garbage collector, and I’m happy to make that trade when the application meets its memory and latency budgets and the team can maintain it. [10]

GitHub’s Copilot team had a concrete reason to change that trade-off. Its TypeScript runtime could require SDK consumers to start a second process running Node and V8. The team used Copilot to port the runtime to Rust so it could embed it directly across SDKs and reduce runtime overhead. During the migration, it also found tests that confidently checked the wrong behavior. The rewrite made sense because of the costs of that specific architecture and the work the team put into verifying the port. [11]

There’s evidence of interest in Rust. GitHub’s 2026 Octoverse found that Rust had the fastest year-over-year percentage growth among its top languages, while TypeScript, Python, and JavaScript still led by monthly contributors. Stack Overflow’s 2026 survey put Rust at 18.0% and Go at 16.5% among respondents to its language question. Those figures measure participation and reported use. They leave the share of production systems and the cause of the growth open. [12] [13]

My bet is that more teams will reach for Rust, Go, C, or C++ when they have a specific problem to solve, such as a CLI with a slow startup, a parser that needs less memory, or a component that needs to talk to a native SDK. I’d keep a working Python, Java, C#, or TypeScript service where it meets its budgets and the libraries and skills are already in place. A system can keep its existing application and ship a leaner implementation of the one component that needs it.

The change I care about is that trying the second option costs less. I can define the behavior, give the agent a terminal and a test suite, then compare the new version against the real workload. If it saves enough CPU or memory and the team can still debug it six months later, that’s a reason to put it into production.

References

  1. JenuelDev, I Stopped Using Heavy IDEs. AI Became My IDE.
  2. JenuelDev, Why Gin Fits the AI Agent Era
  3. The Rust Programming Language, Understanding Ownership
  4. The Cargo Book, cargo test
  5. Go documentation, Go Fuzzing
  6. Go documentation, Data Race Detector
  7. Clang documentation, AddressSanitizer
  8. GNU documentation, Debugging with GDB
  9. Kusama et al., Multi-SWT-Bench (2026 preprint)
  10. Go documentation, A Guide to the Go Garbage Collector
  11. GitHub, Migrating the GitHub Copilot runtime to Rust, using Copilot
  12. GitHub, Octoverse 2026
  13. Stack Overflow, 2026 Developer Survey technology data

Thanks for reading! If you enjoyed this article and like this kind of content, you're always welcome to buy me a little coffee, but only if you'd like to. No pressure at all, and either way I'm truly grateful you stopped by. ☕

Buy Me A Coffee