Roc 0.1.0 Ships After Eight Years, Built on a 487-Day Rewrite From Rust to Zig
Software / news
Roc 0.1.0 Ships After Eight Years, Built on a 487-Day Rewrite From Rust to Zig
The release notes say only "Roc version 0.1.0." The numbers are in Richard Feldman's two blog posts, and several of them cut against the rewrite.
Roc, the functional language Richard Feldman began in 2018, published its first numbered release, 0.1.0, to GitHub at 02:25 UTC on Monday, Nov. 30. The release page is built from commit ee83568, the same commit as release candidate 2, which went out on Nov. 25. Release candidate 1 came on Nov. 21.
The release notes are one line: "Roc version 0.1.0." There is no changelog and no list of breaking changes. The substance is in Feldman's announcement post, which says plainly that "version 0.1 is not 1.0!"
What shipped on Nov. 30
The release carries 10 assets. Native compiler builds exist for Linux on x86_64 and arm64, macOS on Apple silicon and Intel, and Windows on x86_64. The Linux x86_64 tarball is 95,016,159 bytes. Three WebAssembly files cover an echo example, a REPL and a playground, and the project site says the full compiler runs in the browser without a backend.
Roc compiles to standalone binaries or to WebAssembly. Feldman writes that the compiler was rewritten from scratch in 2025 and that the rewrite was completed earlier in 2026. The site says the project is trying to raise $4,000 a month to fund one longtime contributor full time.
What the rewrite cost
The language moved from Rust to Zig during the rewrite. In a second post, Feldman says it took 487 days to reach feature parity with the old compiler, announced on July 15. The Rust original was about 300K lines. The Zig version was 320K lines at parity and is 464K lines now.
Feldman benchmarked builds of the compiler itself on an Intel desktop running Ubuntu 26. The figures below are his own, and he says the comparison is not apples to apples because the codebase changed a great deal during the rewrite.
| Compiler build | Cold build | Incremental |
|---|---|---|
| Rust 1.85 (original) | 32.4s | 10.0s |
| Rust 1.97 (original) | 25.4s | 3.4s |
| Zig 0.16.0 (parity) | 39.6s | 8.6s |
| Zig 0.17.0 (today) | 32.1s | 0.035s |
- Rust 1.85 (original)32.4 s
- Rust 1.97 (original)25.4 s
- Zig 0.16.0 (parity)39.6 s
- Zig 0.17.0 (today)32.1 s
Source: Richard Feldman, rtfeldman.com/rust-to-zig, accessed 2026-11-30
Read the cold column first. Zig 0.17.0 at 32.1s is slower than the Rust original on Rust 1.97 at 25.4s. The 35ms incremental figure is the headline, and Feldman says it needs a Zig 0.17 nightly the team has not adopted. His post adds that -fincremental works only on x86-64 for now, and that Rust's own incremental builds fell from 10.0s to 3.4s over the same period.
The site covered another compiler this week: Marmot, a Go compiler on LLVM, counted its benchmarks two ways. Roc's own numbers carry similar caveats, and so do those of Nvdriver, a Rust project the site has also covered.
Bugs, speed and the open edge case
Feldman counted memory-corruption bug reports: 21 of 2,596 in the Rust era and 10 of 431 in the Zig era. Eight of the 10 Zig reports were miscompilations. The other two were use-after-free bugs in error reporting, which he says Rust's borrow checker would have caught. He concludes that choosing a different tool "would have made no appreciable difference to the project."
On the output side, the announcement reports the project's own benchmarks. The roc-deflate library had a median slowdown against C's libdeflate of 2.6% on an M1 MacBook Pro and 8.9% on a Ryzen 3900X. Cold roc check took 874 ms on roc-graph-layout, a 66,168-line project.
One bug is still open. A very large literal exposed what Feldman calls a "pathological edge case" in the compiler, and he says the fix should be in the next release after 0.1.0. He gives no date for it.
Sources
More in Software
- 01Touch ID for sudo on macOS: Four Steps of Setup and Two Places It Stops WorkingA Nov. 30 post walks through sudo_local on macOS Sonoma and later. Its readers added the tmux fix, and one warns that a passwordless gdb rule is root.
- 02Rust 1.100 Stabilises the Allocator Trait for Vec and Box, With More to ComeThe Nov. 12 release lets library authors hand a custom allocator to two collection types. A community walkthrough shows what that looks like in practice.
- 03A Linux Memory-Pressure Flag Throttled Every nginx Socket at CDN77 for Five HoursThe cause was a cgroup reclaim heuristic, not a lack of free RAM, and the only visible trace is a counter that arrived in Linux 6.19.
- 04Superpowers, at 330,000 Stars, Retunes Brainstorming a Third TimeIssue #2530 says the v7 questions waste tokens, and the fix in draft pull request #2756 was written by Claude Fable 5.2.