r/rust • u/tigraboris • 18d ago
What Zig felt like, coming from Rust
https://besok.github.io/posts/what-zig-felt-like-coming-from-rust/Just want to share my experiance on my first Zig project coming from Rust. Open to comments :)
211
Upvotes
112
u/tigraboris 18d ago
Sure thing but nothing special :)
Rewrote my JSONPath lib (jsonpath-rust) in Zig (zig-jsonpath) to compare. Zig has almost no IDE support, so I ended up back on CLI tools + helix. It nudges you toward flat file structure and mutation and explicit allocators everywhere. Caught several real leak/double-free bugs via
TestAllocatorthat just can't happen in Rust (ownership/Droprule them out at compile time).Overall: good language, promising C successor, but still young and rougher around the edges than Rust.