hn.today

Roc version 0.1.0, eight years in the making

rtfeldman.com484 points134 comments
Screenshot of Roc version 0.1.0, eight years in the making

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.

Read on rtfeldman.com134 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Laravel Rust

Laravel Rust

Laravel for Rust is a full-stack web framework with routing, validation, database tools, background jobs, and real-time features. It also supports Inertia for frontend integration and is released under the MIT license. (github.com)

The Uberization of Software

The Uberization of Software

Ride-hailing apps greatly expanded demand for trips but undercut the value of taxi medallions and squeezed driver earnings by removing the supply limits that had protected them. The essay argues that software engineering faces a similar paradox: rising demand can lower workers’ pay when technology rapidly expands the supply of labor. (lsrx.net)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.