Live data from Hacker News

Shipping Rust code in Firefox

hacks.mozilla.org

31–40 of 197 posts

Re: Shipping Rust code in Firefox

#31

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?

Yep, and it's now ready to be deployed. Takes a while to build a language and its environment from scratch...

Re: Shipping Rust code in Firefox

#32

Even 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

#33

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

From my understanding release is opt-in only.

(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

#35

Will 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

#36

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

#37

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

Firefox for iOS itself is written in Swift.

Re: Shipping Rust code in Firefox

#38

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

https://wiki.mozilla.org/Oxidation <- this is the link to check out

Re: Shipping Rust code in Firefox

#40

That 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?

If you click on the image to see the interactive graph, under "Advanced settings" there's a switch "Date range variable: filter submissions by build date range or submission date range", which is set to "build date range". So those "3 dates" correspond to three different build dates.
Post reply on HN