3 ms·
Will the compiler have something like go's ability to vendor code locally? I've worked on some science projects and this has been a hard requirement on some sys
by gravypod 5y ago
Will the compiler have something like go's ability to vendor code locally? I've worked on some science projects and this has been a hard requirement on some systems for tape archive storage.
- nrr 5y agoZig's build system has a first-class notion of packages that satisfies exactly this requirement. The Ziglearn documentation[0] has more details. To make things a little more interesting though, Zig's shape in this regard should be roughly congruent to C's, so you should be able to do anything with Zig that you can with C. This includes linking against shared objects for C libraries like, e.g., SDL2[1] or building mixed-language Zig+C projects[2]. 0: https://ziglearn.org/chapter-3/#packages https://ziglearn.org/chapter-3/#packages 1: https://dev.to/fabioarnold/setup-zig-for-gamedev-2bmf https://dev.to/fabioarnold/setup-zig-for-gamedev-2bmf 2: https://tiehu.is/blog/zig1 https://tiehu.is/blog/zig1