Developers · Updated 25 Oct, 12:57 am IST
Goose: a memory-safe systems language without a heap or GC
Why it matters for readers: Curious readers get a concrete example of research-driven language design that challenges typical heap/GC assumptions.
- Goose uses no heap allocator, garbage collector, reference counting, or destructors and instead places dynamic values inline on compiler-managed data stacks.1
- Memory grows by advancing a pointer and is freed when scope ends, so freeing large nested structures can be a single store operation.1
- Benchmark results in the repository claim Goose runs 3.3x faster than idiomatic C++, 1.16x faster than hand-optimized C++, and 1.12x faster than the best safe Rust while using less memory in those comparisons.1
- The language aims to be memory safe without lifetime annotations, by having the compiler infer reference roots and reject references that might outlive their storage.1
Get a brief like this every morning
Uzha reads hundreds of sources and gives you the stories that matter for your work, with every source linked. Free.
Get started