News for hackers. Stuff that matters.
Re:Maintain It with Zig by rattray on Wednesday September 08, 2021 @01:14PM (#28460113)
I think they solve some similar and some different problems, with some similarities and differences!

The biggest difference in the problems they solve, in my view, is that Zig does not aim for safety. It'll be easier to write safe programs yourself with Zig than it might be with C, but it doesn't give you any guarantees.

Zig also seems like it may be a better fit for embedded programming; there's a big community around embedded Rust, and it sounds like there's a lot of progress, but still an uphill battle.

But yes, Zig:Rust :: C:C++ has merit in that Zig is a much smaller, less feature-rich language.

Re:Maintain It with Zig by void_mint on Wednesday September 08, 2021 @01:19PM (#28460176)
Thanks for the response. I'm excited for as many viable alternatives to C/C++ as we can get.
Re:Maintain It with Zig by travisgriggs on Thursday September 09, 2021 @12:31AM (#28466210)
I write/maintain multiple code bases for XMega, SAMD, and STM chips. The kind where 32K ram is cool and 256K flash is lots. I'm curious if either of these is ready for normal humans to cross compile for these kinds of targets (M0 and the ilk). Zig looks very interesting to me.