Pages

joi, 26 noiembrie 2026

Tool : goose programming language

Goose is an experimental, memory-safe systems programming language created by Wouter van Oortmerssen (aardappel). Its syntax is similar to C and Rust, and it compiles directly into standard C code. Unlike traditional languages, Goose does not use a heap allocator or a garbage collector. Instead, the compiler organizes all dynamic data onto simple, static memory stacks.
High Performance: Eliminates heap allocation overhead, allowing programs to run faster and use less memory than C++ and Rust in many benchmarks.
Effortless Memory Safety: Prevents memory errors at compile time without requiring complex lifetime annotations or strict borrowing rules.
Instant Memory Cleanup: Frees entire data structures in a single step when a scope ends, with zero garbage collection pauses.
Compact Data Layout: Stores strings, arrays, and nested records inline as contiguous blocks of memory for faster CPU cache access.
Safe Multithreading: Isolates worker threads with no shared memory, passing data safely through typed queues without locks or data races.
Easy C Integration: Compiles to a single portable C file, calls C functions directly, and includes a built-in TinyCC compiler for instant execution.