(no title)
vitaminCPP | 1 year ago
Some things I think are remarkable:
Contrary to Rust, zig allows to cross-compile to MacOS. I think this implies that zig needed to build a custom linker!
Regarding libc:
- On Linux libc is not required because zig is using syscalls directly - On MacOS libc is required because of the lack of stable abi - On Windows libc is not required because zig links to windows kernel dll.
To my understanding, this implies that a compiled zig program will work across all linux distributions!
For C integration, I'm not knowledgeable enough to fully appreciate the work being done. but the fact that the cross-compiling also works out-of-box is mind-blowing to me.
vitaminCPP|1 year ago