3 ms·
why would a preference for the use of raw pointers indicate "machismo"? do you think there's any possible other reason why game developers would choose to not
by adamrezich 4y ago
why would a preference for the use of raw pointers indicate "machismo"?
do you think there's any possible other reason why game developers would choose to not use rust aside from some hypothetical jerkbag strawman that exists in your mind? is it possible that there's any practical reasons you haven't considered?
- mustache_kimono 4y ago> why would a preference for the use of raw pointers indicate "machismo"? Ugh. That's not what I meant/said. What I meant was that there can exist a certain belief that there is only one way of doing things, when in fact there may be several. And there can be a belief that, because one has experience dealing with the most unsafe and bug ridden things, that experience is somehow necessary everywhere and all the time. Perhaps you might try to address the question at hand, is there a certain amount of machismo re: C/C++ in game dev? Heck, everywhere? > do you think there's any possible other reason why game developers would choose to not use rust aside from some hypothetical jerkbag strawman that exists in your mind? Oh, totally. I'm reading the comments and looking for exactly these sorts of serious, interesting criticisms. However, from what I've seen, some game dev criticisms have been pretty shallow from certain segments of that community. In another comment, I explain there are some game devs that have gone really deep on Rust and have really interesting things to say about it. My fear is simply that the more shallow sentiments of these high profile enfants terrible will take hold, because they often do.
- adamrezich 4y agoif you're actually interested in learning different perspectives from people who have done significant work in the field and you're willing to stomach someone who I have to presume is one of these "large fragile egos" or whatever other vague terms you want to use about vague people vaguely (this passive-aggression is rather unbecoming), I personally found this comment, and the rest of the thread, to be very enlightening with regards to how I think about memory management in video game development and why rust's lifetimes maybe aren't the best solution for the problem domain https://news.ycombinator.com/item?id=26443768#26451692 https://news.ycombinator.com/item?id=26443768#26451692 (specifically the numbered list of memory usage patterns and the ensuing discussion about them)
- mustache_kimono 4y agoI hadn't seen this, and I will read it. FTR, I'm not talking about jblow. I acknowledge his criticisms are superficially similar to what I wrote. At the very least jblow is seriously engaging with the arguments re: Rust, like in this thread. As to whether he's actually seriously tried to learn Rust, I'm unsure. I hope he does. And I'm not naming names not to be passive aggressive, but for self preservation. I don't know if you noticed, but games can have a really toxic fandom.
- psyc 4y agoI thought about this for a bit, because at first I thought you were making up a rather insulting caricature that could only detract from your case, or at least from anyone wanting to engage with you. I've been in C++ game dev for something like 25 years, and I'm sure I have never encountered a programmer who acted like using pointers was any more impressive than using the alphabet. That goes for any daily-use language feature not including all the optional C++ esoterica. We don't even talk about using pointers, we just use them. We no kidding talk more about how to use curly braces than how to use pointers. But then it occurred to me that perhaps that's only true amongst ourselves, where we don't have as much to feel defensive about. It's just silently understood that pointers are basic. But maybe if a C++ programmer were talking to a Rust programmer or any other language with a higher level memory paradigm, and if it was a conversation about whose language was best for what, then maybe they would feel defensive and need to act a bit superior. Or, perhaps when you say they act big about using pointers, do you mean that they act big about using pointers safely? Because that is different. That's a conversation I began declining to have because I no longer believe it's possible for a person who is trying to use C++ for a task, and has already decided it is the best available tool for that task, to have that conversation with pretty much anybody without it devolving into a pissing match.
- mustache_kimono 4y ago> But maybe if a C++ programmer were talking to a Rust programmer or any other language with a higher level memory paradigm, and if it was a conversation about whose language was best for what, then maybe they would feel defensive and need to act a bit superior. There is a reason "I will never be able to get the control I need (but I don't know)" or "I'll have to use unsafe everywhere (but I haven't tried)" are anti-Rust tropes. It's possible for certain game dev patterns to be awkward in Rust (really interested in hearing more about these!), but these other criticisms smell less like highly relevant informed criticism, and more like one hasn't tried Rust, as much as surface-level, mole hill criticism of hypothetical or pathological instances of bad syntax do. It isn't that one uses raw pointers. It's much more an attitude I've witnessed in younger programmers that if they're not doing it in C/C++, they're not doing the thing. It's about vibes as much as anything else, and I think, when their heros use their own vibe-level criticisms, they only reinforce that perspective. > Or, perhaps when you say they act big about using pointers, do you mean that they act big about using pointers safely? No, I wasn't thinking of that, but that's another part of it. And now that you mention it, "My code doesn't have any of these issues" can be yet another defensive tact.