4 ms·
You can build C projects using Rust and Cargo as well[0], but it requires more work than Zig appears to need. Rust also has good C FFI story and honestly I thi
by 0xCMP 5y ago
You can build C projects using Rust and Cargo as well[0], but it requires more work than Zig appears to need.
Rust also has good C FFI story and honestly I think we will still see a lot of important code rewritten in Rust.
That said, a more ergonomic C which seamlessly replaces the often bloated build configuration of C/C++ projects while allowing a far nicer language to slowly replace the existing code feels like TypeScript for JS (which I consider a good and smart thing). Definitely agree it's going to get far more use than I'd originally have guessed.
[0]: https://adventures.michaelfbryan.com/posts/how-to-riir/ https://adventures.michaelfbryan.com/posts/how-to-riir/
- steveklabnik 5y agoThis is qualitatively different, that requires a C compiler to be installed. rustc cannot compile C code itself. zig can.