News for hackers. Stuff that matters.
Re:Ask HN: Alternatives to Rust Programming Language by nice_byte on Monday November 22, 2021 @01:47PM (#29310128)
i see zig as a potentially good alternative, however as of now the learning curve might be steeper than rust - not because of the language itself, but because of the poor state of the documentation. you might need to e.g. read the code of the std lib to figure out how to do certain things.

it needs more time to bake, but i'm looking forward to it.

Re:Ask HN: Alternatives to Rust Programming Language by throwawaydsstr on Monday November 22, 2021 @01:54PM (#29310211)
What's the state of safety in zig? does it allow footguns like in C/C++ ? What about borrow checker(it makes program safe. isn't it?)?

I would like to know advantages as well

Re:Ask HN: Alternatives to Rust Programming Language by nice_byte on Monday November 22, 2021 @02:00PM (#29310289)
zig is not safe. it's more "ergonomic" so theoretically it's harder to write bugs than in c, but out-of-bounds accesses, use-after-frees and such can still happen because of programmer error in well-formed zig programs.

see also: https://github.com/ziglang/zig/issues/2301