HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by AndyKelley | Hacker News Reader
Parent
Full thread
AndyKelley
·
Yes:
https://godbolt.org/z/72Dvpe
View on HN
iruoy
·
Simple stuff like this looks very similar to Rust:
https://godbolt.org/z/spkKai
Rust quickly becomes harder though, while Zig is much easier to grasp.
tsimionescu
·
The fact that they compile to the same assembly instruction does not make them similar source code.
abainbridge
·
The languages are similar enough that the Zig tool-chain can translate C source into Zig source. There's mostly a one-to-one correspondence.
Reply on news.ycombinator.com