Roc’s compiler is being rewritten in Zig primarily due to significantly faster compile times, which have been a major pain point in Rust.

Zig’s allocator-based memory management, better tooling for static binaries, and built-in support for optimization techniques (like struct-of-arrays and bit-packing) align better with Roc’s needs.