News for hackers. Stuff that matters.
Re:Zig: a system language which prioritizes optimality, safe... by adrianratnapala on Monday August 29, 2016 @12:34AM (#12380028)
Well I am impressed. And I am very glad to see more and more languages in this space. I particularly like that Zig seems to be minimalistic -- a lot more fun to look at (for me) than C++ or Rust.

But I didn't see anything in Zig similar to Rust's lifetimes. Well it's nice to be rid of that complexity, but I don't see how you are going to do C-like pointer stuff safely without them.

Can anyone explain what these languages (e.g. Zig, Myrddin, Nim) do instead?

Re:Zig: a system language which prioritizes optimality, safe... by steveklabnik on Monday August 29, 2016 @01:04AM (#12380113)
Nim has a GC.

Myrddin doesn't, but I can't quite remember what it does for safety, if anything. The language spec does say "pointer arithmetic is not allowed."

For Zig, see here: https://news.ycombinator.com/item?id=12380078