5 ms·
Why do you think rewriting it in Rust would improve its reliability?
by sheepz 3y ago
Why do you think rewriting it in Rust would improve its reliability?
- sakex 3y agoSimply rewriting it in any language would improve reliability
- lelanthran 3y agoThe problems with Bluetooth have nothing to do with the programming language used to write the stack.
- sakex 3y agoMy comment is not about changing the language but about the fact that whenever we rewrite it, we improve the quality because of the lessons learned during past iterations.
- lelanthran 3y agoYou're correct; sorry. I dunno why I misread "write in any language" with "write in another language". I'm still skeptical about rewriting - the bluetooth spec is notoriously buggy itself, and many "bugs" and glitches in BT are due to how poorly the spec is written.
- TotempaaltJ 3y agoA rewrite might simply make it more resilient through changes in the base architecture. However, I know nothing about Linux's bluetooth stack and I assume that it's probably taking into account a lot of those glitches already.
- sakex 3y agoWell, english is not my first language. What I meant probably got lost in translation :)
- bilekas 3y agoI'm not too sure I agree that the spec itself is buggy, certainly the implementations vary wildly from Sony almost doing their own thing to Chinese off the shelf copy pasting whatever makes a noise. That said I have worked extensively with Bluetooth within Ericsson and while there is a learning curve, I never found the spec to be lacking. Latest example : https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=556599 https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?d...
- tcmart14 3y agoYour last sentence is exactly what I was thinking. The problem with BT isn't necessarily on the kernel's bluetooth driver. The spec is buggy and also a lot of makers of bluetooth devices don't implement the spec properly. But the spec itself isn't spectacular to begin with.
- WJW 3y agoThat highly depends on who is doing the rewriting and whether they were involved in writing the current system. If someone new starts rewriting the system in a memory safe language then it's quite likely they will make many of the same mistakes the original author did.
- threeseed 3y ago> My comment is not about changing the language but about the fact that whenever we rewrite it, we improve the quality because of the lessons learned during past iterations. So many developers have said this over the years but it almost never comes true. You just end up with different bugs in a different language.
- tourmalinetaco 3y agoDebatably, as language rewrites can bring their own problems. Especially with a newer language like Rust that lacks experienced eyes to review. You get more benefit rewriting the bluetooth drivers in their current languages.
- BaculumMeumEst 3y agohttps://www.joelonsoftware.com/2000/04/06/things-you-should-never-do-part-i/ https://www.joelonsoftware.com/2000/04/06/things-you-should-...