Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
AndyKelley
on March 24, 2020
|
parent
|
context
|
favorite
| on:
Zig cc: A drop-in replacement for GCC/Clang
Yes:
https://godbolt.org/z/72Dvpe
iruoy
on March 24, 2020
|
next
[–]
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
on March 24, 2020
|
prev
[–]
The fact that they compile to the same assembly instruction does not make them similar source code.
abainbridge
on March 25, 2020
|
parent
[–]
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.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: