Mozilla's Quantum Project - Replacing Gecko with servo

Discussion about official Mozilla Firefox builds
User avatar
Grantius
Posts: 1545
Joined: June 28th, 2011, 4:14 pm
Contact:

Mozilla's Quantum Project - Replacing Gecko with servo

Post by Grantius »

Interesting read here:

https://billmccloskey.wordpress.com/201 ... m-project/
"Quantum is roughly divided into four distinct projects.

The Quantum CSS project will replace Gecko’s CSS engine with the one from Servo. Servo’s engine is heavily parallel while Gecko’s is not.

The Quantum DOM project will make Gecko more responsive, especially when there are a lot of background tabs open. When Quantum DOM is finished, JS code for different tabs (and possibly different iframes) will run in separate cooperatively scheduled threads; the code for some background tabs will never run at all.

Quantum Compositor moves Gecko’s compositor into its own process. Since graphics driver instability is a major source of Firefox crashes, we expect that moving code that interacts with the GPU into its own process will make Firefox more stable.

Finally, Quantum Rendering will replace Gecko’s graphics subsystem with the one from Servo, called WebRender. Servo uses the GPU more effectively than Gecko does, driving it more like a game would than a browser."
Micro gaming box: AMD A10-7800 APU, 8gb RAM M350 ITX case (size of a book), Windows 10/Ubuntu
Tablet/Laptop: Asus Transformer T100, Intel Atom 2GB RAM, Windows 10 x86
Mobile:Xiaomi Redmi Note 3 Pro
jandem
Posts: 93
Joined: September 18th, 2008, 2:57 pm

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by jandem »

To be pedantic, it's not "Replacing Gecko with Servo", it's more like we're replacing several parts of Gecko with stuff written in Rust for Servo.

It's very exciting. Stylo (called "Quantum CSS" in that blog post) performance looks promising. It's a lot of work, but it will benefit both Gecko and Servo, and sharing code is definitely nice. It's also great to move core parts of the engine to a language that's safer and makes it easier to parallelize things.

https://wiki.mozilla.org/Quantum
mayankleoboy1
Posts: 471
Joined: February 25th, 2013, 9:52 pm

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by mayankleoboy1 »

It is slightly sad that the one part of Gecko that wont get any benefit from Servo is Spidermonkey, as Servo itself is using Spidermonkey as the JS engine.
What would be exciting, though, would be if SM is getting re-written in Rust.
Is rust mature enough to do so?
User avatar
Omega X
Posts: 8225
Joined: October 18th, 2007, 2:38 pm
Location: A Parallel Dimension...

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by Omega X »

mayankleoboy1 wrote:It is slightly sad that the one part of Gecko that wont get any benefit from Servo is Spidermonkey, as Servo itself is using Spidermonkey as the JS engine.
What would be exciting, though, would be if SM is getting re-written in Rust.
Is rust mature enough to do so?
Why is that sad? SpiderMonkey is one of the best components in Gecko at the moment. It has some Rust hooks but I don't think there's any short term plans to rewrite it in Rust.
Mouse5
Posts: 1279
Joined: April 11th, 2014, 7:34 pm
Location: Sydney Australia

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by Mouse5 »

https://www.phoronix.com/forums/forum/p ... or-firefox some may wanna follow this thread, i tend to feel Mozilla is Doomed
Ver Greeneyes
Posts: 1030
Joined: June 28th, 2008, 4:57 am

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by Ver Greeneyes »

mayankleoboy1 wrote:It is slightly sad that the one part of Gecko that wont get any benefit from Servo is Spidermonkey, as Servo itself is using Spidermonkey as the JS engine.
What would be exciting, though, would be if SM is getting re-written in Rust.
Is rust mature enough to do so?
JavaScript's execution model means it wouldn't really benefit from Rust's built-in parallelization, so the main benefit would be safety. But the JITs are almost certainly the most likely part of the engine to generate unsafe code, and rewriting them in Rust wouldn't make the code they generate any safer! SpiderMonkey is also a very large component, so converting it would take a huge effort. Stylo has been in development for something approaching a year now if I'm not mistaken, and that's 'just' the CSS engine. And finally, SpiderMonkey takes advantage of a lot of modern C++ features to do static checking (along with the rooting analysis), has two big test suites and gets a lot of fuzzing coverage, making it one of the most heavily vetted components of Gecko. So I think converting SpiderMonkey to Rust would be a huge investment for not a lot of gain - it might happen eventually, but I wouldn't worry too much about it not happening now.
User avatar
mightyglydd
Posts: 9813
Joined: November 4th, 2006, 7:07 pm
Location: Hollywood Ca.

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by mightyglydd »

There's a better chance of Les Moonves rebooting Quantum Leap before 'Project Quantum' ever sees the light of day.;)
#KeepFightingMichael and Alex.
User avatar
Omega X
Posts: 8225
Joined: October 18th, 2007, 2:38 pm
Location: A Parallel Dimension...

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by Omega X »

-Arch- wrote:https://www.phoronix.com/forums/forum/p ... or-firefox some may wanna follow this thread, i tend to feel Mozilla is Doomed
I wouldn't. That thread says much of nothing.
User avatar
sabret00the
Posts: 1396
Joined: June 29th, 2004, 8:24 am
Location: London (UK)
Contact:

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by sabret00the »

Just been reading about this being discussed over at Slashdot. This is actually really exciting news, it's actually something marketable that we can all look forward to but the general consensus is that Firefox is falling further and further behind. It's crazy how perception works in the minds of the masses. The reality is though, that Mozilla is really bad at delivering things let alone in a timely manner. I hope they manage to knock this out of the park, there needs to be something that they can achieve.

I should also say that I'm more excited about this getting into Firefox for Android. For the first time ever I've allowed myself to go more than two years without upgrading my flagship phone and every time I open Firefox, it takes forever to load Gecko or when I load a page, that last ten percent is agony. Is this can help in that regards and give the masses with lower-end phones a premium experience, then it's most definitely worth throwing everything into it.
User avatar
Grantius
Posts: 1545
Joined: June 28th, 2011, 4:14 pm
Contact:

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by Grantius »

sabret00the wrote:Just been reading about this being discussed over at Slashdot. This is actually really exciting news, it's actually something marketable that we can all look forward to but the general consensus is that Firefox is falling further and further behind. It's crazy how perception works in the minds of the masses. The reality is though, that Mozilla is really bad at delivering things let alone in a timely manner. I hope they manage to knock this out of the park, there needs to be something that they can achieve.

I should also say that I'm more excited about this getting into Firefox for Android. For the first time ever I've allowed myself to go more than two years without upgrading my flagship phone and every time I open Firefox, it takes forever to load Gecko or when I load a page, that last ten percent is agony. Is this can help in that regards and give the masses with lower-end phones a premium experience, then it's most definitely worth throwing everything into it.
I personally think its great they are going back to focusing on performance.

I love Firefox for Android, even with its flaws. It's dog slow compared to Chrome but I need it for adblock + tab syncing.
Micro gaming box: AMD A10-7800 APU, 8gb RAM M350 ITX case (size of a book), Windows 10/Ubuntu
Tablet/Laptop: Asus Transformer T100, Intel Atom 2GB RAM, Windows 10 x86
Mobile:Xiaomi Redmi Note 3 Pro
User avatar
Virtual_ManPL
Posts: 2052
Joined: July 24th, 2008, 5:52 am
Contact:

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by Virtual_ManPL »

That's great, =D>
but I wonder when developers will finally start fixing very old bugs that still pilling up more and more. [-o<
Virtualfox persona
Tired of constant Firefox UI changes? XUL extensions are not working anymore? Try SeaMonkey, Waterfox Classic, Pale Moon.
User avatar
Omega X
Posts: 8225
Joined: October 18th, 2007, 2:38 pm
Location: A Parallel Dimension...

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by Omega X »

Virtual_ManPL wrote:That's great, =D>
but I wonder when developers will finally start fixing very old bugs that still pilling up more and more. [-o<
Depends on the bug. Using Stylo and Webrender will eliminate a lot of old issues.(and probably creating new ones)
Ezh
Posts: 496
Joined: November 5th, 2002, 1:35 pm
Location: Tallinn, Estonia

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by Ezh »

Any bugs numbers we can follow?
User avatar
Virtual_ManPL
Posts: 2052
Joined: July 24th, 2008, 5:52 am
Contact:

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by Virtual_ManPL »

They are inside links in first and second post in this thread. :-"
Virtualfox persona
Tired of constant Firefox UI changes? XUL extensions are not working anymore? Try SeaMonkey, Waterfox Classic, Pale Moon.
Ezh
Posts: 496
Joined: November 5th, 2002, 1:35 pm
Location: Tallinn, Estonia

Re: Mozilla's Quantum Project - Replacing Gecko with servo

Post by Ezh »

Sure I checked that link. :)
Post Reply