264 points · by bpierre · 12y ago · 101 comments
[1] https://github.com/mozilla/servo
[2] https://en.wikipedia.org/wiki/Rust_%28programming_language%2...
http://pcwalton.github.io/blog/2014/02/25/revamped-parallel-...
From that post:
> No doubt about it, CSS 2.1 is tricky—floats perhaps more than anything else.
I really hope that Servo helps to identify parts of the HTML/CSS specs (if any) that unnecessarily prevent parallelism. By that I mean features (like "float" perhaps) that make it harder to parallelize, and where an alternative design could support the same use cases in a better way.
Those are the gems that teach us deep lessons about the problem space, and how future similar technologies out to be designed.
This is beginning to happen; for example Servo work on running <iframe sandboxed> documents in parallel [1] led to the discovery that the HTML spec allowed different-origin iframes to mutate into same-origin, through the "document.domain" setter [2], which made process isolation infeasible (since it would require some way to merge separate processes with separate heaps back into a single process). That discussion led to a change in the spec [3].
[1] https://groups.google.com/forum/#!msg/mozilla.dev.servo/LQ46...
[2] http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2013-Aug...
Just having more and more of this stuff documented (instead of having to reverse-engineer it from existing browsers) makes things a lot easier than they once were.
I guess now we're in this hole we best keep digging
Regarding new specs, we're of course working on that too, with specifications like flex box and grid layout. Part of Servo's goal is to steer the conversation toward what can be done to make future CSS specs parallelizable on CPUs and GPUs. But of course we want to be fast on existing Web content as well.
Drastically changing the HTML standard would take even longer than developing Servo.
Beyond marketing, wouldn't more slow cores consume less battery power than fewer fast cores?
On the other hand, I believe that HTML layout can be done, using only a single thread, much faster and with far less memory than current mainstream browsers do, by greatly simplifying the code (i.e. remove excessive use of abstraction, using different data structures, etc.) Not exactly the same, but along the same lines as, this related item that appeared here a few days ago: https://news.ycombinator.com/item?id=7457674
Ho ho ho... good one.
(1) Browser UX research isn't part of the research agenda for Servo at this time. (That isn't to say we aren't interested in browser UX research at Mozilla, just that that isn't being done under the Servo project.)
(2) It helps to ensure that we are embeddable. We want Servo to be an embeddable Web rendering engine for people to use in their own projects.
That said, I don't think it could be ready for years if ever.
I remember the mess I saw on my PSP when I tried it out when Acid 2 was important.
[1] https://github.com/mozilla/servo/ [2] http://ftp.osuosl.org/pub/fosdem//2014/UD2218A/Saturday/Serv... [3] http://www.joshmatthews.net/fosdemservo/
One of Servo authors worked on WeasyPrint.
WeasyPrint passes Acid2.
If you want an existing one, in a simpler browser, try Dillo or NetSurf.
I'm impressed that a non-profit has funded two of these projects.
Specifically, are there any real benefits to the "parallel" aspect of this?
Of course, firefox is already bloody fast on any site I can think of. Not sure what sorts of improvements I should be looking for.
That's because all the sites we can think of are designed to be fast in Firefox (and other current browsers). Once super-fast browsers become standard, we can start designing sites that would be unusable on today's Firefox :)
and implement basic stuff like Summary/Details or you know some HTML5 form controls...
And some file system api, seems to me Mozilla dont care about offline webapps,since the WebSQL debacle...
Did you get that impression from the fact that they're building a whole OS based on offline webapps?
oh wait,it does not,because of this crappy indexedDB Moz pushed.
Besides, if you want to use SQLite in the browser, you don't need WebSQL: https://github.com/kripken/sql.js
offline webapps
Paging Dr. Oxymoron[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/...
Because you care about your users being able to use the site?
Because modern users aren't tethered to the wall any more?
"Maybe they could start by not choosing to arbitrarily wipe Web browser data as the first step of reclaiming memory for the operating system"
Okay, now I'm curious.
Assume the system is totally out of storage. Something has to go. Should it be:
1) Apple's answer (i.e., deleting cached web pages and data) 2) Your answer (which would be?)
Also add very easy deploy and hosting of your app.