3 ms·
>but the compiler needs to do memory-unsafe things sorry, but why?
by Muromec 2y ago
>but the compiler needs to do memory-unsafe things
sorry, but why?
- isaacvando 2y agoI believe the main reason is for achieving the best possible performance. Someone closer to the compiler could give more detail.
- vitiral 2y agoIt's not just the lang but the std lib too https://www.roc-lang.org/faq#rust-and-zig https://www.roc-lang.org/faq#rust-and-zig
- mrkeen 2y agoI 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.