The Goose Programming Language
Web page · https://aardappel.github.io/goose
First seen by Oriel on .
AI summary
Goose is a memory-safe systems language that replaces heap allocation with compiler-managed data stacks and reports faster benchmark results than C++ and safe Rust while using less memory.
- Dynamic values live inline on statically assigned data stacks; scope exit frees their storage by advancing the stack pointer, without an allocator, garbage collector, or reference counting.
- Across sixteen benchmarks, Goose reports 3.3x the speed of idiomatic C++, 1.16x hand-optimized C++, and 1.12x the best safe Rust, with lower memory use; the page notes that some benchmarks are cases where Goose loses.
- The compiler infers reference roots and rejects references that could outlive their owners, while grow-only arrays preserve references as they expand.
- Inline variable-sized records, variable-mode enums, and narrow relative references reduce storage and can make data position-independent; sequential variable-sized arrays cannot be indexed directly.
- Goose compiles to one C file, supports direct C calls, and provides isolated worker programs that exchange flat values through typed queues.
#systems programming #memory safety #compilers #c
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Hacker News: 132, latest observation ; +91 over observed period since
- Lobsters: 1, latest observation ; 0 over observed period since
Comments
Comment count reported by the source.
- Hacker News: 49, latest observation ; +38 over observed period since
- Lobsters: 5, latest observation ; +5 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Hacker News | 50224300 | https://aardappel.github.io/goose/ Read discussion |
| Lobsters | dkoryq | https://aardappel.github.io/goose/ Read discussion |