I'll be downvoted for pointing out that comparing C++ with Rust without further context can be made into a false dichotomy. Some people are posting the article around the Internet as evidence that Rust solved security. Instead, there are many other memory safe languages around and there has been thousands in the past. Additionally, many security issues are not due to memory safety. Please keep that in mind when makin…
Memory Safe Languages in Android 13
31–40 of 606 posts
Re: Memory Safe Languages in Android 13
#32Re: Memory Safe Languages in Android 13
#33- great standard library, especially all the iter methods. having 'obscure' stuff like `try_for_each` just makes me so happy as a dev
- unit tests built into the lang
- tooling is great
- docs are top notch
The memory safety aspect is... sometimes helpful, sometimes irritating. I prefer zig solution (BYO allocator, special one for testing that reports errors) over rusts, which simplifies a lot of stuff and lets you make cyclical data structures without a lot of hoop jumping.
Re: Memory Safe Languages in Android 13
#34Re: Memory Safe Languages in Android 13
#35Not being aware of how vulnerabilities are detected and despite being a big fan of Rust, I wonder if there are other variables that drive down the ability to find bugs in the short term. If a researcher is only familiar with C and C++, is it possible that they're just ill equipped to find similar bugs in Rust?
Not only that, they are also comparing new code with pretty old code.
Most of the graphs here are about new code.
[1]: https://security.googleblog.com/2021/04/rust-in-android-plat...
Re: Memory Safe Languages in Android 13
#36Earlier quoted context omitted.
The problem with Rust is the language syntax is ugly. It has a ton of visual noise. I think folks who write languages should have a typographer on their team because something like this: use std::collections::HashMap Is a typographic nightmare. While I understand “form follows function”, it’s tough to be excited to program in something like this.
I always say that if the strongest complaint people have about your language is syntax; you've already succeeded.
Re: Memory Safe Languages in Android 13
#37I'll be downvoted for pointing out that comparing C++ with Rust without further context can be made into a false dichotomy. Some people are posting the article around the Internet as evidence that Rust solved security. Instead, there are many other memory safe languages around and there has been thousands in the past. Additionally, many security issues are not due to memory safety. Please keep that in mind when makin…
But I think other memory safe languages don't have C++-like performance, right?
Re: Memory Safe Languages in Android 13
#38Even more evidence that the negative performance impact of bounds checking is minimal, nay, it can even be positive.
Re: Memory Safe Languages in Android 13
#39Glad to see robust work here. This strongly supports what should already be obvious, but sadly is not always understood; that memory safe languages are radically safer than memory unsafe languages. The impact is blatantly demonstrated here.
Re: Memory Safe Languages in Android 13
#40Rust doesn't check for overflow in arithmetic operations in release mode so there are lot of opportunities to create vulnerabilities in Rust.