News for hackers. Stuff that matters.
Re:A Quantum Leap for the Web by bobajeff on Thursday October 27, 2016 @12:29PM (#12806550)
This sounds to me like Mozilla is getting impatient with Servo. Servo was more than just a parallel browser engine it was the only new web engine not based off of decade old codebase.

It was a statement that it's feasible to hold off on monoculture because compatibility isn't impossible to achieve on new engines.

Re:A Quantum Leap for the Web by Manishearth on Thursday October 27, 2016 @01:49PM (#12807404)
> This sounds to me like Mozilla is getting impatient with Servo.

I mean, yes. In a way. I think this was always part of the plan for Servo -- if things go well start uplifting ideas and/or code to Firefox. This isn't exactly impatience; it makes perfect sense to do this.

This isn't a change in gear for Servo, though. Servo is still chugging along. There are still no concrete plans (that I know of) for a Servo product, however Servo is working on stuff that it needs for it to be a product (i.e. it's not just focused on trying out researchy ideas to be used by Gecko), like proper SSL security. So there's nothing stopping Servo from being a product in the future, and Quantum doesn't affect this.

Quantum affects Servo in a couple of ways:

- There are now paid Gecko engineers hacking on bits of Servo (yay!). On the flipside, paid Servo engineers (e.g. me) are working on Quantum, but for the most part this involves improving Servo itself.

- Rough edges are being polished, web compatibility is being addressed for the quantum components. These were things that were always being worked on, but weren't always a priority for a given component. For example, there have always been optimizations that we knew we could do, but we hadn't done them so far since there were other researchy things to focus on. Now these are getting implemented.

- The build/CI system will probably have major changes to make it possible to smoothly integrate with Gecko. This doesn't really affect goals, just the day-to-day servo developer experience.

It doesn't affect Servo's goals or de-emphasize Servo itself. It just gets some of the advances that Servo has made to the public faster.

Re:A Quantum Leap for the Web by pcwalton on Thursday October 27, 2016 @12:44PM (#12806701)
Servo is still being developed with the same manpower. Quantum is not de-emphasizing Servo. It would make little sense to do so, since the lack of legacy in Servo is part of what has given us the freedom to experiment with things like parallel restyling in the first place. And Quantum helps Servo, too—by giving us real-world Web compatibility experience with portions of Servo's codebase sooner, it helps us shake out bugs faster than we can with Servo alone.

(Disclaimer: As always, I speak for myself, not for my employer.)

Re:A Quantum Leap for the Web by cgag on Thursday October 27, 2016 @07:38PM (#12811450)
It would make no sense to de-emphasize servo. It seems like it would make a lot of sense to de-emphasize Quantum/firefox/everything mozilla is wasting their time and money on that isn't Servo.

I hope that either mozilla is lying for political reasons about their lack of intent to use servo outright, or that the servo team forks from mozilla and takes funding from patreon (or snowdrift when it launches) and builds something great, without the burden of mozilla and firefox.

Re:A Quantum Leap for the Web by pcwalton on Thursday October 27, 2016 @09:39PM (#12812283)
> It seems like it would make a lot of sense to de-emphasize Quantum/firefox/everything mozilla is wasting their time and money on that isn't Servo.

Here's how I think of it: What's the biggest risk to Servo? I think most people would answer that (besides it being a lot of work), as it's a big boil-the-ocean project, there's a lot of newly-written code that hasn't been battle-tested yet. How do we fix that? By getting early user adoption on pieces when they're ready, so we can shake out the issues. Quantum is the perfect way to do that.

Of course, I happen to care about Firefox's success too, so getting great features to Firefox users as soon as possible is also a big win from Quantum. :)

Re:A Quantum Leap for the Web by allendoerfer on Friday October 28, 2016 @02:01PM (#12818857)
The competition in the browser market is much harder than for example the market of programming languages and even there big version bumps have huge costs. If you can avoid it, you don't want all your resources tied to Perl 6, PHP 6, Python 3 and so on, while your users are complaining because the usable version of your software does not improve any longer.
Re:A Quantum Leap for the Web by Ygg2 on Friday October 28, 2016 @05:31AM (#12814311)
I think emphasizing Servo is the wrong goal.

Ideally, when rewriting a large legacy app you want to take the StranglerApplication[1] approach. Netscape tried rewriting its software from scratch and we all know how that ended for Netscape[2] - Netscape is no more. Luckily, Firefox came from that whole mess. But I assume a lot of effort was lost, going from Netscape to Firefox.

In idealized scenario, Servo slowly starts taking replacing parts of Firefox. First URL parser and media player, then slowly DOM, CSS, Renderer, and finally takes over and rewrites JS VM.

The takeover is silent and gradual and user doesn't notices anything outside speed improvements. It's like some kind of silent Borg infection.

[1] http://paulhammant.com/2013/07/14/legacy-application-strangu...

[2] http://www.joelonsoftware.com/articles/fog0000000027.html

Re:A Quantum Leap for the Web by cgag on Saturday October 29, 2016 @10:15PM (#12827743)
I think the user needs to notice a lot of improvements, at all at once, because firefox really feels hopeless at this point. I don't know though, maybe a slow turnaround will work, or a sudden rendering integration will be the turn around it needs.
Re:A Quantum Leap for the Web by larsberg on Thursday October 27, 2016 @12:39PM (#12806666)
Project Quantum is an opportunity to ship some of the Servo components in Firefox and gain millions of users, real-world tests of the technology, and hopefully dramatically expand our contributor base. As we mention in a post to the Servo mailing list (https://groups.google.com/forum/#!topic/mozilla.dev.servo/3b... ), Servo has a lot coming in 2017 unrelated to Project Quantum or Firefox.
Re:A Quantum Leap for the Web by Touche on Thursday October 27, 2016 @02:21PM (#12807797)
Speaking for myself, I don't want "Servo components" in Firefox; I want Servo in Firefox. I want an engine as fast as the one they have shown of Servo as being; not pieces of it that make Firefox incrementally better; I want a browser that is miles ahead. That's always what I found interesting about Servo.
Re:A Quantum Leap for the Web by zbraniecki on Thursday October 27, 2016 @02:56PM (#12808379)
At the same time, you want a browser that keep working with the web at least on the same level as Firefox is right now.

Servo is getting us 80% there, the remaining 20% of quirks, non-standardized behavior and web sites coded with only Chrome/Fx/IE in mind are going to be increasingly difficult to cover.

On the other hand some pieces of servo are close to have "full" compatibility. That means that we can put them in Firefox already.

The result is that web coverage alignment between Servo and Firefox increases which is great for Servo, and the performance and safety between them improves as well which will benefit Firefox.

Re:A Quantum Leap for the Web by mwcampbell on Thursday October 27, 2016 @06:26PM (#12810877)
It also wouldn't be good to have Servo in Firefox until unglamorous things like accessibility are implemented. There's a lot that goes into mature, production software that isn't there in a new research prototype. So incrementally introducing pieces of Servo into the production codebase is probably better.
Re:A Quantum Leap for the Web by Touche on Thursday October 27, 2016 @03:39PM (#12809008)
Incremental improvements are fine, but they don't need a codename or a blog post. Incremental improvements are just something you always do in software development.
Re:A Quantum Leap for the Web by bzbarsky on Thursday October 27, 2016 @04:05PM (#12809359)
Incremental improvements that together amount to a significant rearchitecture are not the same as incremental improvements that are just fiddling around the edges.

But even the latter may need a name if they will involve months of time and a large enough group of people that all need to be able to refer to them. Blog posts are more debatable, of course.

Re:A Quantum Leap for the Web by oldmanjay on Thursday October 27, 2016 @05:24PM (#12810343)
There's a giant gap between your personal lack of interest and the notion that this blog post is something no one finds interesting.
Re:A Quantum Leap for the Web by Touche on Thursday October 27, 2016 @05:25PM (#12810353)
> Speaking for myself
Re:A Quantum Leap for the Web by oldmanjay on Thursday October 27, 2016 @05:39PM (#12810492)
Perhaps in some comment to which I did not reply. The parent I am attached to had no such disclaimer but did explicitly say this is not worth a blog post.
Re:A Quantum Leap for the Web by pcwalton on Thursday October 27, 2016 @03:53PM (#12809189)
Even if you don't care about Gecko, this benefits Servo. It lets us battle-harden core components like WebRender and the style system.
Re:A Quantum Leap for the Web by Aldo_MX on Thursday October 27, 2016 @05:01PM (#12810083)
It also benefits the Rust language for the same reasons. Firefox is already shipping components compiled in Rust[1].

[1] https://hacks.mozilla.org/2016/07/shipping-rust-in-firefox/

Re:A Quantum Leap for the Web by dherman on Thursday October 27, 2016 @12:42PM (#12806683)
I can tell you from where I sit at Mozilla, everyone is very excited about Servo. It just takes time to build things! :) It wouldn't make sense to wait for Servo to reach full web compatibility before starting to integrate it into production uses. This is really just a natural next step in the progression of adopting Servo at Mozilla.
Re:A Quantum Leap for the Web by bzbarsky on Thursday October 27, 2016 @02:51PM (#12808279)
Compatibility in new engines is ... hard. Servo is basically going to need to spoof the WebKit UA and duplicate a bunch of WebKit bugs (the Edge approach) or spoof the Gecko UA and duplicate a bunch of Gecko bugs. Some specs now have an explicit "does your UA say you are Gecko, or does it say you are WebKit" switch with behavior specified for both branches. :(
Re:A Quantum Leap for the Web by leeoniya on Thursday October 27, 2016 @04:29PM (#12809681)
> Some specs now have an explicit "does your UA say you are Gecko, or does it say you are WebKit"

woah! that's truly tragic.

at the risk of ruining the rest of my week, may i ask where?

Re:A Quantum Leap for the Web by bzbarsky on Thursday October 27, 2016 @11:10PM (#12812722)
Sure. https://html.spec.whatwg.org/multipage/webappapis.html#conce... and the pieces of that spec that use it is the main place so far. There is also discussion about maybe using the same switch in https://github.com/whatwg/dom/issues/278 if it turns out that too many pages assume "not webkit" means XMLDocument.load exists.

It could be worse. When the ECMAScript committee discovered that parsing for function-in-a-block differs between browsers and that sites sniff and do different things in different browsers such that none of the browsers can change to each other's behavior, they went ahead and specified a "compatible subset" of behavior such that if you follow those rules you will get the same behavior in all browsers. That's fine, but if you _don't_, as web pages do not, then you're back to square 1: pages sniff and do different things. And the details are not written down anywhere, so a new implementation has no choice but to try to reverse-engineer the sniffing somehow and then also reverse-engineer the actual runtime behavior of function declarations of whatever browser's sniffing response they decided to fake. The good news is that this function-in-a-block thing is literally the worst situation I have encountered in web standards, so all the other ones suck less. ;)

Re:A Quantum Leap for the Web by Aldo_MX on Thursday October 27, 2016 @05:12PM (#12810205)
Considering that Servo is an embeddable engine, why not keep the scope of Servo focused in building a standards-compliant engine?

Replicating other engine's bugs sounds like too much effort towards the wrong direction :/

Although, after the -webkit-disaster I don't really expect anyone to like the idea of a standards-compliant engine :(

Re:A Quantum Leap for the Web by pcwalton on Thursday October 27, 2016 @07:01PM (#12811189)
> Considering that Servo is an embeddable engine, why not keep the scope of Servo focused in building a standards-compliant engine?

That's what we've done so far. We haven't exposed any Gecko- or WebKit-specific stuff that I'm aware of. We have our hands full with the standard :)

(That said, we have implemented things that are unspecified but are de facto standards implemented by both Gecko and WebKit. That includes basic things like <button> and tables…)

Re:A Quantum Leap for the Web by kibwen on Thursday October 27, 2016 @07:50PM (#12811536)
Any efforts underway to turn those de facto standards into actual standards as Servo encounters them?
Re:A Quantum Leap for the Web by pcwalton on Thursday October 27, 2016 @09:00PM (#12811971)
Yes, when we have time. For example, notriddle has been going great work trying to spec hypothetical boxes: https://github.com/notriddle/ServoHypothetical
Re:A Quantum Leap for the Web by bzbarsky on Thursday October 27, 2016 @11:14PM (#12812739)
> why not keep the scope of Servo focused in building a standards-compliant engine

It depends on how you define standards-compliant.

> Replicating other engine's bugs sounds like too much effort towards the wrong direction

Well, web pages depend on those. So your options are either to standardize them or to have a standard that, when implemented, gives you a non-working product.

In practice, they're being standardized (just like XMLHttpRequest was a non-standard thing that ended up getting standardized). See https://compat.spec.whatwg.org/ and https://html.spec.whatwg.org/multipage/webappapis.html#conce... and the bits of the HTML spec that reference it, the bits of https://drafts.csswg.org/cssom/ that mention "webkit", and so forth.

So in the end, a "standards-compliant" engine will implement those standards, which are themselves to some extent a codification of old implementation bugs; pretty normal for standards...

Re:A Quantum Leap for the Web by Manishearth on Thursday October 27, 2016 @06:06PM (#12810725)
> Considering that Servo is an embeddable engine, why not keep the scope of Servo focused in building a standards-compliant engine?

So far, we are (as far as I know)! We try very hard to avoid nonstandard behavior, and if we can't avoid it, try to push for its inclusion in the standard. Given that there are no users that rely on Servo, we can even wait for the standard to be changed before implementing it.

We often try to implement the standard to the word, with code that closely matches up to the standard. This has helped find tons of bugs in the standard (or in the tests). Nonstandard behavior in components shared with Gecko are off in Servo mode.

But if Servo is to be a product we probably will have to change our stance here eventually.

Re:A Quantum Leap for the Web by NoGravitas on Thursday October 27, 2016 @02:08PM (#12807660)
Isn't this announcement basically just saying, though, that Servo is going to replace Gecko piece by piece, rather than all at once?
Re:A Quantum Leap for the Web by zbraniecki on Thursday October 27, 2016 @02:58PM (#12808410)
Servo components will replace Gecko components Where It Makes Sense (tm).

Servo will remain the place where the most radical experiments happen and once proven, will "stabilize" their way into Gecko.

Re:A Quantum Leap for the Web by dblohm7 on Thursday October 27, 2016 @12:39PM (#12806668)
Servo has always been and still is a research project. It was never intended to go into production as a fully-fledged Mozilla product. Quantum is the initiative to bring a lot of those technologies into Gecko.
Re:A Quantum Leap for the Web by pcwalton on Thursday October 27, 2016 @12:45PM (#12806708)
> Servo has always been and still is a research project. It was never intended to go into production as a fully-fledged Mozilla product.

That's not true. Servo is designed to be production-grade.

Re:A Quantum Leap for the Web by metajack on Thursday October 27, 2016 @12:53PM (#12806796)
To elaborate on this "production grade" comment, Quantum is using the same code that's in Servo. I think the fact we were able to build a production grade style system so quickly (and that is 4x faster!) is a testament to the advantages of Rust.
Re:A Quantum Leap for the Web by dblohm7 on Thursday October 27, 2016 @01:28PM (#12807172)
> That's not true. Servo is designed to be production-grade.

I never said that it wasn't. I said that it wasn't going to be shipped as a production Mozilla product.

Re:A Quantum Leap for the Web by pcwalton on Thursday October 27, 2016 @01:57PM (#12807517)
> I never said that it wasn't. I said that it wasn't going to be shipped as a production Mozilla product.

That's also not true.

Maybe it will, maybe it won't; that's a decision that has to incorporate many factors other than technical ones. From my point of view as an engineering lead, I'm designing the engine to ship.

Re:A Quantum Leap for the Web by tedmielczarek on Thursday October 27, 2016 @06:38PM (#12810980)
One key difference here is that this keeps Servo open to continuing to be a research vehicle for new technologies without the exposure of compatibility for millions of users. If we ship Servo in a product that does change the equation a bit.
Re:A Quantum Leap for the Web by dherman on Thursday October 27, 2016 @07:34PM (#12811436)
I think part of what pcwalton and metajack are getting at is that Servo isn't "just a research vehicle" but rather intends to keep seeking adoption. I don't believe adoption and research are nemeses -- in fact, I'd say adoption is a core part of Mozilla Research's MO. I talked about this a little bit in a talk I gave this summer:

https://www.youtube.com/watch?v=9OHcJzJQ2Nk