logoalt Hacker News

flohofwoeyesterday at 7:19 PM1 replyview on HN

IMHO you should spend one weekend with tinkering with Rust and another weekend tinkering with Zig (e.g. up to a point where you can write simple but still not completely trivial programs both in Rust and Zig), and then decide for yourself which one better matches your taste.

For some people the huge 'surface area' and strict type system of Rust is a big turn-off, while others want exactly that from a programming language.


Replies

vlovich123yesterday at 7:34 PM

Rust takes more than a week to really get. However it has a much more mature ecosystem both in terms of available libraries as well as documentation.

One main difference is that Rust is guaranteed memory safe with generally no runtime overhead for that safety. It also has protections and abstractions to make multithreaded code safe and generally correct.