Is this shipping in Android S?
What is Android S? I see no reference to this version of android anywhere
Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust
21–30 of 393 posts
Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust
#22To be honest, I didn't pay much attention to it for a while -- it felt like it might have simply been that day's "flavor of the day", destined to sink once then next flavor became popular.
Now, there's a real problem to be solved. But I thought a simpler approach would be needed (e.g., Zig or something like it). I guess that may still happen, but seems more and more like Rust is here to stay.
Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust
#23Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust
#24Wait , so can rust generally be replace C++ code in most projects ? Has anyone here had success with a partial to Rust migration.
Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust
#25It seems like Rust is really catching on. To be honest, I didn't pay much attention to it for a while -- it felt like it might have simply been that day's "flavor of the day", destined to sink once then next flavor became popular. Now, there's a real problem to be solved. But I thought a simpler approach would be needed (e.g., Zig or something like it). I guess that may still happen, but seems more and more like Rust…
Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust
#26I know the guy that heads up the team that did this work -- he and I spent 2+ years fighting Broadcom's old, god-awful bluetooth code. Our whole team used to play what-if games about replacing the thing while massive code dumps came in from vendors, making the task ever larger. Zach, if you're reading this, HUGE kudos to holding the line in replacing that, and double kudos for doing it in a verifiable, sane language!
> fighting Broadcom's old, god-awful bluetooth code Correction: god-awful host side bluetooth code. There is still the bluetooth firmware residing on the BCMxxx chip (or Qualcomm chip) - >1MB of god-awfulerer closed-source code, half of it is in ROM (with limited number of available patch slots), full of bugs. You can see it crash from time to time in the kernel debug logs (and auto-restart itself)
Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust
#27Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust
#28I know the guy that heads up the team that did this work -- he and I spent 2+ years fighting Broadcom's old, god-awful bluetooth code. Our whole team used to play what-if games about replacing the thing while massive code dumps came in from vendors, making the task ever larger. Zach, if you're reading this, HUGE kudos to holding the line in replacing that, and double kudos for doing it in a verifiable, sane language!
Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust
#29Is this shipping in Android S?
On Pixel, developer options, bluetooth, enable "Gabeldorsh" if you want to live on the bleeding edge.
Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust
#30The Android IPC driver (binder) is also being re-written in rust. It takes advantage of the upcoming kernel driver rust support in Linux. It is an obvious choice for a memory safe re-write since all android processes (including sandboxed ones) have access to binder