News for hackers. Stuff that matters.
Re:Zig cc: A drop-in replacement for GCC/Clang by bregma on Wednesday March 25, 2020 @08:59AM (#22684074)
Go doesn't cross compile: it only supports the Go operating system on a very limited number of processors variants.

If zig were to truly cross compile for every combination of CPU variant and supported version of every operating system, it would require terabytes of storage and already be out of date.

Re:Zig cc: A drop-in replacement for GCC/Clang by matthewbauer on Wednesday March 25, 2020 @04:59PM (#22688459)
It doesn't require nearly as much storage as you think. For zig, there's only 3 standard libraries (glibc, musl, mingw) and 7 unique architectures (ARM, x86, MIPS, PowerPC, SPARC, RISC-V, WASM). LLVM can support all of these with a pretty small footprint and since the standard libraries can be recompiled by Zig, it really only needs to ship source code - no binaries necessary.
Re:Zig cc: A drop-in replacement for GCC/Clang by bregma on Thursday March 26, 2020 @02:55PM (#22696652)
If it's only supporting two OS runtimes and a small subset of hardware it's mostly just a curiosity.