News for hackers. Stuff that matters.
Re:Zig: a system language which prioritizes optimality, safe... by nickpsecurity on Sunday August 28, 2016 @09:27PM (#12379430)
"but not replace it"

I've long proven you can on a per project basis for both system apps non-C languages and C apps with better, C variants.

"What will you write your bootstrapping compiler in? :-D."

Any language better than C for writing a compiler, esp Ocaml w/ design-by-contract, compiling to target assembler. Worked wonders for Esterel's SCADE. Optionally, any such language transpiling to any other HLL on target system, including C w/ safety checks & no undef behavior. Working wonders for COGENT language team. Or go Wirth-style with a better-than-C (esp Component Pascal) to P-code compiler plus P-code interpreter for target hand-written in assembly. Simple backend + interpreter got Pascal/P on 70 architectures. Any are easier than a whole compiler for complex language (or C) in C using a C compiler.

For doubters:

https://embed.cs.utah.edu/csmith/

Re:Zig: a system language which prioritizes optimality, safe... by qwertyuiop924 on Sunday August 28, 2016 @10:15PM (#12379569)
Fair 'nuff on the compiler stuff. I was talking about replacing C globally, however, and that's not happening any more than we're replacing FORTRAN.
Re:Zig: a system language which prioritizes optimality, safe... by nickpsecurity on Sunday August 28, 2016 @10:44PM (#12379661)
"I was talking about replacing C globally"

I gave up on that when I noticed the COBOL and Windows situations. ;)

Re:Zig: a system language which prioritizes optimality, safe... by qwertyuiop924 on Monday August 29, 2016 @06:47AM (#12381086)
Well, yeah, but that's what Zig seems to be trying to do. And as various tech comes up for replacement, it may one day be possible.