5 ms·
> The script bootstrap.sh installs ninja, zig and compiles LuaX I think we're going to see more build instructions like this as time goes on. Zig installs are
by apitman 2y ago
> The script bootstrap.sh installs ninja, zig and compiles LuaX
I think we're going to see more build instructions like this as time goes on. Zig installs are simple, self-contained, don't require root to install, and automatically handle C/C++ cross-compilation like magic. I suspect long term these benefits will put Zig in a position to become the best build tool for C/C++ projects. If you're already using it for your compiler, you might as well use it to write your build scripts.
- samatman 2y agoAnd if you're already using zig cc to compile your C project, you might as well write the next module in Zig. I know of no other language which makes it quite so easy to produce C-compatible object code. Some of that is the design of the language itself, but a great portion of it is providing native C and C++ compilation, with a good build system and an excellent cross-compilation experience. Projects which rely heavily on this feature are a bit nervous about the plans to break the LLVM dependency, but using the Zig toolchain this way is too important to the goals of the language to screw that part up.
- benatkin 2y agoIf you want it to interact well with a couple of really popular languages there's this: https://github.com/mlua-rs/mlua https://github.com/mlua-rs/mlua Rust and through Deno, JavaScript. It also supports Luau which has sandboxing. https://luau-lang.org/sandbox https://luau-lang.org/sandbox