Skip Navigation

Posts
65
Comments
606
Joined
3 yr. ago

  • Keep in mind this book is really long - I believe it's something to do with authors being paid by the page in the US? But anyways, it's very detailed but that may not be a bad thing. I don't have any other suggestions.

  • 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.

  • Do you mean Rust is unsuited for games, or that Rust simply don't (yet) have the established engines/frameworks/libraries for it? I think Rust could be really great for video game development, but it's true that the ecosystem is not quite there yet - though it's getting better.

  • Nice

  • I generally agree, but I kind of wonder whether something like an advanced LLM has a place as a component of an artificial "brain". We have a language-focused area in our brain, but we have lots of other components of the brain that does all kinds of other things too. Perhaps we're "just" missing those other things.

  • I think you're conflating intelligence and consciousness. Pain and suffering requires consciousness but intelligence does not imply pain or suffering or happiness. LLMs are already "intelligent" to a certain degree in some aspects, though not generally intelligent like humans. But there is no reason to believe that you couldn't have a generally intelligent artificial agent that lacks consciousness and thus can feel no pain or suffering.

  • That's true, but that doesn't contradict the above comment. Unless you believe in something like a spirit or soul, you must concede that human intelligence ultimately arises from physical matter (whatever your model of physics is). From what we know of science right now, there are no direct reasons for thinking that true intelligence or even consciousness is limited to biological organisms based on carbon and could not arise in silicon.

  • Interesting - I think this minimal solution I actually wouldn't mind, but I'd be concerned about introducing syntax for callers. Keeping it as a private construct in libraries seems fine though.

  • 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.

  • Your last paragraph can be fixed even without an ORM though. Rust has libraries like diesel and sqlx that verify the sql in various ways.

  • Why is that one about the WarEra user green?

  • Others have already pointed out the issue - in Rust, String is UTF-8 encoded and therefore characters are variable length. So you can't just change a character in a string, as it may not fit (e.g. replacing 'a' with '🙂' would lead to trouble).

    You can do what the others suggest, but honestly for a game like hangman, I'd suggest you just work directly with chars and don't use any string. As in, just use a Vec

    <char>

    instead of a string. Then you can freely change characters based on index, but this representation uses more memory than a typical String. But this won't matter for your use case.

  • Definitely! The only other language where I felt the compiler actually helped me was Haskell. C and C++ just go like "something is fucked, you figure it out".

    I think the learning curve exists but it has been vastly overestimated by the rumours. I have many years of experience with Rust now, just ask if you are unsure of anything. Feel free to tag me in any post or PM me, then I'll definitely see it.

  • Last summer, Meta scored a key victory in this case, as the court concluded that using pirated books to train its Llama LLM qualified as fair use, based on the arguments presented in this case.

    This is so fucked. It's literally legal for an AI to read pirated books to learn, but humans are not allowed to do this. AIs have more rights than we do already.

  • I see a dog with really long ears.

  • ok then

    Jump
  • That's why I said without DRM. Some games on steam don't have DRM, as far as I understand. Otherwise GoG.

  • ok then

    Jump
  • Agreed, isn't that what I just said? 😅

  • ok then

    Jump
  • That's not what buying means or at least not the "buying" I am talking about. I mean I give some amount of money and I receive a download of the purchased material, free of DRM. There is no subscription involved. Like Steam (with no DRM) or GoG, but for movies and shows instead of games.

  • ok then

    Jump
  • Okay I gotta disagree partially on the third panel. I'd much rather have the option of purchasing individual movies or shows than having a subscription. Like, imagine we had Steam but instead of games, it was shows and movies? That'd be great. Imagine the sales! PatientWatchers amirite?

    Unfortunately it's rarely possible to actually purchase, and definitely not without any DRM. So the third panel should really say "This show is not available for purchase" or only mention renting or specify that it's with loads of DRM or whatever.

  • Linux @programming.dev

    Is there a way to keep Linux responsive when at ~100% CPU usage?

  • Science Memes @mander.xyz

    "Theory" of Evolution (SMBC)

  • Programming @programming.dev

    Is TypeScript a fad or is my manager delusional?

  • Technology @lemmy.world

    Tim Berners-Lee: Marking the Web’s 35th Birthday: An Open Letter

    medium.com /@timberners_lee/marking-the-webs-35th-birthday-an-open-letter-ebb410cc7d42
  • Rust @programming.dev

    Security agencies of US, UK, Canada, Australia and New Zealand urges industry to migrate away from memory-unsafe langauges to safe ones (such as Rust)

    www.cisa.gov /sites/default/files/2023-12/The-Case-for-Memory-Safe-Roadmaps-508c.pdf