5 ms·
Nice! There's still cool cpp stuff going on in Firefox. This is one example. https://searchfox.org/mozilla-central/source/js/src/jit/WarpBuilder.cpp https://se
by est31 6y ago
Nice! There's still cool cpp stuff going on in Firefox. This is one example.
https://searchfox.org/mozilla-central/source/js/src/jit/WarpBuilder.cpp https://searchfox.org/mozilla-central/source/js/src/jit/Warp...
- LeSaucy 6y agoThat’s a 3300 line cpp file, care to cite a specific example?
- est31 6y agoThe entire file contains WarpBuilder, which is behind the JIT speedup that this thread is about. > The SpiderMonkey (JS) team has been working on a significant update to > our JITs called WarpBuilder (or just Warp) [0,1]. The whole component was the cool stuff I was referring too. I linked it mainly to show that it's C++ instead of, say, Rust, not to highlight any component of it.
- deleted 6y ago[deleted]
- winrid 6y agoI was thinking new stuff was done in Rust. I guess Gecko is CPP only?
- richdougherty 6y agoI think some Rust components have been written and integrated into Firefox. But the core Firefox codebase - including Gecko - is still C++ so it's not easy use Rust there. https://wiki.mozilla.org/Oxidation https://wiki.mozilla.org/Oxidation On a related note, Chrome is looking at integrating Rust into its C++ codebase. https://www.chromium.org/Home/chromium-security/memory-safety/rust-and-c-interoperability https://www.chromium.org/Home/chromium-security/memory-safet...
- stjohnswarts 6y agoNot true majority by far is done in c++. Easily confirmed by downloading the browser source and using a LOC analyzer to see how much code is done in which languages
- winrid 6y agoYeah, not interested enough to do that.
- tusharpandey13 6y agoPlease cite a line or maybe a git comment. No-one is going to filter through 3000 lines of cpp code.