HeadlinesBriefing favicon HeadlinesBriefing.com

Gossamer blends Rust safety with Go‑style concurrency

Hacker News •
×

Gossamer is a new language that mixes Rust‑style syntax with Go‑like flow control. It uses forward pipes (|>) and immutable by default, so code reads top‑to‑bottom instead of nested inside‑out. If you know Rust, Go, or F# you can pick it up quickly. The design aims for expressive and clear semantics without surprises. It also supports pattern‑matching and generics.

Memory management avoids stop‑the‑world garbage collection by using deterministic reference counting and arena regions that free objects as soon as they die. Gossamer eliminates borrow‑checker complexity and lifetime annotations, while real goroutines run on an M:N scheduler. Blocking calls park the goroutine, not the thread, so concurrency remains lightweight. Channels are typed, preserving safety across threads.

Developers can run code in a browser through WebAssembly or compile a single binary with LLVM. The gos toolchain handles interpretation, iteration, and release builds without steps. Rust standard library extensions provide HTTP, JSON, crypto, SQL, compression and more, and unsafe parts can drop into safe Rust when needed. It targets Linux, macOS, Windows, including ARM, making shipping straightforward. Binary size stays small, easing deployment.