• 2 Posts
  • 81 Comments
Joined 1 year ago
cake
Cake day: June 25th, 2023

help-circle



  • IMO a very small amount of storage should be free but after that the user needs to pay. It’s the right thing to do for hosts and for the environment. If content creators need massive amounts of video then that will incentivize them to make money on it.

    The only people left out are small, niche channels that have quality or important content but don’t make much money. Maybe they could be cut special deals by the hosts / donors.














  • Yeah, at this point I’m talking about Rust’s fit as a general purpose language and being good at refactoring. I think Rust is great for both of those and that it isn’t very subjective.

    But regarding Rust for game dev, I have no idea. I have never done game dev, so it’s definitely possible it isn’t good for it for some reason.

    I’m also saying scripting languages will break very easily when you refactor things. I didn’t think that was that controversial…



  • Ive used Rust professionally for six years now and have done many quick hacks. It is really easy to do. Basically just don’t use references / clone everything to avoid lifetime and ownership issues, and use unwrap everywhere to avoid proper error handling. It’s really that easy almost all the time.

    The nice thing about that is once you’re done with the prototype, just remove the unwraps and you can optimize stuff by removing the clones.


  • The borrow checker is useful for a lot more than memory safety. This is something I have been repeating for years, but unfortunately people new to the language don’t understand it yet.

    E.g. Rust is the only mainstream language where it isn’t possible to read from a file handle after it’s been closed. There are numerous other common benefits of it that apply to general purpose programming, like not being able to mutate a collection while you’re iterating over it.

    It’s a very common practice in Rust to enforce domain invariants using Rust’s ownership rules, and those things cannot be enforced at compile time in other languages that don’t have ownership.

    The borrow checker is also usually pretty easy to get around with just a bit of experience in Rust.