Get the latest tech news

When Zig Is Safer and Faster Than Rust


There are endless debates online about Rust vs. Zig, this post explores a side of the argument I don't think is mentioned enough.

The garbage collection is the important part, it’s hard to make it work and be fast and be safe because its fundamentally a problem that doesn’t play nicely with the borrow checker. Also note that the feedback loop is way slower because there’s no LSP in my code editor guiding me, I have to recompile the program each time and see Miri’s output. Apart from not having crazy UB like in unsafe Rust, Zig is a language that understands that you are going to be doing memory-unsafe things, so its designed and optimized around making that experience much better and less error prone.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of zig

zig

Related news:

News photo

Building a 3D safety sensor with Rust

News photo

Show HN: Asak – cross-platform audio recording/playback CLI tool written in Rust

News photo

Bottles Software For Easily Running Windows Games/Apps On Linux To Leverage Rust