Live data from Hacker News

Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust

android.googlesource.com

1–10 of 393 posts

Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust

#2
I 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

#6
post #5

Is this because of memory bugs\vulnerabilities that target the stack or just because it was too old and junky?

Junkiness and vulnerabilities go hand in hand.

True that. maybe I'll rephrase, was Rust specifically chosen to address memory concerns? I don't think it is too common in Android.

Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust

#7

I 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!

I really hope it will fare better than NewBlue and BlueDroid... https://www.androidpolice.com/2020/09/14/the-rise-and-fall-o...

Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust

#8
post #5

Earlier quoted context omitted.

Junkiness and vulnerabilities go hand in hand.

True that. maybe I'll rephrase, was Rust specifically chosen to address memory concerns? I don't think it is too common in Android.

That's probably a major reason. But, Rust is also just a really nice language that's very pleasant to use.

Re: Android's new Bluetooth stack rewrite (Gabeldorsh) is written with Rust

#10

I 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)

Post reply on HN