News for hackers. Stuff that matters.
Re:Roc rewrites the compiler in Zig by Muromec on Tuesday February 04, 2025 @07:09PM (#42941316)
>but the compiler needs to do memory-unsafe things

sorry, but why?

Re:Roc rewrites the compiler in Zig by isaacvando on Tuesday February 04, 2025 @08:14PM (#42942067)
I believe the main reason is for achieving the best possible performance. Someone closer to the compiler could give more detail.
Re:Roc rewrites the compiler in Zig by vitiral on Tuesday February 04, 2025 @10:37PM (#42943398)
It's not just the lang but the std lib too

https://www.roc-lang.org/faq#rust-and-zig

Re:Roc rewrites the compiler in Zig by mrkeen on Wednesday February 05, 2025 @03:21AM (#42945589)
I am also skeptical.

A compiler is a function from source code strings to binary bytes. Writing out instructions to do memory-unsafe things is not in itself a memory-unsafe activity.