contents/articles/google-chrome.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 |
----- title: "Chrome: Google did it again!" content-type: article timestamp: 1220401860 tags: "browsers|review|google" ----- <p style="float:left;"><img src="/images/google-chrome/chrome-logo.jpg" alt="" /></p> <p>It looks like there's a <a href="http://www.google.com/chrome">new open source browser</a> in town. As usual, nearly everything about it <a href="http://blogoscoped.com/archive/2008-09-01-n47.html">leaked</a> <a href="http://www.techcrunch.com/2008/09/01/first-public-screen-captures-of-google-chrome/">before</a> its <a href="http://www.google.com/chrome">release</a>. Every blog that matters is talking about it, so if you didn't hear anything about it, you'd better take a look yourself. Don't be fooled by the usual <a href="http://www.techcrunch.com/2008/09/01/meet-chrome-googles-windows-killer/">senseless ravings</a> of some weird, overly-hyped blogger though: a <em>browser</em> just came out, nothing more and nothing less. It's not the end of Windows, it's not the end of the Internet, it's not the end of the world as we know it. It's just a new player in the Browser Wars.</p> <p>I particularly recommend reading the official <a href="http://books.google.com/books?id=8UsqHohwwVYC&printsec=frontcover#PPP1,M1">Google Comic Book</a> about Chrome, however I included some of the most interesting parts of it in this article. It's a nice 40-page comic booklet explaining how the browser works in a friendly way… I found it quite amusing and an interesting way to <del>leak</del> distribute info on a new project. </p> <h3>Getting the damn thing</h3> <p>You can freely download Google Chromm from <a href="http://www.google.com/chrome">here</a>. You'll get a tiny 474KB setup file which installs the browser automatically. When I say automatically I mean automatically: you double click it, and it won't ask <em>anything</em>: it will just install it in Program Files by itself. Idiot proof. Clever. Some people may like it, I damn hated it.</p> <p>I downloaded it and installed it fine from home, on Vista, and it was blazing fast (on <em>Vista_, imagine!). I tried to do the same thing from work and I couldn't. The damn installer is supposed to pick up the proxy settings from your default browser, but if the proxy uses authentication (like 99% of corporate proxies) it simply won't work. As far as I know, there's <a href="http://groups.google.com/group/google-chrome-help-troubleshooting/browse">no way around this</a></em>thread/thread/4c07ec5124f2eebc.</p> <p>This is the reason why this article won't have any chrome screenshots… to protest against Google's stupid way of doing things “too user-friendly”.</p> <p><strong>Update 1:</strong> Actually, it is now possible to download the full Chrome setup from <a href="http://cache.pack.google.com/chrome/install/149.27/chrome_installer.exe">here</a> (Thanks <a href="http://www.thecrazyaustralian.com/installing-google-chrome-behind-a-proxy/">Crazy Australian</a>).</p> <p><strong>Update 2:</strong> After installing Chrome, if your company uses an automatic proxy script you won't be able to browser web sites using Chrome. If that's your case, make sure you change IE's proxy settings by specifying your proxy address and port explicitly.</p> <h3>How Google “re-invented” the browser</h3> <p>Why did Google bother? Officially because…</p> <p><em>“[…] we believe we can add value for users and, at the same time, help drive innovation on the web.”</em><br /> (from <a href="http://googleblog.blogspot.com/2008/09/fresh-take-on-browser.html">Google Blog</a>)</p> <p>In practice, a Google-branded browser makes sense especially because of the services offered by the search giant right now: nearly <em>every kind</em> of web application, from mail clients to <span class="caps">RSS</span> readers.</p> <p>The philosophy of Google Chrome is fairly simple: the Web has changed since the nineties, we now have full-fledged applications instead of crappy hypertexts with animated GIFs, therefore browsers must change, too.</p> <p>Every major browser has a fairly long development history. Think of Firefox: version 3? Not really: try adding up at least 7 versions of Netscape before that. Internet Explorer <strong>8</strong>, Opera <strong>9.5</strong>, …<br /> Safari is probably the newest of the lot, but still not quite right.</p> <p>All major browsers <em>evolved</em> through the years, but they never really changed: so why not to start from scratch?</p> <p>Starting from scratch has a lot of advantages:</p> <ul> <li>You can learn from other people's mistakes, and try to fix them</li> <li>You can <em>get things right</em> from the very start</li> <li>You do not have to worry about breaking compatibility with previous versions</li> <li>People won't have extremely high expectations, and they'll be prepared for a relatively unstable product</li> </ul> <p>Obviously building a browser from the ground up is not a weekend project, but things changed since the nineties and starting fresh does not necessarily means re-inventing the wheel!</p> <h3>An “old” Rendering Engine</h3> <p>Let's just say that the main work was already done for Google by the <a href="http://webkit.org">WebKit</a> guys. The rendering engine which now powers Safari, the Nokia Series 60 browser, Gnome's Epiphany, Adobe <span class="caps">AIR</span> has been picked by the Google guys for Chrome.</p> <p style="float:right;"><img src="/images/google-chrome/chrome-javascript.gif" alt="" /></p> <p>This is a fairly obvious choice, if you ask me. Why?</p> <ul> <li>Presto (Opera's engine) is proprietary</li> <li>Trident (IE's engine) is proprietary, and it sucks</li> <li>Gecko (Mozilla's engine) is open source, but a bit bulky</li> <li>WebKit is open source, and arguably the fastest rendering engine to date</li> </ul> <p>The rendering engine, after all, may be considered one of the most important parts of the browser: it's responsible of what users see, after all. <br /> Google made the right choice, in my opinion: WebKit is also the most “embeddable” and lightweight engine available, and it is also used on the Android platform for this very reason.</p> <h3>A “new” Javascript</h3> <p>Mozilla has a <a href="http:http://www.mozilla.org/js/spidermonkey/Javascript">fast</a> engine, which will soon become <a href="http://ejohn.org/blog/tracemonkey/">much faster</a>. WebKit has a <a href="http://webkit.org/projects/javascript/">blazing fast</a> Javascript engine too, don't forget. So why Google didn't just use that?</p> <p>…Because they wanted something <em>much</em> faster than that, in their own way (as someone already <a href="http://null-logic.net/blog/2008/09/02/javascript-performance-comparison-with-chrome/">pointed out</a>). </p> <p>Meet <strong>V8</strong>, Chrome's very own Javascript Virtual Machine. When reading the Chrome Comic, I was particularly impressed of two improvements introduced by this new javascript VM:</p> <p style="float:right;"><img src="/images/google-chrome/chrome-javascript-gc.gif" alt="" /></p> <ul> <li>It actually compiles Javascript to machine code via a Just-In-Time compiler (<span class="caps">JIT</span>). This means that whenever you refresh a page containing Javascript the browser won't re-interpret the whole script, but it will simply run the compiled version of it which was generated the first time the page was loaded. New concept? Not really, Mozilla is going <em>exactly</em> in the same direction with their own engine, and <span class="caps">JIT</span> compilation will be added as of Firefox 3.1.</li> <li>V8's incremental garbage collection looks like a much better alternative to the current conservative garbage collection methods used for Javascript. Because of V8's new concept of Hidden Class Transitions, V8 knows <em>exactly</em> when something is no longer needed and thus it is able to garbace-collect it more effectively.</li> </ul> <p>While there has been some initial <a href="http://nexus.zteo.com/2008/09/01/google-chrome-an-index-of-what-developers-need-to-know-good-and-bad/">skepticism</a> on this new Javascript implementation, it looks like Google did it right. If you don't believe it you can <a href="http://code.google.com/apis/v8/intro.html">download</a> V8's C++ code and try it out yourself.</p> <h3>One Process per Tab</h3> <p>Google Chrome is the first multi-process browser. The idea is that <em>each tab</em> (because you can't do browsers without tabs, these days, right?) has its own phisical process and it is therefore independent from each other.</p> <p style="float:right;"><img src="/images/google-chrome/chrome-processes.gif" alt="" /></p> <p>Hang on, isn't that what IE 5 did? A new instance of the browser for each window? No, not quite: there's a single instance of the browser and <em>multiple</em> tab instances. Each tab is independent in the sense that it has its own address bar, but it's just a tab, at the end of the day.</p> <p>This is what Internet Explorer could have done, <em>before</em> Internet Explorer 7, as an answer to the traditional concept of tabs promoted by Mozilla and Opera.</p> <p>Actually, it turns out that <a href="http://blogs.msdn.com/ie/archive/2008/03/11/ie8-and-loosely-coupled-ie-lcie.aspx">this is <em>exactly</em> what's planned for Internet Explorer 8</a>, as <a href="http://www.sriramkrishnan.com/blog/2008/09/thoughts-on-new-browser-wars.html">someone</a> already pointed out!</p> <p>Additionally, Google thought of building in a mini task manager to let users monitor the <span class="caps">CPU</span> and memory usage of each tab. This is interesting, but it has a few implications discussed later on in this article.</p> <p>What's truly remarkable about this is that each tab seems to have an initial overhead of 1-2KB, which of course grows according to the site it loads. You can see all this in the task manager, which also picks up similar stats for any other browser running at the same time on your machine. <br /> This was another clever move by Google: by looking at their own task manager, and running more than one browser together, you have everything you need to instantly compare browser performance (thus discovering that Chrome does an outstanding job, it seems).</p> <p>What's also remarkable about Chrome's tabs is the way you can interact with them:</p> <ul> <li>You can move them around smoohtly, exactly like with Safari</li> <li>You can detach them by drag and drop</li> <li>You can re-attach them by drag and drop (which is truly awesome!)</li> </ul> <h3><del>AwesomeBar</del> <em>OmniBox</em> and <del>Speed Dial</del> <em>New Tab Page</em></h3> <p>Did you like Mozilla's AwesomeBar? Well, I personally did, others didn't so much. Meet OmniBox™ Google's very own, semi-sentient address bar which really understands you.</p> <p>Here's what you can do with it:</p> <ul> <li>Type in URLs and view web sites (it would be damn funny if it couldn't do that)</li> <li>Get <del>extra Google crap</del> useful suggestions while typing. This includes, but it is not limited to: <ul> <li>Pages you visited</li> <li>Bookmarks</li> <li>Popular pages (guess who decides that…)</li> </ul> </li> <li>Custom searches: search <span class="caps">IMDB</span>, Wikipedia, Amazon and google itself with a few clicks </li> </ul> <p><img src="/images/google-chrome/chrome-bar.gif" alt="" /></p> <p>Unlike Firefox's AwesomeBar, Google's OmniBox seems more “evolved”: it doesn't get too much in your way, it lets you go where you want to go, and it's smart about searching. Apparently Mozilla is already planning to remove the search bar completely and incorporate it in the AwesomeBar… but Google released it first, sorry guys.</p> <p>The other handy thing they <del>stole</del> kindly borrowed from Opera is the <em>New Tab Page</em>, basically like Opera's Speed Dial, but with two interesting things:</p> <ul> <li>It displays the nine <em>most visited</em> pages: you don't have to configure it!</li> <li>It displays search boxes for the most visited sites where you searched something on.</li> </ul> <p>While I really like how this works (it requires no configuration whatsoever), I kinda miss dragging my favorite pages in the New Tab Page. If you come from Opera, you'll miss this too: the pages I have in my speed dial are <span class="caps">NOT</span> necessarily the pages I visited the most!</p> <p>I guess I'll get used to it, though…</p> <h3>Relax, it's Google!</h3> <p>Google is not Evil™. Google is good to everyone, from their own employees to developers and end users: and the funniest part of this whole thing is that everything they make <em>looks</em> good for you. You have absolutely no reason to fear Google.</p> <p>They did it again: they apparently released a new browser which definitely looks inherently more secure than competitors. <br /> Here's why:</p> <ul> <li>It has an <em>Incognito</em> mode, which lets you browse everything you want without logging anything anywhere. </li> <li>It confines popups to the tab they belong, minimized. You can then seletively decide to drag them out and promote them to their own window.</li> <li>Each tab is sandboxed: i.e., it has no rights to write anything to your PC. Absolutely no chance. When plugins for Java and Flash are used, however, this doesn't apply.</li> <li>Chrome continuously downloads lists of malicious sites, so that you're protected against phishing in real time.</li> </ul> <p style="float:left;"><img src="/images/google-chrome/chrome-blame.gif" alt="" /></p> <p>Now, if everything goes wrong, you know it's definitely <em>someone else who did it</em>. If you read the comic book between the lines, you'll notice a not-so-subtle message to the end users:</p> <ul> <li>The browser is sandboxed, so if anything goes wrong, blame others (Adobe for Flash, Sun for Java, Microsoft for some other crap)</li> <li>You can monitor the resource consumption of each tab, <em>ergo</em> what <em>each website</em> uses. This means that if a site is slow is definitely the web developer's fault.</li> </ul> <p>This is basically what <a href="http://ejohn.org/blog/google-chrome-process-manager/">John Resig</a> immediately pointed out when the comic came out.</p> <h3>How it feels</h3> <p>Google Chrome is clearly a very nice product to use. It's as intuitive as IE for the average Windows user, it has the best of Firefox and Opera features and it's even more sleek than Safari. The UI, in my opinion, is a true masterpiece and feels well though out.</p> <p>Everything is aimed to be intuitive and does not get in your way: it just works. You want to download a file? You can just do it, without worrying about where to save it: it will appear in a “download bucket” at the bottom of your tabs, and you can just drag and drop what you downloaded anywhere you like, if you need to.<br /> Why nobody thought of this before?</p> <p>Even the program settings are simple to understand. The Options dialog is divided in “Basics”, “Minor Tweaks” and “Under the Hood”. The idea is that anyone can understand the Basics, some people may tweak a bit more, and only geeks may want to go beyond that. This is particularly evident in the Italian translation (it comes bundled with 40 localizations, by the way), where they translated “Under the Hood” with “Roba da smanettoni” which means something like “Stuff for people who fiddle with PCs”. I personally found this translation a bit irritating, but anyway…</p> <h3>Media Coverage and Target Audience</h3> <p>The overall impression is that Google wanted to target end users with this browser, but also appeal geeks, too. This makes sense from a marketing point of view. While 90% of geeks switched from IE to another browser, ordinary people are still stuck with IE. Why? Because alternative browsers have gained a reputation of being geek-friendly (which, by popular belief, does not mean user-friendly).</p> <p>Google's marketing strategy is quite clear, and it doesn't seem to be failing on any point:</p> <ul> <li>They targeted Windows first, because that's what the bulk of IE aficionados uses.</li> <li>They did their best to make it as user-friendly as possible: the sleek <span class="caps">GUI</span>, the comic book, etc.</li> <li>They spread the world like crazy: every blog is talking about it, but also major news sites like <span class="caps">BBC</span> and <span class="caps">CNN</span>. When I got to work, a collegue of mine asked me if I tried the new Google browser and if I read the comic. She heard it at the radio. Here <em>in Italy</em>! </li> <li>At the same time, they made the whole thing open source, released APIs and emphasized this, so that “computer fiddlers” couldn't resist.</li> </ul> <p>To me, it looks like Google Chrome stands a good chance to succeed where others have failed: drive most of the Internet population away from Internet Explorer.</p> <h3>Open Source, testing and quality</h3> <p>Google is well known for its massive infrastructure. Moreover, Google is the only “entity” (let's call it that way, shall we) who <em>knows</em> and <em>visited</em> almost every web page on the Internet. If something is not “on Google”, it may well not exist at all: this is not strictly true, but it's the user perspective and ad the end of the day that's all that matters.<br /> Google, as a consequence, has virtually unlimited resources (compared to any other possible competitor) and virtually unlimited knowledge of the Internet, which makes automated testing no more than a joke.</p> <p>From the Google Chrome Comic:</p> <p><em>“Within 20-30 minutres of each new browser build, we can teswt it on tens of thousands of different web pages”</em></p> <p>…and that's certainly not an understatemend: you can believe that.</p> <p><img src="/images/google-chrome/chrome-tests.gif" alt="" /></p> <p>Google seems very concerned of building a “rock-solid” browser rather than being the coolest guy in town, and that's a good sign. Google is <em>smart</em>, remember?</p> <p>As if it weren't enough, the entire thing (the rendering engine, the javascript implementation and the whole code of the broswer) is 100% open source which means, in a nutshell:</p> <ul> <li>Free testers</li> <li>Free developers</li> <li>Good publicity</li> </ul> <p><img src="/images/google-chrome/chrome-os.gif" alt="" /></p> <p>If things go as planned, Chrome may become the most widely tested piece of software in the world. Let's just see how the community takes this.</p> <h3>Why it matters</h3> <p>Everyone seems to have gone crazy about Chrome, even long before it was made available. Why does it matter, anyway? Isn't it just a browser, at the end of the day? Well, yes, but:</p> <ul> <li>It's 100% open source. If you like something of it, you can get it, modify it, bundle it in another project and redistribute it. Give it a few weeks and extensions which use some of Google's new <span class="caps">API</span> will flock to the 'fox like crazy.</li> <li>It's small, fast and very promising. Sure, it's not perfect, but <span class="caps">YOU</span> can help improving it. Get it?</li> <li>It's on Windows, so it will reach the majority of Internet users… in theory.</li> </ul> <p>Last but not least, it comes bundled with <a href="http://gears.google.com/">Gears</a>, i.e. what Google would like you to use for RIAs. That's perhaps the only “subliminal” message they are trying to send to their users (for now, at least).<br /> As a matter of fact, nothing prevents them from using Chrome as a way to promote their technology and products. But at the same time nothing prevents a random developer to just fork the project and distribute a <em>neutral</em> and unbranded version of Chrome.</p> <p>See? Google is not evil at all, it's just smarter than others.</p> <h3>The Bottom Line</h3> <p>Google showed us once more that their “innovation” can be summarized with the following:</p> <p><em><strong>“Do not invent new things, just make them better”</strong></em></p> <p>They didn't invent Internet search: they just made it better and smarted. The same philosophy applies to Chrome, too. Some examples? Sure:</p> <ul> <li>They didn't create a new rendering engine, they used an existing one</li> <li>They analyzed Safari's neat <span class="caps">GUI</span> tricks and implemented something even better. </li> <li>They added an IE8-like domain highlight in the <span class="caps">URL</span>.</li> <li>They got the Firefox's AwesomeBar and improved it.</li> <li>They got Opera's Speed Dial and improved it.</li> <li>They got IE8's one-process-per-tab architecture and improved it.</li> <li>They didn't think of a Javascript <span class="caps">JIT</span> first, they just made it widely-available first.</li> <li>They didn't think about merging the address bar with the search bar, Mozilla announced it first, but Google released it before they did.</li> <li>Safari 4 allows users to create shortcuts for their favorite web apps, but unfortunately it's only out for developers…</li> </ul> <p>Google did it, again. Exactly as planned.</p> |