Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>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.



I thought curl was expressly not migrating any code to Rust?



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.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: