logoalt Hacker News

mr_00ff00today at 2:57 AM2 repliesview on HN

Having dabbled with both Zig and Rust, they do things so fundamentally differently, it isn’t possible to do exact lines like that.


Replies

mswphdtoday at 4:07 AM

the rust they've written (so far) is highly unidiomatic (and with a ton of unsafe). I can't speak to the zig part, but it seems plausible to me it is line-by-line, horrendous rust.

Whether or not they can clean it up is an interesting question.

show 2 replies
swyxtoday at 4:44 AM

care to attempt a top 3 differences that someone doing this kind of rewrite should know?

(would teach me a little about Zig, about which i know 0)

show 2 replies