• Rust is dead. Haven’t you heard? We’re rewriting everything in Zig now.

    Rust should be deprecated.

    On a more serious note, having a CTO at Microsoft, of all places, jump in on your side is kind of embarrassing. With one exception, code written at Microsoft has been some of the worst, most insecure, in the world.

    • @[email protected]
      link
      fedilink
      33 hours ago

      Rust is dead. Haven’t you heard? We’re rewriting everything in Zig now.

      I don’t think the broader zig community has the rewrite spirit that the rust community has. For Rust, this mentality was also motivated by an increased security, which zig does improve over plain C, but not to the extent Rust does.

      To preface anything that follows, I’m not a developer, so this is little-informed opinion.

      Writing in rust just doesn’t seem very enjoyable. It’s a language with security in mind, which is a good thing. However, zig also isn’t inherently insecure (though it doesn’t provide the same security guarantees) and coding in it just seems so much more pleasant. To me, the language makes more sense, which is also something I like about Go. Even manual memory allocation looks well-designed. At no point did I look at zig and thought “oh, that’s an odd choice”.

      The language isn’t frozen yet though, so everything you write in it may require changes later on, so I wouldn’t recommend it for anything in production. Notably, there’s no built-in async or something comparable. If you’re fine with these limitations, go ahead and try it out, and if you feel like it, maybe even rewrite an existing tool in it.

      ncdu for example is such a tool where the original author rewrote it in zig for version 2.

    • The_Decryptor
      link
      fedilink
      English
      13 hours ago

      On a more serious note, having a CTO at Microsoft, of all places, jump in on your side is kind of embarrassing.

      That comment was from a few years ago and wasn’t in relation to Linux, and the company he co-founded made some pretty useful things (And revealed the Sony rootkit in 2005) before MS bought them.