Rust at Scale: An Added Layer of Security for WhatsApp
11–20 of 151 posts
Re: Rust at Scale: An Added Layer of Security for WhatsApp
#12They don't say what they did about it, do they? Did they just accept it?
Re: Rust at Scale: An Added Layer of Security for WhatsApp
#13> Two major hurdles were the initial binary size increase due to bringing in the Rust standard library [...]. They don't say what they did about it, do they? Did they just accept it?
Re: Rust at Scale: An Added Layer of Security for WhatsApp
#14Earlier quoted context omitted.
Like our gym devices that have a full tablet to run a basic application to control weights, talk about wasting money.
It doesn't make sense for that device alone, but the vendor probably supplies all the different equipment in the gym. Using a tablet simplifies their supply chain, deployment, debugging/repair, app update process and simply supports more features. There are probably some connectivity features on the device, for example. When you look at all of that together, it's hard to argue it's wasting money. It's like complainin…
Re: Rust at Scale: An Added Layer of Security for WhatsApp
#15Re: Rust at Scale: An Added Layer of Security for WhatsApp
#16Re: Rust at Scale: An Added Layer of Security for WhatsApp
#17> Two major hurdles were the initial binary size increase due to bringing in the Rust standard library [...]. They don't say what they did about it, do they? Did they just accept it?
It can be avoided entirely by disabling the standard library, but that's inconvenient, and usually done only when writing for embedded devices.
Usually the problem isn't the size directly, but duplication of Rust dependencies in mixed C++/Rust codebases.
If you end up with a sandwich of build systems (when you have library dependencies like C++ => Rust => C++ => Rust), each Rust/Cargo build bundles its copy of libstd and crates. Then you need to either ensure that the linker can clean that up, or use something like Bazel instead of Cargo to make it see both Rust and C++ deps as part of a single dependency tree.
Re: Rust at Scale: An Added Layer of Security for WhatsApp
#18Earlier quoted context omitted.
It doesn't make sense for that device alone, but the vendor probably supplies all the different equipment in the gym. Using a tablet simplifies their supply chain, deployment, debugging/repair, app update process and simply supports more features. There are probably some connectivity features on the device, for example. When you look at all of that together, it's hard to argue it's wasting money. It's like complainin…
Well, doesn't look like to me, and a plain ESP32 with a touch screen would do the job for displaying a weight bar with plus, minus and reset count buttons.
Re: Rust at Scale: An Added Layer of Security for WhatsApp
#19> Two major hurdles were the initial binary size increase due to bringing in the Rust standard library [...]. They don't say what they did about it, do they? Did they just accept it?
Re: Rust at Scale: An Added Layer of Security for WhatsApp
#20The hardest part of a rewrite like this is usually maintaining bug-for-bug compatibility with the legacy parser rather than the actual Rust implementation. Most real-world media files are malformed in some way that the C++ code implicitly handled, so if you write a strict parser you end up breaking valid user data. Differential fuzzing seems like the only practical way to map that behavior without manually reviewing…
It sounds like it's a design goal of this "wamedia" to _not_ maintain bug compatibility with media players.