Roc 0.1.0 Released After Eight Years of Development

The functional programming language Roc has reached its first numbered release, version 0.1.0, after roughly eight years of design and development.

Roc began in 2018 as an effort to bring an Elm-inspired experience to a wider range of use cases. Its creator notes that the language has since developed its own character, though it still shares much with Elm. Many design details changed over the years, but the standard library types still largely resemble the early sketches. The project held off on a numbered release partly to avoid setting expectations of stability, and the author says the language is far more stable now.

Roc aims to approach the speed of performance-focused languages such as Rust and C++, while accepting some cost due to automatic memory management and stricter memory safety. The announcement cites benchmarks of community projects. A deflate implementation written in Roc showed a median slowdown of 2.6% against C's libdeflate on an M1 MacBook Pro and 8.9% on a Ryzen 3900X. A regex library was reported faster than the popular Rust regex crate, though the author stresses the comparison is not like-for-like. Build time measurements were also shared for check, optimized-free development builds, and test runs, with one outlier excluded due to a compiler edge case that will be addressed after 0.1.0.

The language uses its type system to separate pure functions from effectful ones, and the compiler enforces a naming convention that effectful function names end in an exclamation mark. Pure functions can be evaluated at compile time when they do not depend on runtime inputs. The release also highlights a range of community projects, including a full-stack web framework, native GUI libraries, and a game engine.

The next release is expected to be 0.1.1, focused on bug fixes and performance improvements, with a target of around December 2026. Future plans mentioned include concurrency primitives, improved testing tools, a built-in debugger, and better build times for cold and optimized builds.

Source: rtfeldman.com


Posted

in

by