this post was submitted on 27 Apr 2024
104 points (95.6% liked)

Rust

5767 readers
31 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

This was a really good summary of what Rust feels like in my opinion. I'm still a beginner myself but I recognize what this article is saying very much.

The hacker news comments are as usual very good too:

https://news.ycombinator.com/item?id=40172033

you are viewing a single comment's thread
view the rest of the comments
[–] kaffiene 2 points 4 months ago (1 children)

OK. I'm dumb. There are dozens of languages where I appear to not be dumb using so I'll stick to them I guess

[–] asdfasdfasdf 1 points 4 months ago (2 children)

That's a sad attitude to have. Rust is really great, but it does have a learning curve. If you do want to give it a shot, just reach out online and there are many people who can help with suggestions.

[–] [email protected] 1 points 4 months ago* (last edited 4 months ago) (1 children)

@asdfasdfasdf @kaffiene As the friend above says, rust require some time and have a learning curve. Its very different, and thats why people gets strugling with the language. As you got proficience, it will save you hours of debug. I suffered with the learning curve also, but I needed to change the way I was think about how to program.

[–] [email protected] 1 points 4 months ago* (last edited 4 months ago)

@asdfasdfasdf @kaffiene I think build a linked list is the last stage of learning rust, because linked lists has circular references that can lead to memory leaks and other memory issues. Build one with rust is hard, because the compiler will not easy for you to make mistakes, but if you can write a linked list, you can write anything in rust. Try this book.

https://rust-unofficial.github.io/too-many-lists

[–] kaffiene 0 points 4 months ago (1 children)

Yeah it's sad that I just want to get stuff done and use the tools that are actually good at that. Point me to great Rust gamedev tools that are actually getting used to ship great games and I'll give them a go. I think criticising people who raise valid issues about Rust in a context where it has no cut through and no depth says more about you, frankly. Programming languages aren't all good at everything and that's not a personal slight on you or the Rust communiry

[–] [email protected] 1 points 4 months ago (2 children)

@kaffiene @asdfasdfasdf i think part of the issue is that one group of devs is saying "rust is great for gamedev" by which they mean its a great language to develop games which are closer to game engines themselves in, or even custom engines. Then another group says "no it sucks" but they are talking about the scripting approach, where you don't care what happens under the hood

Rust fits the first group well, and the second not at all, and the issue is that both dont see the difference between

[–] [email protected] 2 points 4 months ago

@kaffiene @asdfasdfasdf by which i mean:

if you want to develop on the level of a engine, even if you're not makign a entire engine, Rust is IMO the most productive language. But these things also take a lot of time, which is why you don't see big games being finished. There are some like Tiny Glade where the devs built a entire custom renderer on the other hand.

[–] asdfasdfasdf 1 points 4 months ago* (last edited 4 months ago) (2 children)

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

[–] [email protected] 1 points 4 months ago

@asdfasdfasdf as for scripting: no, thats not conteoversial. but this is abour gamedevs where languages like C# are used a lot, which is definitely not a scripting language

[–] [email protected] 1 points 4 months ago

@asdfasdfasdf i'm talking about gamedev sepcifically. there just hasnt been enough time for there to be a Unreal, Unity or Godot built for Rust as the main language. i don't think its clear beforehand that in that context it wont work, but you'd also have to solve the no stable ABI issue first.

Game engines need many years of time to develop to a point of what gamedevs coming from one of the big ones will expect, and there just hasnt been enough time yet to put in that effort.