News for hackers. Stuff that matters.
Re:Zig: a system language which prioritizes optimality, safe... by gragas on Sunday August 28, 2016 @08:19PM (#12379234)
Obligatory: why is Zig meant to replace C? Why is it a better replacement than Rust (when Rust is considered a C replacement)?

Interesting work nonetheless.

Re:Zig: a system language which prioritizes optimality, safe... by parenthephobia on Sunday August 28, 2016 @08:35PM (#12379277)
I'd rather use Zig than Rust because I wouldn't have to learn about how to work with Rust's memory management model. Even though I understand Rust at a technical level, actually getting my brain to work that way has proven difficult.

Being able to directly import existing C header files is also attractive.

Having said that, I'd rather Zig had been Go-inspired than Rust-inspired. Go plus Zig's approach to generics and error handling would be nearly perfect! (Notwithstanding that Zig's error handling is basically Rust's with added syntax sugar!)