{"schemaVersion":"1.0","type":"TechArticle","types":["Article","TechArticle"],"slug":"why-are-software-legends-quietly-switching-to-go-and-rust-in-the-age-of-ai-fwqmz","url":"https://zyvop.com/why-are-software-legends-quietly-switching-to-go-and-rust-in-the-age-of-ai-fwqmz","title":"Why Are Software Legends Quietly Switching to Go and Rust in the Age of AI?","subtitle":"From Discord to the TypeScript creator, top engineers are choosing Go and Rust for speed, safety and trust as AI floods the world with code.","tldr":"Discord left Go for Rust after a lag spike hit every two minutes. The creator of TypeScript tried Rust, rejected it, and picked Go. Both were right. Here's what Android, Linux, OpenAI and Microsoft reveal about why Go and Rust are rising as AI writes more of our code.","keywords":["go","AI","Programming Languages","TypeScript","Rust","Software Engineering"],"entities":["Shobit Singh","go","AI","Programming Languages","TypeScript","Rust","Software Engineering","ZyVOP"],"keyTakeaways":["Two teams made opposite calls about Go and Rust.","Both were right, and the reason why shows where software is heading.","Discord blamed Go for a lag spike that hit like clockwork every two minutes, and rewrote the service in Rust."],"headings":["The two-minute heartbeat","The legend who tried Rust and said no","Meanwhile, C and C++ are being quietly retired","Where AI changes the math","Go or Rust? A 30-second cheat sheet","The fine print","The real lesson","Sources"],"outboundLinks":["https://discord.com/blog/why-discord-is-switching-from-go-to-rust","https://devblogs.microsoft.com/typescript/announcing-typescript-7.0/","https://commandline.microsoft.com/?p=368","https://thenewstack.io/microsoft-typescript-devs-explain-why-they-chose-go-over-rust-c/","https://blog.google/security/rust-in-android-move-fast-fix-things/","https://www.infoworld.com/article/4111553/microsoft-is-not-rewriting-windows-in-rust.html","https://www.itpro.com/software/development/microsoft-rust-programming-language-modernization-ai","https://www.devclass.com/ai-ml/2025/06/02/nodejs-frustrating-and-inefficient-openai-rewrites-ai-coding-tool-in-rust/1619589"],"contentText":"Two teams made opposite calls about Go and Rust. Both were right, and the reason why shows where software is heading. Discord blamed Go for a lag spike that hit like clockwork every two minutes, and rewrote the service in Rust. Years later, Anders Hejlsberg, the creator of C# and TypeScript, tried Rust on his compiler, rejected it, and picked Go. Same industry, same two languages, opposite verdicts. Understanding why is the fastest way to understand what's happening to software right now, as AI floods the world with code. The two-minute heartbeat Discord's \"Read States\" service remembers which messages you've read. It's touched every time you connect, send or read, and it holds billions of entries. The Go version was fast on average, but every couple of minutes latency spiked. The culprit was Go's garbage collector. Go forces a collection at least every two minutes, and scanning a giant cache takes real time. Discord's code allocated very little, so careful tuning couldn't fix it. The Rust rewrite has no garbage collector, matched Go's latency in load tests, and the spikes vanished. The lesson: average speed is a comfortable lie. Users feel the worst moments. The legend who tried Rust and said no TypeScript's compiler is full of trees with parent pointers and recursive types. Rust's borrow checker doesn't like circular data. Hejlsberg's verdict: \"We tried Rust, and it just wasn't feasible.\" Go has a garbage collector, so the team could port the compiler function by function instead of rewriting it from scratch. The payoff arrived with TypeScript 7 in July 2026: Building the VS Code codebase dropped from about 126 seconds to about 11. The first error in the editor now shows up in under 1.3 seconds instead of about 17. Slack reports type-checking in CI falling from roughly 7.5 minutes to 1.25. Meanwhile, C and C++ are being quietly retired Android: in 2025, memory-safety bugs fell below 20% of all vulnerabilities for the first time. Google reports roughly 1000x lower memory-safety bug density in Rust than in its C and C++, about 4x lower rollback rates for medium and large changes, and about 25% less time in code review. Linux: maintainers declared Rust \"no longer experimental\" in late 2025. Still, as of April 2025 the kernel had about 34 million lines of C and only about 25,000 of Rust, so this is a slow, careful start. Microsoft: Distinguished Engineer Galen Hunt posted a goal of eliminating every line of C and C++ by 2030, pitching AI-assisted translation at roughly a million lines per engineer per month. The backlash was loud, and Microsoft clarified that it's a research project, not a plan to rewrite Windows with AI. Even so, the fact that the idea is thinkable says a lot. Where AI changes the math 1. Code is cheap now. Trust isn't. Think of AI as a junior engineer who types at lightning speed and never doubts itself. Rust's compiler acts as a strict reviewer, rejecting memory bugs and data races before anything runs. Go's tiny language and fast compiler keep generated code easy to skim. (This is an inference. Android's numbers come from human-written code.) 2. Rewrites stopped being career-ending. DARPA's 2024 effort and Microsoft's research both aim to use AI to translate C and C++ into Rust. It's early, and humans still own correctness. 3. Agents live on your machine. When OpenAI rewrote its Codex CLI in Rust, it cited speed, no Node.js dependency and better sandboxing on Linux. A tool that runs shell commands for you should be fast, self-contained and locked down. The infrastructure behind AI workloads (Docker, Kubernetes, Terraform) is already mostly Go. 4. Python keeps the research and loses the hot path. Tokenizers, data frames, linters and package managers like Hugging Face tokenizers, Polars, Ruff and uv increasingly run on Rust cores. Go or Rust? A 30-second cheat sheet Reach for Go to ship fast: services, CLIs, infrastructure, mixed-experience teams, or porting code that assumes a garbage collector. Reach for Rust when latency spikes, memory bugs or security holes are unacceptable, or when you're replacing C and C++. Keep what you have if it works. Almost nobody in these stories rewrote a healthy system for fun. The fine print \"Switching\" is generous. These teams added a tool; they didn't abandon their old ones. Rust is not magic either: Android caught a near-miss buffer overflow in unsafe Rust. Compilers catch certain mistakes, not wrong logic, so AI-written code needs review in any language. The real lesson The legends didn't pick a favorite language. They matched the language to the failure they feared most: lag spikes, circular data, memory bugs. As AI writes more of our code, the question stays the same. What's the one thing you can't afford to get wrong? Choose the language that makes that mistake hardest to make. So, what in your stack has a two-minute heartbeat? Sources Why Discord is switching from Go to Rust, Discord Engineering Announcing TypeScript 7.0, Microsoft DevBlogs TypeScript 7.0 and the Go port, Microsoft Command Line Why the TypeScript team chose Go over Rust, The New Stack Rust in Android: move fast and fix things, Google Security Blog Microsoft is not rewriting Windows in Rust, InfoWorld Microsoft's Rust plans and DARPA's C-to-Rust effort, ITPro OpenAI rewrites Codex CLI in Rust, DevClass Rust in the Linux kernel \"no longer experimental\" (Kernel Maintainers Summit report by Steven J. Vaughan-Nichols, via Slashdot)","contentHash":"sha256:51f97667152cbf45a720c66bf4fe0976870e71d14f63c8ee379168797e4df551","authorName":"Shobit Singh","authorUrl":"https://zyvop.com/author/shobit","authorSameAs":[],"category":"Software Engineering","tags":["go","AI","Programming Languages","TypeScript","Rust"],"audience":"Software engineers and developers building applications with Software Engineering","tone":"Practical and evidence-based engineering guidance","readingTimeMinutes":4,"wordCount":909,"faqs":null,"primaryTopic":"Software Engineering","publishedAt":"2026-11-27T17:52:13.574Z","updatedAt":"2026-11-27T17:52:13.574Z","canonicalUrl":"https://zyvop.com/why-are-software-legends-quietly-switching-to-go-and-rust-in-the-age-of-ai-fwqmz"}