Remix.run Logo
HackerThemAll 3 days ago

> 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.

davemp 2 days ago | parent | next [-]

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.

pjmlp 3 days ago | parent | prev [-]

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