7 ms·
Zig has the especially interesting feature that it can compile C code.
by actionfromafar 3y ago
Zig has the especially interesting feature that it can compile C code.
- pjmlp 3y agoThat is more a property of shipping the whole LLVM/Clang package with the zig compiler than anything, though.
- actionfromafar 3y agoWhatever the mechanism, it has big implications for how Zig will be used in practice.
- pjmlp 3y agoA mechanism available to any language that feels like shipping clang. It is also how Swift gets its C and Objective-C interop, and will have its C++ interop as well. Or how the Java Panama project extracts header file information for native interop.