• 22 Posts
  • 634 Comments
Joined 1 year ago
cake
Cake day: September 1st, 2023

help-circle



  • Is zig memory safe by design? If not, rust will “win”. Large companies aren’t going to hire for an unknown or unpopular memory unsafe language when they already have C or C++ - there’s just no contest.

    Last I read, zig didn’t even have a standard string library. Unless that changes, it won’t even be a viable alternative to C/C++.

    Edit: I checked and got this

    the Zig language, like C, entrusts memory management to humans, placing full trust in human development. Zig then provides some memory safety checks to ensure memory safety. However, it still lacks the strict compile-time guarantees of Rust’s ownership system and borrow checker. Therefore, when writing Zig code, developers need to pay more attention to potential memory safety issues and ensure that errors and exceptional situations are handled correctly.

    Rust Magazine

    Anti Commercial-AI license





  • I know you mean well, but you don’t provide solutions of any kind. Simply saying the equivalent of “we should be better to fellow humans” isn’t going to change the world. It’s a platitude.

    How do you propose we help the people currently suffering? We just let them suffer until society figures out how to help them? Unite arms and block suicide machines because “they are an easy way out and we should be helping them instead”? Sure, you’re absolutely right, we should be helping them all now, but that’s not how change works. It’s not immediate. While we figure this stuff out, a bunch of people are going to suffer and die painfully.

    Also, even if the cynical ending is “the government promotes suicide to get rid of the weak”, I’d argue it’s better than suffering until death.

    Anti Commercial-AI license