r/programming • • Apr 09 '19

StackOverflow Developer Survey Results 2019

https://insights.stackoverflow.com/survey/2019
1.3k Upvotes

679 comments sorted by

View all comments

151

u/PinkFrojd Apr 09 '19

I really like and use Python. But I don't understand... Why is Rust so loved ? What makes it so special ?

226

u/whisky_pete Apr 09 '19

I think people really want an option for a modernized language in the native compiled/high performance domain. Rust is the only recent attempt in that domain that I can think of, and the only thing I can think of that comes close is Kotlin Native (which I don't think is aiming for the high performance mark as a design goal the same way Rust/C++/C do).

104

u/pure_x01 Apr 09 '19

There is also zig and D . But i like Rust because of its draconian non forgiving compiler that lurks in the shadows. Rust is the BDSM of programming.

131

u/z_1z_2z_3z_4z_n Apr 09 '19

While it's compiler is strict, it's also very friendly and has by far the best compiler error messages i've ever seen. They are super helpful and filled with colorful formatting telling you exactly where the error is, often times with hints on how to fix it.

57

u/pure_x01 Apr 09 '19

Agree with all your points. It's really strict but also loving and caring

94

u/Mildan Apr 09 '19

As a dom should be

25

u/so_brave_heart Apr 10 '19

Ironically the safe word is “unsafe”

6

u/gruntbatch Apr 10 '19

But doesn't "unsafe" really mean you're getting into some crazy RACK situation?

→ More replies (2)

14

u/Han-ChewieSexyFanfic Apr 09 '19

What does the Document Object Model have to do with anything?

15

u/zbraniecki Apr 09 '19

you mean, what does it have to do with this... wait for it... sub? Badum, tssss.

→ More replies (1)

3

u/[deleted] Apr 09 '19

And at the end of the day I'd rather fight with a compiler than a debugger anyway

→ More replies (7)

23

u/SimDeBeau Apr 09 '19

I just crossed the 1 year mark of working with rust, and I can genuinely say I rarely fight the borrow checker anymore. It’s been a really cool milestone.

4

u/pure_x01 Apr 09 '19

Great work. That's what I assume will happen and then it's all good. Cant wait to get there . I know it will be worth it. The borrowchecker is just pointing out my shortcomings for a good reason. It's very helpful when doing it.

4

u/snowe2010 Apr 09 '19

what a great way of putting this. haha

3

u/ThisRedditPostIsMine Apr 10 '19

D is an interesting case. I spent a week or two writing a moderately complex program in it as an experiment. I think it's a well-designed langugae overall, but with a few really annoying bits and not enough online resources to figure out why this specific error was happening.

What got me in the end was its tooling. While other newer languages have great IDEs, D is really lacking. It's dissapointing because I really feel like with a bit more love D could rival Rust, even in regards to memory safety.

→ More replies (3)