Roc 0.1.0 marks the first numbered release of a functional programming language begun in 2018 and built by a growing community over eight years. Its aim is to combine fast compilation, performance approaching Rust, approachable tools, and strong safety and reliability guarantees. The language supports standalone binaries with built-in hot reloading and WebAssembly output. Its type system combines Hindley-Milner type inference, purity inference, and static dispatch; a platform-and-application model lets Roc work with lower-level languages without relying on a foreign-function interface that would weaken its guarantees. The release remains pre-1.0, so stability is not promised, though the design has become more settled.
The development history includes early compiler work in 2019, public attention and community growth from 2020, research influenced by Koka and Morphic, and a major compiler rewrite begun in 2025 to address architectural problems. Performance results suggest Roc can come close to optimized systems languages: in compression tests, community-built roc-deflate showed median slowdowns of 2.6% versus C’s libdeflate on an M1 MacBook Pro and 8.9% on a Ryzen 3900X. The comparison illustrates Roc’s ambition to deliver high speed while accepting some runtime cost from automatic memory management and stricter memory-safety design.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.