2 ms·
It's a little odd to me that they're adding new codec code in C++ when they have this little memory-safe language in their back pocket waiting to be used for ex
by loeg 10y ago
It's a little odd to me that they're adding new codec code in C++ when they have this little memory-safe language in their back pocket waiting to be used for exactly stuff like this.
- sp332 10y agoRust is still very new. So far the only Rust code added to Firefox was a drop-in replacement for some other code. They haven't written any new features in Rust yet, and most FF devs wouldn't be fluent in it yet.
- loeg 10y agoIt seems to me that Rust would be perfect for a tiny, mostly irrelevant, self-contained feature like this. :-) If it works, you don't need most FF devs to have fluency because the code base simply doesn't need fixing. The API surface is tiny. And the impact of it being broken is pretty low.
- kibwen 10y agoI wouldn't be surprised if this has been in the works since before Rust was successfully integrated into Firefox's build system. Now that it has been, I'd expect brand-new development of this nature to start considering using Rust, but I still wouldn't expect 100% of new development to be in Rust because I don't expect FF devs to immediately become experts in a new language before getting work done. And C++ still beats Rust in IDE support, which for many devs might be their most important consideration.
- nnethercote 10y ago> Rust was successfully integrated into Firefox's build system It's coming along nicely, but there are still kinks to be worked out. (E.g. Android!) https://wiki.mozilla.org/Oxidation https://wiki.mozilla.org/Oxidation has details.