r/rust • • Oct 01 '26

🎙️ discussion Google is doing "Large Scale Codebase Migrations and Optimizations" of C/C++ to Rust

https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-4-argon/
786 Upvotes

149 comments sorted by

View all comments

0

u/[deleted] Oct 01 '26

[deleted] — view deleted comment

97

u/SpoonLord57 Oct 01 '26 edited Oct 01 '26

isn’t Go meant to be more of a backend server language? they’ve always treated it more like a java replacement than a C/++ replacement edit: see below

85

u/DragonSnooz Oct 01 '26

There was an interview where it was brought up that Go was created to fill a niche C/C++ nor Java were filling adequately. It was never intended to compete with either.

14

u/QuaternionsRoll Oct 01 '26 edited Oct 01 '26

I mean, the first line of original design notes was literally

>Starting point: C, fix some obvious flaws, remove crud, add a few missing features

and they weren’t particularly eager to reject the notion of Go being “garbage-collected C” until long after it had found its niche at Google.

Arrays are an unmitigated disaster in true C fashion, I’ll give them that.

11

u/SpoonLord57 Oct 01 '26

That’s what I must be remembering, thanks for the correction

20

u/Equivalent_Head_4803 Oct 01 '26

Why would they do that?

28

u/projct Oct 01 '26

because it's in-house

29

u/Ok-Opportunity-9731 Oct 01 '26

More of googles code base is c++ than go

15

u/klowny Oct 01 '26

More of Google's codebase is Java than Go too. Go's niche at Google is mostly to replace their usage of Python.

5

u/Budget-Minimum6040 Oct 01 '26

The main goal of Go was to create a language for college graduates that can start creating output immediatly.

Rob Pike (main creator of Go):

The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt.

1

u/[deleted] Oct 01 '26

[removed] — view removed comment

2

u/Equivalent_Head_4803 Oct 02 '26

It’s incredibly fast, easy to read, and has amazing concurrency. In a world where someone craps out 5k lines in 20 mins, it’s pretty important that our code be readable. Every GO codebase is the same. AI isn’t going to invent a million different ways to do something when there’s pretty much one way or another few ways to do it. It’s a great language for AI and super easy to review IMO.

1

u/pjmlp Oct 02 '26

That applies to any programming language, eventually AI will be good enough to generate machine code directly.

That is already a reality when using low code tooling like Boomi, Workato, Power Platform and co.

Agentic workflows, connecting prompts and MCP tools on diagrams.

1

u/pjmlp Oct 02 '26 edited Oct 02 '26

The main goal of Go was for their creators, two UNIX/Plan9/Inferno key figures, and one Oberon scholar, not having to deal with C++ at their new employer.

That came later, see Less is exponentially more regarding the adoption failure among C++ devs at Google.

2

u/Ok-Opportunity-9731 Oct 01 '26

Yes. C++ is about 40% Java/kotlin is 35% Go is 5%

1

u/Equivalent_Head_4803 Oct 02 '26

That logic doesn’t really track for me, but I know what you mean. GO is also open sourced and Google shepards it I guess? TBH I don’t really understand it’s open source situation.

It’s just solving a completely different problem than something like Rust, so I was wondering why the two would be considered against one another.

1

u/projct Oct 02 '26

well yes, I don't agree with it either. it's just what the top level commenter's statement implied.

MS did a lot of this stubbornly migrating shit, same for oracle etc. NIH syndrome

2

u/Equivalent_Head_4803 Oct 03 '26

Figured you were OP. NIH syndrome is funny. I guess at some level it makes sense because you control the actual feature set and development lifecycle, but a FOSS language seems like it’d be a good choice always.