Roc ships 0.1.0, its first numbered release, after eight years
The author of the Roc programming language has announced Roc 0.1.0, the first numbered release. The author started designing the language in 2018, aiming for an Elm-inspired experience for what the post calls the long tail of use cases. Elm was then focused only on user interfaces, though the post says its scope has now expanded with Acadia. Roc has since developed its own character, so the two languages share a lot but differ in obvious ways. Many design details changed over the years, yet the types in the standard library still look about as they did in the 2018 sketches. Holding off on a numbered release was meant to signal that users should not expect stability; the author says things are much more stable now.
On speed, one of Roc's stated goals is to approach the performance of Rust and C++ without quite matching it. Roc does automatic memory management and is stricter about memory safety than Rust, and both choices have runtime costs. The post gives benchmarks from four community projects, each compared with Rust or C and all built with the highest optimization levels in their compilers. Niclas Åhdén's roc-deflate was compared with C's libdeflate across 144 compression benchmarks, in a separate article titled How close can pure FP get to C? The median slowdown against libdeflate was 2.6% on an M1 MacBook Pro and 8.9% on a Ryzen 3900X. Karl's roc-regex technically benchmarks faster than the Rust regex crate, but the author says this is not an apples-to-apples comparison: Karl used a matching algorithm based on RE#, which favors that algorithm on these particular inputs. Both packages give identical answers across all inputs. Zak Kohler built roux on top of his Zig webserver fourneau and benchmarked it against Rust's axum crate and a vanilla Go webserver; the chart uses his November 28 benchmarks, and his Drag Race Page updates nightly.
The post also stresses fast feedback loops. Rather than publish laboratory build-time benchmarks, the author asked the community which projects could be shown. Some people posted their own build times and the author measured others on his own machine; a few projects are commercial and proprietary. The charts cover cold builds (no on-disk cache), warm builds, root-changed rebuilds and import-changed rebuilds. The commands are roc check (type-checking and compile-time evaluation), roc build --opt=dev (the same plus an unoptimized development binary) and roc test (which also runs tests). One outlier was left out of the charts: Rocco's village example. Its cold-run median build times on an M5 MacBook Pro were 1s for roc check, 3.5s for roc build --opt=dev and 7.5s for roc test. It was not much bigger than the other code bases, but it contained a huge literal that exposed a pathological edge case in the compiler. A fix should arrive in the next release.
As an example of the language's design, the post shows a File.exists! call. Roc's type system gives pure and effectful functions different types, and the compiler enforces that effectful function names end in !. Effectful functions may only be called from other effectful functions, while pure functions can be called anywhere. That shows which parts of a code base are pure and where the effects are. Pure functions are also evaluated at compile time when possible, meaning when they depend on no runtime inputs, and this happens before exhaustiveness checking. So Regex.compile in a roc-regex snippet runs while the program is compiled, and a syntax error in the regex string makes the pattern match fail, which even roc check reports. Other language notes: all values are semantically immutable, but the optimizer does opportunistic mutation behind the scenes where it would not be observable; the post also lists zero-allocation lambdas (no heap allocation).
The post features community projects, limited to one per author. They include Joy, an open-source full-stack web framework with an Elm-style architecture and a WebAssembly frontend (Niclas has used it in paid production work for 2 years), platforms for native macOS and Windows apps, an experimental 3D game engine with game logic in Roc and internals in Odin, a chat application with a Zig platform, commercial screenwriting software with a custom Rust platform, and an immediate-mode GUI library. Smaller items include goose-roc, roc-build and roc-platform-patcher. For learning, the post points to the official tutorial, the language reference, Exercism's Roc track (created by Aurélien Geron, who also wrote much of the official documentation, with 139 exercises built with other maintainers) and the Roc Zulip. It credits the Koka and Morphic research languages, without which Roc would not be competitive with fast imperative languages, and Rust, in which Roc's original compiler was written.
The next release will most likely be 0.1.1, with bugfixes and performance improvements based on issues already reported on 0.1.0, most likely in December 2026. Nightly releases are published automatically from the previous day's main. For 2027 and beyond, the team is exploring concurrency primitives in the standard library, improved test output with effect simulation and property-based testing, a built-in debugger (Roc already emits DWARF debug info for third-party debuggers), features inspired by theorem provers, and faster cold and optimized builds. Minimizing development rebuild times was the priority for 0.1.0.
Key facts
- Roc 0.1.0 is the language's first numbered release; the author began designing it in 2018 and says things are much more stable now.
- In the author's comparison across 144 compression benchmarks, roc-deflate had a median slowdown against C's libdeflate of 2.6% on an M1 MacBook Pro and 8.9% on a Ryzen 3900X.
- Roc aims to approach Rust and C++ speed without quite matching it, because automatic memory management and stricter memory safety carry runtime costs.
- An outlier project, Rocco's village example, had cold-run median build times on an M5 MacBook Pro of 1s (roc check), 3.5s (roc build --opt=dev) and 7.5s (roc test), due to a compiler edge case that a later release should fix.
- 0.1.1 is most likely due in December 2026; ideas for 2027 and beyond include concurrency primitives, a built-in debugger and theorem-prover-inspired verification, all described as exploration.
Why it matters
A language that has been designed in the open since 2018 now carries a version number, which the author had deliberately withheld to signal instability. The release pairs that with evidence on both axes it cares about: runtime speed close to C in one test, and short development builds. It also shows a distinctive design choice: effects are tracked in the type system and marked with a trailing !, and pure code can run at compile time.
Who it affects
Developers interested in a functional language aimed at a wide range of uses, especially people who like Elm's style. The post says Elm was long focused on user interfaces, and Roc targets the long tail of use cases. It also touches people already building on Roc: the featured projects span web frameworks, native desktop apps, games, a chat app and commercial screenwriting software.
How to use it
The post points beginners to the official tutorial, the language reference and Exercism's Roc track, which has 139 exercises. The Roc Zulip has an #introductions channel for newcomers. Anyone who wants the latest compiler can use the automatically published nightly releases, built from the previous day's main. The commands mentioned are roc check, roc build --opt=dev and roc test.
How solid is it
The post comes from the language's own author, and the benchmarks come from community projects built at the highest optimization levels. The roc-deflate result is a median slowdown measured on two named machines. The author flags the roc-regex result as not an apples-to-apples comparison. Build times were partly posted by community members and partly measured by the author on his own machine, and some projects are proprietary and could not be inspected. The charts are not reproduced in the text, so this account has no figures for roc-regex, roux or most of the build-time results.
Risks and caveats
Roc does not match Rust or C++ in speed by design, and the 2.6% and 8.9% figures are medians for one library comparison, not a general guarantee. The 0.1.0 release has a known compiler edge case triggered by a huge literal, with a fix expected in the next release. A numbered release does not remove all risk: 0.1.1 is planned for bugs and performance reported on 0.1.0. The 2027 items are things being explored, with no dates or commitments given.
“It's taken a long time to get this foundation in place, but 0.1.0 is just the beginning for Roc!”
— the post's author