5 ms·
Interestingly, because Firefox chooses to use stable Rust exclusively, this is the version of Rust that will be used to deliver Quantum when Firefox 57 releases
by kibwen 9y ago
Interestingly, because Firefox chooses to use stable Rust exclusively, this is the version of Rust that will be used to deliver Quantum when Firefox 57 releases on November 14 (by which time Rust 1.21 will be out (releasing October 12), but Firefox 57 will be in beta by September 20).
- tempay 9y agoTo save others from searching, Quantum[1] is the new engine for Firefox replacing(/building upon) gecko. [1] https://wiki.mozilla.org/Quantum https://wiki.mozilla.org/Quantum
- dblohm7 9y agoQuantum is the project, not the engine. The resulting product is still Gecko.
- Vinnl 9y agoAnd the goal of the project is to significantly improve the performance of Firefox.
- bad_user 9y agoSo they are already switching to the new Quantum-powered Gecko in Firefox 57?
- cpeterso 9y agoThere is no single switch. Quantum is an ongoing initiative to import more code from Servo into Firefox/Gecko and to improve Firefox responsiveness.
- bad_user 9y agoAwesome.
- giancarlostoro 9y agoThey do plan on replacing component by component so not sure how that will be in the case of Gecko, unless Gecko is already designed with pluggable parts then it would make sense, otherwise they might have to replace a lot of moving parts (not sure how large Gecko is / how much it needs to function) but it'll still be done in chunks if it's too large I'm guessing.
- smegel 9y agoAre there any blogs about how Rust is integrated into Firefox (a mostly C++ program) - i.e. how the Rust runtime is invoked, garbage collection etc?
- steveklabnik 9y agoRust doesn't have any more runtime than C, and also doesn't have a GC. Servo has bindings into SpiderMonkey's GC so that the JavaScript stuff works properly, but that's only that part. That said, I don't think there are any direct blog posts about it; Firefox's other code just sees Rust as C code, as far as I know. (I don't work on Firefox though so I could be wrong about some details.)
- smegel 9y agoI swear I had read Rust had optional GC at one point. And similarly Rust wanting to own main(). Maybe not then.
- burntsushi 9y agoI don't know the precise history, but at one point, it did have a "gc" type, which I believe was demarcated by the `@` sigil. So, for example, `@T` was a garbage collected pointer to `T`. IIRC, the actual garbage collector was simplistic, and was mostly just reference counting under the hood. At some point (in 2014, I think), the GC type went away. Since then, there has never been any serious talk of adding an optional GC to Rust proper, although many folks have worked/written about writing their own.
- steveklabnik 9y agoThis is pretty accurate; however, a very long time ago there was a tracing GC!
- iopq 9y agoAre you sure? I thought @ was reference counted in 0.6 and then removed after. Was it before that?