Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tonetegeatinst
5 months ago
|
parent
|
context
|
favorite
| on:
Zig feels more practical than Rust for real-world ...
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?
dayvster
5 months ago
|
next
[–]
Not quite, it can translate C into zig using the `translate-c` command that it comes with. But it compiles directly into machine code
osmsucks
5 months ago
|
parent
|
next
[–]
There is a C backend, so you can also compile Zig into C if you want.
dayvster
5 months ago
|
root
|
parent
|
next
[–]
yea but, that's extremely edge case, or at least I have not yet encountered a need for that personally.
Ar-Curunir
5 months ago
|
prev
|
next
[–]
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.
Cloudef
5 months ago
|
prev
[–]
Zig can compile into C, but it's not portable C
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: