Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>but the compiler needs to do memory-unsafe things

sorry, but why?



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.


I believe the main reason is for achieving the best possible performance. Someone closer to the compiler could give more detail.


It's not just the lang but the std lib too

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: