Goose language claims memory safety without a heap or GC
Original title: The Goose Programming Language
In the project's sixteen benchmarks, Goose is claimed to run at 3.3x idiomatic C++ while using less memory.
Goose is a systems language with syntax familiar to C and Rust programmers and no heap allocator, garbage collector, or lifetime annotations. Dynamic values live on compiler-managed data stacks and are freed when their scope ends. It compiles to one C file, and the repository says it is faster than C++ and safe Rust while using less memory.
Unconfirmed: The speed and memory figures are the project's own benchmark claims.
- The project claims 1.16x hand-optimized C++ and 1.12x the best safe Rust.
- Those comparisons also claim 1.9x, 1.3x and 1.2x less memory.
- A bundled TinyCC backend can compile and run a program in-process.
- Relative references are described as 1-, 2- or 4-byte offsets.
From the original article
17 min read at aardappel.github.ioA memory-safe systems language with no heap allocator, garbage collector, or lifetime annotations. In this repository's benchmarks, Goose runs faster than C++ and Rust while using less memory.
By andsoitis · aardappel.github.io
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.