Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> whereas Zig has good developer ergonomics and allows me to produce memory safe software with a bit of discipline

C also allows to produce memory safe software with a bit of discipline. This "bit of discipline" is the issue here which developers are lacking.



There are levels here, Zig addresses:

- out of bounds access (70% of CVEs)

- nullptr dereferences

- type safety issues

That’s massively better than C. Preventing use after free errors requires much less discipline than never missing a boundary or bungling a signed/unsigned conversion.

Zig also has a knock your socks off incredible cross platform build system, empowers some really nice optimizations/ergonomics with comptime, has orders of magnitude faster build times that C++/rust.

Zig is still < v1.0 so standard library could use some work and there are other warts, but I think it will be a great choice for performance oriented programs in the future.


It must be harder than Shaolin discipline, given the failure after 50 years.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: