Re:Roc rewrites the compiler in Zig
by stevage on Tuesday February 04, 2025 @04:40PM
(#42939211)
If author is reading this, maybe worth a paragraph saying why you're not rewriting in Roc.
[ Parent
| on HN ]
Like this one?
> Roc's compiler has always been written in Rust, and we do not plan to self-host. We have a FAQ entry explaining why, and none of our reasoning has changed on that subject.
Re:Roc rewrites the compiler in Zig
by bhansconnect on Tuesday February 04, 2025 @05:43PM
(#42940151)
because that's hard. also it's one choice I respect them for not making: don't self host until you have actual users and momentum (unless you want to to prove a point). if Roc intends to have industry usage, keeping it in another language for now is a good move.
Re:Roc rewrites the compiler in Zig
by bhansconnect on Tuesday February 04, 2025 @06:00PM
(#42940395)
Roc never plans to self host. We want roc the compiler in the long term to be as nice as possible for end users. A big part of that is as fast as possible. While roc can be fast, it can't compete with all the techniques that can be done in rust/zig/c/c++. It fundamentally is a higher level language to increase developer joy and reduce bugs. So it isn't the right tool when you are trying to reach the limits of hardware like this.