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

As far as my understanding of zig goes....it can compile into C....so if you really want secure C code you can compile zig into C?


Not quite, it can translate C into zig using the `translate-c` command that it comes with. But it compiles directly into machine code


There is a C backend, so you can also compile Zig into C if you want.


yea but, that's extremely edge case, or at least I have not yet encountered a need for that personally.


While Zig prevents certain kinds of memory safety issues that C does not, it still suffers from memory-safety issues not found in safe Rust.


Zig can compile into C, but it's not portable C




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

Search: