A new programming language just showed up claiming to beat both C++ and Rust. Faster and with less memory, it's called Goose. It's memory safe and it has no heap, no garbage collector, no lifetime annotations, and no unsafe keyword. And this is what got people arguing. The compiler is about 30,000 lines of C++ and almost all of it was written by an AI. So is this a real breakthrough or slop? Let's look at how a language with no heap even works, what the benchmarks really say, and where the catch is. Goose was designed by Wouter van Oortmerssen. He's the engineer who created FlatBuffers at Google and the Lobster language before this. So the design comes from someone who has been building languages for decades. But he didn't write most of the code himself. The project page credits him with the language design, the compiler design, and the coding standards, and it credits Claude with the compiler implementation, the benchmarks, the samples, and the docs. In its own words, the repo was produced almost entirely with AI, from a human language design. So here's what he designed. In C++ or Rust, a growing vector lives on the heap. When it runs out of room, it allocates a bigger block, copies everything over, and frees the old one. That's why a reference into a vector can dangle. And that's the exact bug Rust's borrow checker exists to stop. Goose doesn't have a heap at all. Instead, the compiler gives your program a handful of data stacks. Each one reserves 2 GB of address space by default. A growing array just extends along its stack. It never moves. So a reference to the first element stays valid after a million pushes. And freeing memory is nearly free. When the scope ends, the top of the stack moves back and everything above it is gone. Quick one. If animations like this make things click for you, I turned them into full courses. System design, CDNs, sharding, consistent hashing, AI engineering, RAG, and agents. From the basics, step-by-step, to designing real systems. The first lesson of every course is free. All you need is an email. Want everything? All-Access Lifetime is one payment. Future courses included. Links in the description. Okay, back to the video. So how is that safe? Every reference in Goose has a root and the compiler works that root out for you. A reference that could outlive its owner is rejected. There are no lifetime annotations to write and no aliasing rules to fight. Every array index is bounds checked and the compiler removes the checks it can prove are unnecessary. And threads share no mutable memory, so data races can't even be written in the language. The second big idea is layout. In Goose, nested data is stored inline with no pointers. The project's own example is a small order record. In C++, it takes 160 bytes and one allocation. In Rust, 153 bytes and four allocations. In Goose, 29 bytes and zero allocations. Now the headline. Across 16 benchmarks, Goose reports about 3.3 times the speed of idiomatic C++, 16% faster than hand-optimized C++, and 12% faster than the best safe Rust, with less peak memory in all three. But look at that carefully. These are the project's own benchmarks, written by the same AI that wrote the compiler. The page even shows two slightly different sets of numbers, and Goose compiles to a single C file, so it's standing on the same C compilers it's being compared against. Nobody independent has reproduced this yet. And the model has real limits. Recursive functions can't keep growable data across a recursive call. There are no escaping closures and no function pointers, only whole-program compilation. And if you reuse a pool slot that something still points at, you read a different value of the right type. Goose calls that a logic bug, never memory corruption. The page itself says Goose is new. So did Goose beat C++? On its own benchmarks, yes. Would I ship it? Not yet. But the interesting part isn't the scoreboard. One person with decades of language experience wrote down a design, and an AI turned it into 30,000 lines of working compiler. The hard part of a new language used to be building it. Now it might just be knowing what to build. Thanks for watching. Want to go deeper? The first lesson of every course is free. I also write deep dives in my newsletter. Links are below. See you next time.