News for hackers. Stuff that matters.
Re:Zig: a system language which prioritizes optimality, safe... by nickpsecurity on Monday August 29, 2016 @10:14AM (#12381946)
I think you're missing the whole concept of bootstrapping. C, if only language, would be used to compile the first, Zig compiler. The next compiler, written in Zig, would go through the first one. You then have a pile of machine code that turns Zig into machine code. No C left after the first pass.

So, there's no dependency if you're switching languages or getting rid of it. There's just a one-time use. For legacy systems, there's also potential for a source-to-source compiler if semantics are close. There's also binary recompilation and integration into new language a la AS/400 or OpenVMS migrations.

Re:Zig: a system language which prioritizes optimality, safe... by qwertyuiop924 on Monday August 29, 2016 @11:25AM (#12382471)
True, but what about the bootstrapping compiler, for new architectures? That can't be C. Neither can the libraries the compiler depends on. And you'll eventually have to rewrite the assembler, because that can't be C...

It's a fairly monumental effort.

Re:Zig: a system language which prioritizes optimality, safe... by steveklabnik on Monday August 29, 2016 @11:29AM (#12382520)
You cross-compile.
Re:Zig: a system language which prioritizes optimality, safe... by qwertyuiop924 on Monday August 29, 2016 @12:24PM (#12382978)
...Well, I'm an idiot. Good point, Steve.