• 48 Posts
  • 231 Comments
Joined 3 years ago
cake
Cake day: April 27th, 2023

help-circle




  • catch_unwind […] does not guarantee the program is in a consistent state afterward, since Drop impls may have run partway through.

    Wait, what? Any more details about this, I’ve never heard about that before. Partially run Drop impls sounds like a big potential for undefined behavior, how could catch_unwind possibly cause that?

    EDIT: The more I read this article, the more AI-generated it looks and so I’m sort of wondering if the above quote is just complete bogus.


  • I’d say you shouldn’t compare yourself to others. It’s rarely a fair comparison and it doesn’t help you much. It’s pretty pointless - there are 20-year old who have more money and success than you. It’s just how the world is, don’t fret what other people have. Think about what you have and whether you feel you have enough for yourself, personally.

    As for the loneliness, that sounds like a more tangible issue. There are ways to deal with loneliness, but not any super easy ways. Being afraid of being alone is a good natural instinct - it’s your social human brain telling you to connect more with other people. Listen to your brain.









  • I have this feeling that a lot of people are against AI-generated code, even if you use it in this “responsible” way - but maybe I’m seeing an exaggerated view? I’m sort of wondering if I should start using AI models in my own work, including open source stuff, but I don’t want it to be like I’m just having the AI do everything for me and I’m worried that others will disregard the code as slop. I’ve seen a lot of frustration with new open source projects that are largely AI-generated, but then again, we’re seeing a lot of those because it’s a useful tool that lowers the barrier for a lot of work. I’m conflicted, anyone have thoughts?















  • game systems don’t need memory safety

    I see what you’re saying but I don’t know if I agree on this point. Games are buggy messes before undergoing a long and arduous quality assurance process. While Rust’s iteration speed is maybe not great, I don’t think it’s really significantly worse than C++ iteration time, especially not with efforts like subsecond, that bevy uses for instance. And Rust is much more ergonomic and convenient to write than C++. It is in some ways a higher level language than C++ while managing to still allow for very fine optimisations, which are sometimes required in games. I think this would translate to productivity improvements too, although I don’t really have any data to back that up obviously.

    I personally think the momentum is mostly what C++ has that Rust is lacking - i.e. a large body of game developers who are already well-versed in C++ and a large and established body of game engines and frameworks for every kind of game. Games are often pressed for financing, so venturing into the territory of new engines and new languages is not something most game devs can afford or want to spend their money on.






  • Diesel is an ORM

    This is kind of stretch to say though - it is not an ORM if you compare it to something like ActiveRecord. Diesel is just a DSL for writing SQL queries that are verified by the compiler.

    sqlx requires a modern macro system

    I wouldn’t say it requires using macros. You could definitely imagine verifying queries in the same way in languages without macros. But yea, this is one of the strengths of Rust I suppose.