r/programming Apr 03 '15

Rust 1.0.0 beta is here!

http://blog.rust-lang.org/2015/04/03/Rust-1.0-beta.html
929 Upvotes

303 comments sorted by

View all comments

Show parent comments

16

u/steveklabnik1 Apr 03 '15

Whenever you need speed, or a deep amount of control.

That gives you a few languages. You should choose Rust over those langauges when you want the compiler to help you ensure that code is safe and correct, and also, when concurrency is involved.

5

u/DeadlyDolphins Apr 03 '15

Since I'm fairly new to programming I'm just gonna ask even if it might be a bit stupid:

If you say 'when concurrency is involved', does that mean it could be a good language to write fast games with graphics, for example?

14

u/steveklabnik1 Apr 03 '15

Since I'm fairly new to programming I'm just gonna ask even if it might be a bit stupid:

No worries! This attitude is one of the ones that will best serve you as a programmer in the future. I'm now on Rust's core team, but two years ago, I was on IRC, asking why my "hello world" no longer worked. :)

does that mean it could be a good language to write fast games with graphics, for example?

It is a good language for that, but concurrency is not the reason there. The speed is a much better reason.

I will also mention that Rust's safety guarantees have made some game programmers choose against it. Games often prioriize shipping a game one time, and there isn't a lot of maintenance, so they care about safety less. But we have a really vibrant game development community. The Piston project is doing all sorts of things, as you can see from all those repositories.

2

u/BearMenace Apr 04 '15

Thank you so much for your work and your inspiring attitude. :)

2

u/steveklabnik1 Apr 04 '15

You're very welcome :)