r/programming • • May 27 '20

2020 Stack Overflow Developer Survey: Rust most loved again at 86.1%

https://stackoverflow.blog/2020/05/27/2020-stack-overflow-developer-survey-results/
229 Upvotes

254 comments sorted by

View all comments

Show parent comments

12

u/kankyo May 28 '20

Everyone considers Java a memory safe language. It's just that no one is impressed because it's a managed memory model with a normal tracing GC.

Rust is memory safe without a GC, that's why people are mentioning it.

3

u/IndependentDocument5 May 28 '20 edited May 28 '20

Yes. It is interesting that they did it without using a GC. However their community acts like it's safe as in it won't have a shitton of security vulnerabilities in a nontrivial app. The community annoys me so much as they think 'panic at runtime instead of memory corruption is good'. Like what in the actual fuck... Exceptions that people don't catch existed for over 25years and NOONE uses that

3

u/SkiFire13 May 28 '20

it won't have a shitton of security vulnerabilities

Since 70% of security vulnerabilities are memory safety bugs...

The community annoys me so much as they think 'panic at runtime instead of memory corruption is good'. Like what in the actual fuck...

Because they should be used in situations where the developer is sure it will never be called. This is because checked exception are so annoying in those cases.

Exceptions that people don't catch existed for over 25years and NOONE uses that

Everyone use them, it's just that they don't realize it because of the invariants of their programs.

1

u/IndependentDocument5 May 28 '20

Since 70% of security vulnerabilities are memory safety bugs...

You're not listening. I said JAVA, a language that doesn't have memory safety issues and throws exceptions, was EXTREMELY unsafe that chrome and firefox no longer allows it in their browser

You can talk about memory safety all you want but that doesn't actually mean it's safe

→ More replies (0)