News for hackers. Stuff that matters.
Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by gameswithgo on Wednesday March 31, 2021 @12:02PM (#26648931)
>Wait , so can rust generally be replace C++ code in most projects ?

In principle Rust could replace every line of C++ code in the world. The questions of how often it would be a good idea to do so, practical to do so, is harder to say. It is promising that this bluetooth stack only needed 4 lines of unsafe though!

Since the interop is zero overhead doing piecewise migrations is certainly possible, as has been going on with firefox, and curl and discussions of doing it in linux as well. You do complicate your build system and there is a non trivial amount of work to stitch the two languages together.

Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by zamadatix on Wednesday March 31, 2021 @01:08PM (#26649911)
I thought curl was expressly not migrating any code to Rust?
Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by Serow225 on Wednesday March 31, 2021 @01:35PM (#26650298)
Re:Android's new Bluetooth stack rewrite (Gabeldorsh) is wri... by gameswithgo on Wednesday March 31, 2021 @01:32PM (#26650261)
Yes, but more recently there has been a change of heart. I don't think it implies for now that there is any aim to replace all of it with Rust though.