{"id":19587,"date":"2017-11-17T14:23:47","date_gmt":"2017-11-17T19:23:47","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=19587"},"modified":"2017-11-21T14:13:26","modified_gmt":"2017-11-21T19:13:26","slug":"firefox-quantum","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/11\/17\/firefox-quantum\/","title":{"rendered":"Firefox Quantum"},"content":{"rendered":"<p><a href=\"https:\/\/blog.mozilla.org\/blog\/2017\/11\/14\/introducing-firefox-quantum\/\">Mark Mayo<\/a>:<\/p>\n<blockquote cite=\"https:\/\/blog.mozilla.org\/blog\/2017\/11\/14\/introducing-firefox-quantum\/\"><p>It&rsquo;s fast. Really fast. Firefox Quantum is over twice as fast as Firefox from 6 months ago, built on a completely overhauled core engine with brand new technology stolen from our advanced research group, and graced with a beautiful new look designed to get out of the way and let you do what you do best: surf a ton of pages, open a zillion tabs, all guilt free because Firefox Quantum uses less memory than the competition. Your computer will thank you. &#x1F642;<\/p><\/blockquote>\n\n<p>Via <a href=\"https:\/\/www.macstories.net\/news\/firefox-receives-speed-bump-and-design-refresh\/\">John Voorhees<\/a>:<\/p>\n<blockquote cite=\"https:\/\/www.macstories.net\/news\/firefox-receives-speed-bump-and-design-refresh\/\">\n<p>I haven&rsquo;t had an opportunity to thoroughly test Firefox on my Mac, but even after opening 50 tabs on a fresh install of the browser, many of which were notoriously heavy sites, Firefox remained responsive.<\/p>\n<\/blockquote>\n\n<p>I&rsquo;m not sure it&rsquo;s twice as fast, but it really does feel faster than previous versions of Firefox, and perhaps faster than Safari in some cases. I still prefer Safari, though, because it&rsquo;s a better <em>Mac app<\/em>.<\/p>\n\n<p><a href=\"https:\/\/audaciousfox.net\/linked\/2017\/firefox-quantum\">K.Q. Dreger<\/a>:<\/p>\n<blockquote cite=\"https:\/\/audaciousfox.net\/linked\/2017\/firefox-quantum\">\n<p>If you haven&rsquo;t tried Firefox since Chrome came out, or you&rsquo;ve always used your operating system&rsquo;s default browser, I&rsquo;d encourage you give the new Firefox a shot. It&rsquo;s free and I was left genuinely surprised.<\/p>\n<\/blockquote>\n\n<p><a href=\"http:\/\/taoofmac.com\/space\/links\/2017\/11\/15\/0835\">Rui Carmo<\/a>:<\/p>\n<blockquote cite=\"http:\/\/taoofmac.com\/space\/links\/2017\/11\/15\/0835\">\n<p>Another thing that worried me was that Firefox seems to have a larger energy footprint and was still claiming a significant percentage of CPU cycles (5-10%) while out of focus and &ldquo;idle&rdquo;.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/blog.rust-lang.org\/2017\/11\/14\/Fearless-Concurrency-In-Firefox-Quantum.html\">Manish Goregaokar<\/a>:<\/p>\n<blockquote cite=\"https:\/\/blog.rust-lang.org\/2017\/11\/14\/Fearless-Concurrency-In-Firefox-Quantum.html\">\n<p>Rust code <a href=\"https:\/\/hacks.mozilla.org\/2016\/07\/shipping-rust-in-firefox\/\">began shipping in Firefox<\/a> last year, starting with relatively small\npilot projects like an MP4 metadata parser to replace some uses of libstagefright. These components\nperformed well and caused effectively no crashes, but browser development had yet to see large\nbenefits from the full power Rust could offer. This changes today.<\/p>\n<p>Firefox Quantum includes Stylo, a pure-Rust CSS engine that makes full use of Rust&rsquo;s\n&ldquo;<a href=\"http:\/\/blog.rust-lang.org\/2015\/04\/10\/Fearless-Concurrency.html\">Fearless Concurrency<\/a>&rdquo; to speed up page styling. It&rsquo;s the first major component of Servo to be\nintegrated with Firefox, and is a major milestone for Servo, Firefox, and Rust. It replaces\napproximately 160,000 lines of C++ with 85,000 lines of Rust.<\/p>\n<p>[&#8230;]<\/p>\n<p>This top-down structure is ripe for parallelism; however, since styling is a complex process, it&rsquo;s\nhard to get right. Mozilla made two previous attempts to parallelize its style system in C++, and\nboth of them failed. But Rust&rsquo;s fearless concurrency has made parallelism practical! We use <a href=\"https:\/\/crates.io\/crates\/rayon\">rayon<\/a>\n&mdash;one of the hundreds of <a href=\"http:\/\/crates.io\/\">crates<\/a> Servo uses from Rust&rsquo;s ecosystem &mdash; to drive a work-stealing cascade\nalgorithm. You can read more about that in <a href=\"https:\/\/hacks.mozilla.org\/2017\/08\/inside-a-super-fast-css-engine-quantum-css-aka-stylo\/\">Lin Clark&rsquo;s post<\/a>. Parallelism leads to a lot\nof performance improvements, including a 30% page load speedup for Amazon&rsquo;s homepage.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/iTod\/status\/930849824773165056\">Todd Ditchendorf<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/iTod\/status\/930849824773165056\"><p>While they&rsquo;ve been inventing Rust, Firefox has lost most of its market share, completely missed mobile, &amp; the latest Servo .app release is completely non-functional on my Mac. Meanwhile Mozilla is celebrating their greenfield research success story.<\/p><\/blockquote>\n<blockquote cite=\"https:\/\/twitter.com\/iTod\/status\/930851238010384384\"><p>I guess it depends on what you find more important: a fantastic new programming language, or a relevant indie browser that&rsquo;s not controlled by a BigCo or tracking your every move. But while there are lots of cool prog langs, there was only one relevant indie browser.<\/p><\/blockquote>\n<blockquote cite=\"https:\/\/twitter.com\/iTod\/status\/930851551119314944\"><p>Now we have yet another cool programming language, and no relevant indie browsers.<\/p><\/blockquote>\n\n<p>Update (2017-11-21): <a href=\"https:\/\/twitter.com\/mattbirchler\/status\/932709045873659904\">Matt Birchler<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/mattbirchler\/status\/932709045873659904\">\n<p>Both Apple and Google&rsquo;s web apps make me feel like I&rsquo;m living through the ActiveX days all over again. Firefox sadly feels like a second class citizen because of this.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Mark Mayo: It&rsquo;s fast. Really fast. Firefox Quantum is over twice as fast as Firefox from 6 months ago, built on a completely overhauled core engine with brand new technology stolen from our advanced research group, and graced with a beautiful new look designed to get out of the way and let you do what [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[800,338,279,30,32,1529,571,138,71,408,96],"class_list":["post-19587","post","type-post","status-publish","format-standard","hentry","category-technology","tag-concurrency","tag-css","tag-firefox","tag-mac","tag-macapp","tag-macos-10-13","tag-memory-management","tag-optimization","tag-programming","tag-rust-lang","tag-web"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/19587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=19587"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/19587\/revisions"}],"predecessor-version":[{"id":19617,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/19587\/revisions\/19617"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=19587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=19587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=19587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}