I'm sort of surprised that this is the first time they've used rust for anything in the browser. I thought they developed Rust for this exact purpose?
Shipping Rust code in Firefox
31–40 of 197 posts
Re: Shipping Rust code in Firefox
#32Even if Servo doesn't pan out as anything more than an experiment (though I'm optimistic that it will), I think Rust will bring real benefits to Firefox by enhancing security of isolated components like this mp4 parser.
For example Gecko is gaining support for Servo's style engine so maybe CSS will be the first large component merged.
I wonder if Firefox will slowly become written in mostly Rust.
Re: Shipping Rust code in Firefox
#33AHHH Telemetry! I feel like there is a group of people who freak out to any form of telemetry, I just wanted to highlight them using it to track bugs. It's super beneficial to any form of changes, especially something like switching an entire language for a component.
IIRC the telemetry involved here was only run on the nightly/developer edition versions. Or something like that. The restrictions on telemetry on release versions are pretty stringent. It's possible this was measured on release, I'm not aware of the details, but I suspect it wasn't.
(My understanding is based upon whenever I install Firefox it promts me to enable telemetry, which is disabled by default)
Re: Shipping Rust code in Firefox
#34So does that mean despite a billion samples between those dates, all samples fell on just three dates?
Re: Shipping Rust code in Firefox
#35Will this include iOS devices too? This is great news for the language as it's going to help make sure a wider array of architectures are supported. Awesome work!
Re: Shipping Rust code in Firefox
#36Even if Servo doesn't pan out as anything more than an experiment (though I'm optimistic that it will), I think Rust will bring real benefits to Firefox by enhancing security of isolated components like this mp4 parser.
If you look on the Mozilla bug tracker you can look at a number of tickets open for integrating servo components into Firefox. For example Gecko is gaining support for Servo's style engine so maybe CSS will be the first large component merged. I wonder if Firefox will slowly become written in mostly Rust.
I doubt that will ever happen. Small parts of Firefox, yes, but the browser is enormous. I think I once read that even Servo, which is a showcase for Rust, has more C/C++ code in it than Rust code, largely because it uses Firefox's JS engine.
Re: Shipping Rust code in Firefox
#37Will this include iOS devices too? This is great news for the language as it's going to help make sure a wider array of architectures are supported. Awesome work!
I presume not because IIUC the actual video decoding would be handled by iOS's built in webkit. However I would expect that some rust components would make it to the iOS Firefox in the future.
Re: Shipping Rust code in Firefox
#38Even if Servo doesn't pan out as anything more than an experiment (though I'm optimistic that it will), I think Rust will bring real benefits to Firefox by enhancing security of isolated components like this mp4 parser.
If you look on the Mozilla bug tracker you can look at a number of tickets open for integrating servo components into Firefox. For example Gecko is gaining support for Servo's style engine so maybe CSS will be the first large component merged. I wonder if Firefox will slowly become written in mostly Rust.
Re: Shipping Rust code in Firefox
#39Small nitpick, I know :)
Re: Shipping Rust code in Firefox
#40That telemetry graph looks odd, dates filtered from 2016/03/03 to 2016/04/07 but "Number of dates" is "3". So does that mean despite a billion samples between those dates, all samples fell on just three dates?