News for hackers. Stuff that matters.
Re:My gamedever wishlist for Rust by mrspeaker on Thursday October 01, 2015 @11:38AM (#10311881)
When Jonathan Blow started his programming language specifically for making performant games (https://www.youtube.com/playlist?list=PLmV5I2fxaiCKfxMBrNsU1...), he talked about Rust a bit - it seemed like this was the closest language to what he wanted. I wonder if addressing these issues would make it more appealing to coders like him.
Re:My gamedever wishlist for Rust by kibwen on Thursday October 01, 2015 @11:52AM (#10312029)
I believe that Blow values ease-of-prototyping more than safety, and sees all of Rust's safety guarantees as a distraction. Games have smaller maintenance windows than other applications, so caring about security is definitely a harder sell (especially if the game is non-networked, so the attack surface is already minimized).

That said, the existence of Rust's thriving gamedev community means that not everyone shares this point of view, but I think there's still plenty of demand for a more specialized language for this niche.

Re:My gamedever wishlist for Rust by PopeOfNope on Thursday October 01, 2015 @06:30PM (#10315239)
> I believe that Blow values ease-of-prototyping more than safety

That's not entirely accurate. Based on his talks, he likes frictionless development over jumping through hoops that may or may not result in a safer application. Considering how many lines of code game programmers pump out on a daily basis, even small pain points can cause huge delays over a 2+ year dev cycle. Lines of code per day is a larger concern than safety for most games.

Re:My gamedever wishlist for Rust by pcwalton on Thursday October 01, 2015 @07:24PM (#10315513)
> Based on his talks, he likes frictionless development over jumping through hoops that may or may not result in a safer application.

I think it's clear that using Rust will result in a safer application per unit of developer time compared to a non-memory-safe language. But I'm certainly willing to believe that not everyone cares about having a memory-safe application.

Re:My gamedever wishlist for Rust by PopeOfNope on Friday October 02, 2015 @10:17AM (#10318676)
It's not clear to me. Give me some proof and I'll change my mind. A scientific study, a case study, a statistical analysis, anything other than theory.

Haskell's strict typing system and theoretically correctness was supposed to lead to better code as well. I used xmonad for a few years. It crashes just as much as any other window manager.

Re:My gamedever wishlist for Rust by pcwalton on Friday October 02, 2015 @10:41AM (#10318847)
The number of memory safety problems in memory-safe languages is much, much lower than in non-memory safe ones. Look at the classes of vulnerabilities in, say, Ruby programs and compare them to the number of memory safety-related security vulnerabilities in, for example, Firefox. I have actually analyzed this and memory-safety-related problems in Firefox are the majority of critical security vulnerabilities.
Re:My gamedever wishlist for Rust by PopeOfNope on Saturday October 03, 2015 @10:25AM (#10323987)
The number of memory safety problems in memory-safe languages is much, much lower than in non-memory safe ones

Citation?

I have actually analyzed this and memory-safety-related problems in Firefox are the majority of critical security vulnerabilities.

Cool. That means you can provide actual numbers and statistics... right?

Re:My gamedever wishlist for Rust by pcwalton on Thursday October 01, 2015 @11:52AM (#10312025)
My impression is that the issue he had with Rust is that it enforces memory safety. That isn't something that is likely to change (although I would be open to it if there were a lot of demand—yes, really!) The Rust community, me among them, seems pretty happy with enforced safety.
Re:My gamedever wishlist for Rust by Sleaker on Thursday October 01, 2015 @01:25PM (#10312836)
Doubtful, he has his own programming language explicitly because of Rust forcing the user to do it 'the rust way' with boxed types etc. he doesn't want to be pigeonholed. It's not going to appeal to people like him, and I think the OP is getting into some good reasons on why Rust probably wont ever be a good language for game programming.
Re:My gamedever wishlist for Rust by kibwen on Thursday October 01, 2015 @02:01PM (#10313156)

  > forcing the user to do it 'the rust way' with boxed types
This is mistaken, everything in Rust is unboxed and on the stack by default. You have to go out of your way to box something (with, appropriately, `Box::new` (or the forthcoming `box` operator)).
Re:My gamedever wishlist for Rust by pcwalton on Thursday October 01, 2015 @01:30PM (#10312882)
> I think the OP is getting into some good reasons on why Rust probably wont ever be a good language for game programming

This is much stronger than the OP was claiming, or than I would claim. None of the issues raised are fundamental; note that very few people in the Rust community, gamedev or otherwise, are asking for less safety. I write things very similar to games on a daily basis in Rust, and I've found that the Rust way actually works very well.

Re:My gamedever wishlist for Rust by dkhenry on Thursday October 01, 2015 @01:40PM (#10312962)
Nothing in that list makes me think Rust won't ever be a good language for game programming. It reads more like these are the current pain points that need to be addressed, and even with that list there are no real showstoppers there. Most are just nuances that they would like to see addressed.
Re:My gamedever wishlist for Rust by Manishearth on Thursday October 01, 2015 @01:53PM (#10313066)
It's a wishlist, and the OP is a prominent member of the Rust community. Most of those things are minor pain points (he even mentions "None of these are critical.") that he hopes can be improved on.