5 ms·
But the approach here is "write new code in rust", not rewrite.
by vbarrielle 10mo ago
But the approach here is "write new code in rust", not rewrite.
- gpm 10mo agoEh, I don't think it's actually one or the other. Google has taken on rewriting some more problematic components in rust. See for example: Binder kernel driver: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eafedbc7c050c44744fbdf80bdf3315e860b7513 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin... Media codecs: https://www.androidauthority.com/android-16-in-process-software-audio-codecs-3541408/ https://www.androidauthority.com/android-16-in-process-softw...
- GeekyBear 10mo agoThis is also happening at Microsoft: > Rewriting SymCrypt in Rust to modernize Microsoft’s cryptographic library https://www.microsoft.com/en-us/research/blog/rewriting-symcrypt-in-rust-to-modernize-microsofts-cryptographic-library/ https://www.microsoft.com/en-us/research/blog/rewriting-symc...
- nicoburns 10mo agoYeah, there's also a freetype replacement https://github.com/googlefonts/fontations https://github.com/googlefonts/fontations I think they're trying to avoid rewriting things for no reason though. The things being rewritten tend to have a history of security problems or other issues that would be cause for a rewrite even if it wasn't in Rust.
- VWWHFSfQ 10mo agoSure, but at a macro level the approach is still to "rewrite" Android subsystems in Rust. Just slowly.
- wiseowise 10mo agoGoogle rewrote Android's Bluetooth stack in Rust.
- robocat 10mo agoAlso mentioned: Chromium: Parsers for PNG, JSON, and web fonts have been replaced with memory-safe implementations in Rust
- SAI_Peregrinus 10mo agoThat ends up being "rewrite it in Rust" because new code includes changes to existing code. A nice thing about Rust is that you can generally rewrite things piecewise there's no need to switch everything at once.