Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

The Future of Google Chrome

Posted by CmdrTaco on Thu Feb 26, 2009 08:41 AM
from the didn't-safari-just-poach-their-best-features dept.
TRNick writes "Lars Bak, who heads up development of Google Chrome's cornerstone javascript engine, talks about why Google is so focused on in-browser javascript performance, the role Chrome has played in driving up javascript performance in other browsers, and why it's taking so long to introduce support for third-party extensions. 'The web is becoming an integral part of the computer and the basic distinction between the OS and the browser doesn't matter very much any more,' he says."
+ -
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • by Anonymous Coward on Thursday February 26 2009, @08:41AM (#26997019)
    Being uninstalled?
    • by Kagura (843695) on Thursday February 26 2009, @09:39AM (#26997715)

      Being uninstalled?

      Until they get support for Firefox addons or get a base of addons equal to Firefox's, it won't be going on my computer anymore. ;*( I used it for about two weeks after its release, and then switched back to Firefox and never looked back.

      • by cyclocommuter (762131) on Thursday February 26 2009, @09:57AM (#26998021)
        More specifically for me, until Chrome incorporates addons/extensions equivalent to NoScript, Adblock, and Flashblock I won't be using it except perhaps when I need to do a quick check of my Google Calendar appointments.
        • by Ninnle Labs, LLC (1486095) on Thursday February 26 2009, @10:34AM (#26998555)
          Because not everyone in the world is a programmer?
        • by digitig (1056110) on Thursday February 26 2009, @10:39AM (#26998635)

          Now everyone stop complaining about Chrome having no extension! If Chrome is really that good for everything else except has no add-ons, and if you really so sick of getting that noscript/adblock add-on, why not develop one yourself and contribute back to the project?

          Am I missing something?

          Yes. Not all potential users are developers. In fact, I suggest that the majority of potential users are not developers. Telling a random user of web browsers that they need to learn to program to make it do what other free browsers already do is unlikely to convert them. And of those of us who are developers? Well, lets see: shall I spend my free time developing tools for Chrome that are already working perfectly satisfactorily for me in Firefox, or shall I spend my free time doing someting that I think actually needs doing?

        • by 0xABADC0DA (867955) on Thursday February 26 2009, @11:01AM (#26998887)

          if you really so sick of getting that noscript/adblock add-on, why not develop one yourself and contribute back to the project?

          Time to develop extensions support and equivalent noscript add-on: six months, full time
          Time to complain about lack of extensions in Google Chrome: <10 seconds

          Your question is why people don't give up 6 months of their time instead of complaining why Google released a browser without modern features? That's madness. Developers work on open source for free when they feel like it, so unless some developer is really excited about reinventing NoScript they are going to complain instead.

          And I'll go even further and turn the tables on you. If you are so sick of people complaining about lack of extensions why haven't you fixed it yet? And even if you are contributing to the project, why are you taking your free time to complain about everybody else instead of working on plugins? The chromium code is right there, so get back to work.

        • by BIGELLOW (970109) on Thursday February 26 2009, @11:27AM (#26999307) Homepage

          I think it is important to add that Google Chrome already supports add-ons (well, user scripts)... the types that block ads... customize sites... etc... I use these user scripts all the time, and these weren't ones I wrote myself... these are ones written by others.

          What Chrome does not yet have is the ability for non-techies to easily find and install these user scripts. That is definitely coming, but everyone just needs to be patient. Also what is coming is the ability for such add-ons to modify and tweak the UI.

        • by Jurily (900488) <jurily@@@gmail...com> on Thursday February 26 2009, @11:40AM (#26999495)

          why not develop one yourself and contribute back to the project?

          Because we already have it with firefox.

        • Re: (Score:3, Funny)

          by Anonymous Coward

          Then how did you install it in the first place?

          Very carefully. . .

  • As we've seen. (Score:4, Insightful)

    by stonedcat (80201) <hikaricore [at] gmail.com> on Thursday February 26 2009, @08:46AM (#26997063)

    As we've seen with Windows and IE.... the distinction between browser and and OS matters quite a bit. That is if you don't want to get accused of being and evil monopoly.

    • Re:As we've seen. (Score:5, Interesting)

      by elrous0 (869638) * on Thursday February 26 2009, @09:04AM (#26997251)
      It was truly an odd thing for Google to say just days after they joined [theregister.co.uk] the EU antitrust case against MS over the this very distinction.
      • Re:As we've seen. (Score:5, Insightful)

        by fuzzyfuzzyfungus (1223518) on Thursday February 26 2009, @09:19AM (#26997429) Journal
        There are fairly clearly two different senses of "distinction" at work here.

        The lawsuit concerns the question of whether or not a web browser is structurally distinct from the OS or not: is it an integral component, or an instance of bundling of two essentially unrelated things.

        This interview concerns the developer's observation that people's use of the browser doesn't draw much of a distinction between the browser and the OS(in that they consider the computer broken if web access isn't working, and in that they consider webapps to be on par with native apps).

        It is also quite possible that, shockingly, an individual developer, speaking semiformally about his project, has a slightly different view than does Google's legal department, speaking on behalf of Google's official position.
        • Re:As we've seen. (Score:5, Insightful)

          by elrous0 (869638) * on Thursday February 26 2009, @09:59AM (#26998043)

          in that they consider the computer broken if web access isn't working

          I suspect that will be MS's essential defense of bundling a default brower (IE) with Windows. People EXPECT any modern OS to come with a default browser. Most of them don't even realize the browser is a distinct program from the OS itself. The argument against MS not bundling a browser with their OS is a relic from the 90's. These days it would be suicide for anyone to release an OS without built-in web capability right out of the box.

          • Re:As we've seen. (Score:5, Insightful)

            by Tarlus (1000874) on Thursday February 26 2009, @10:30AM (#26998483)

            Buzzwords like "cloud computing" and "online OS" don't change the fact that this is not a paradigm shift

            And "netbook."

            Thank you for writing this post, it really nails my opinion of the matter on the head as well. This whole new webapp craze has created such a stink in the IT world because so many people assume that it's going to phase out good-old-fashioned binaries. This is simply not the case. Like any tool, webapps are extremely useful for the right job. Regular binary programs are extremely useful for the right job. Writing a document with a webapp that is OS-independent and stored remotely is a nifty idea (especially if your laptop dies or is stolen, your data is safe), but the thought of something like MatLab, number-crunching or large spreadsheets using Javascript makes me cringe. Of course, people out there are still going to try doing this, and that's the crappy part about webapp popularity.

            The two approaches just need to find a balance and coexist. There will continue to be a distinction between webapps and the local OS because there will continue to be different people who have different uses for their computers. Average Joe will not know or care what OS is on his Eee as long as he can use his Google Mail and Google Calendar and Google Documents... and as long he knows that when the Eee is pickpocketed or dropped and broken, he can still get his data back from Google using another computer. IT Dude Tarlus (me) will continue to be anal-retentive about my OS, my software and the more advanced applications I have for them. I admit that I have written and use webapps, but only because they're the best tool for the job at hand. But I'll stick with a native word processor. (And no vasectomy, please.) =)

          • Re:As we've seen. (Score:5, Informative)

            by pixelcort (413708) <me@pixelcort.com> on Thursday February 26 2009, @10:37AM (#26998599) Homepage Journal

            Too late. Google Docs is already here, a JavaScript word processor with real-time collaboration features.

              • Re: (Score:3, Insightful)

                by berwiki (989827)
                ok, it was exploitable, but does that mean it was fundamentally a bad idea?
                can't we have some type of integration once in a while?
  • by LeDopore (898286) on Thursday February 26 2009, @08:54AM (#26997117) Homepage Journal

    is that its future per se doesn't matter.

    What Google cares about is that there is a least one standards-compliant browser out there with fast javascript. Sure Google might have a slight preference for people using Chrome over another browser with fast javascript (like, say, Safari), but what really matters to them is that they are able to deliver web apps that are fast enough to be reasonable competitors to traditional desktop apps.

    Chrome is a combination insurance policy/open-source soapbox whose purpose is to make sure that Google apps (and other web apps) will always have a browser to run on.

    • by Aladrin (926209) on Thursday February 26 2009, @09:12AM (#26997335)

      I think it's more important that it's a challenge to the rest of the 'market' to catch up on Javascript performance. I don't think they -really- expect their browser to be the best or even have a decent market share... They just need something to point to and say 'See, it's possible. Why haven't you done it yet?'

        • by m.ducharme (1082683) <`moc.liamg' `ta' `emrahcud.cram'> on Thursday February 26 2009, @09:55AM (#26997995)

          Maybe 1) re-writing the firefox JS engine is too much work or 2) would be too disruptive to a well-established open-source project, or 3) wouldn't be as supa-cool awesome as starting from scratch (I'm assuming that Chrome began as a %20 time project), or 4) they felt the Firefox dev team would have simply ignored the work done by the Chrome people, or 5) they would have to've reworked the whole browser, and not just the JS engine.

          I'm sure I could think of more reasons why the Chrome developers would want to do their own thing rather than submit changes to the Firefox engine, but I hope you get the point. Nothing about the bazaar forces you to join a current project and push updates, or even makes that practise logically necessary. Sometimes it's a good idea, sometimes not.

    • by Deag (250823) on Thursday February 26 2009, @09:16AM (#26997389)

      It is interesting the while javascript is being more and more heavily used, it is in a way like development tools have been reset 10 years.

      Maybe I have been blind, but I have yet to come across a decent IDE for javascript development. All the nice features like code completion and even syntax checking are now no longer a given.

      Even some decent syntax checking would be nice. I would like to know how much time is lost now on developers looking for typos in their js code. The only way you discover them is to run the code. And even then, the errors generated are not always helpful.

      And debugging is getting more complicated. Stuff like venkman and firebug work for basic standard linked javascript, but the newer libraries use so many shortcuts in declaring objects that no debuggers just can't seem to keep up.

      A lot of this is with any script that is weakly typed. So many libraries and scripts take advantage and abuse this.

      Now these same libraries are abstracting so much of what is hard browser differences and the like out. So that is good. But with this only really being at the start of being heavily used. I can see some real ugly legacy applications around in five years time.

      And this type of scripting is popping up everywhere, I see servers now that have javascript running on the server, and other devices using them for UI.

      • by Artifex33 (932236) on Thursday February 26 2009, @10:06AM (#26998137)

        I'd suggest you check out IntelliJ's IDEA 8.0. I've been developing interfaces for the web for ten years now, and I've come across nothing with such comprehensive and accurate support for js coding. Both your complaints about code completion and syntax checking are handled by IDEA accurately.

        Some other developers in my group swear by MyEclipse's js handling, but I haven't had any personal experience with it in the past couple of years. My last impression of it was that its color-coding wasn't as detailed as IDEA's. Still, MyEclipse is open-source, so check it out first and see if it takes care of your needs.

        For debugging, Firebug is still your best bet, though I believe IE's debugger has been making huge strides lately, and is better than Firebug for automatically handling breakpoints--in Firebug, you have to search through your .js files in order to manually place a breakpoint, and then that can get weird if you have iframes to deal with.

      • by Arkham (10779) on Thursday February 26 2009, @01:47PM (#27001539)

        Maybe I have been blind, but I have yet to come across a decent IDE for javascript development. All the nice features like code completion and even syntax checking are now no longer a given.

        I felt like this for a long time. Finally I discovered , which is Google's own solution to this problem. [google.com]

        I now code my dynamic web components in java in my regular (eclipse) IDE, debug it in Eclipse, then deploy (compile) to Javascript. It's robust, full featured, maintainable, and easily debugged.

  • by PetoskeyGuy (648788) on Thursday February 26 2009, @08:58AM (#26997175)

    I would rather have the browser guys work on getting something OTHER than javascript into the browsers. Javascript is getting better, but you only polish a turd so much.

    • Re: (Score:4, Insightful)

      by drew (2081) on Thursday February 26 2009, @02:04PM (#27001805) Homepage

      I strongly disagree. JavaScript is a great language - in fact I think it is one of the best dynamic languages out there. The biggest problem is that 95% of the people who program JavaScript never bother to figure out the right way to use the language. I have heard people who had worked for years programming in JavaScript (actually JScript) claim that the language does not support inheritance, which could not be more untrue. As Douglas Crockford stated in a talk titled "JavaScript: The Good Parts [yahoo.com]":

      I began programming JavaScript the same way everybody else began programming JavaScript: I didn't learn it. Just tried to figure it out by trial and error. It was like "There's not enough here to be worth having to learn it. I'll just fumble around with it." That's not true of any other language. Every other language that I've ever attempted, I would learn it - I would learn it deep and I would learn it good. JavaScript is the only language I've ever encountered where "I should be able to fake it."

      I don't know why JavaScript has that aspect about it, but I find that's pretty much universal. Most of the people who start using JavaScript really don't bother to learn it. But they expect it to work anyway, and often they are disappointed when it doesn't work the way they thought it should, when they have no reason to expect that it should work the way they thought it should.

      If people would actually bother to learn the language (and could be convinced to give up the notion that you can't do OO properly without classes) you'd probably hear a lot less hatred for it.

      Also, adding other support for other languages wouldn't do anything to address the biggest difficulty in writing code that runs in a browser, which is the incompatibilities between the different browsers' DOM and CSS implementations.

      • I disagree (Score:5, Informative)

        by brunes69 (86786) <slashdotNO@SPAMkeirstead.org> on Thursday February 26 2009, @10:02AM (#26998087) Homepage

        The problem is people still fail to grasp the difference between Javascript and DOM and CSS manipulation....

        All Javascript engines have been ECMA compliant for 5 years now. Javascript incomparability is not the problem, it is the DOM and CSS incompatabilities.

  • by radarsat1 (786772) on Thursday February 26 2009, @09:00AM (#26997201) Homepage

    With compilers like GWT [google.com], Pyjamas [pyjs.org], and HotRuby [accelart.jp], I sometimes wonder if JavaScript is starting to emerge as a "portable assembly language" for dynamic languages, the way C is often used by higher-level language compilers. I mean, when it comes down to it JS is basically just hash tables and closures, some of the basic elements required for dynamic language execution.

    Given a fast-as-C javascript engine, you could have a pretty decent VM to share between several dynamic languages, and due to JS's dynamic nature compiling these languages to JS is fairly trivial.

    I mentioned this once on reddit and someone called it a 'braindead' approach. That may be true. I'm not sure. He also pointed out that many things you'd have to do to get languages like Ruby running in JS would require passing the context as a function argument, which he claimed would probably bypass any potential optimization by the JS compiler. Not sure about that either.

    But I find it really interesting (and cool!) that JS's heavy web presence is giving it such attention in both the "compiler backend" and optimization departments simultaneously. Whether it's a braindead approach or not, it sure seems to be drawing a lot of interest lately.

    • by abigsmurf (919188) on Thursday February 26 2009, @09:53AM (#26997951)

      Yeah we could have a platform independent language that compiles efficiently into a type of code easily run by virtual machines.

      Not sure about the name Javascript though, think it sounds a bit complex and we need to distinguish it from the browser only one. Lets just call it Java

      • Re: (Score:3, Insightful)

        by Mr. McGibby (41471)

        You're missing the point.

        Lua isn't built into the browser of almost every computer on the planet.

  • by MobyTurbo (537363) * on Thursday February 26 2009, @09:11AM (#26997329)
    How come it's Windows-only still if the browser is all that matters and the OS isn't, Google?
      • it's faster to develop for a single platform than to use a shotgun approach.

        Yeah, but telling your developers that they can develop for windows only and then porting the application is likely to be a lot slower than writing things portably from day 1.

        An argument to back this assertion up: the sooner you fix a bug, the cheaper it is to fix [this is widely believed]. Every dependence on a particular platform that's not put into a platform abstraction layer is a bug. If you develop for every platform all the time, you'll find and fix those bugs immediately, paying the lowest possibl

  • by Fished (574624) <amphigory@gmail.RASPcom minus berry> on Thursday February 26 2009, @10:33AM (#26998519)

    It seems to me that the browser will not be able to replace the desktop ... or even claim to be an "OS" in anything but the most attenuated sense... until we have the ability to use something other than javascript in a reasonably cross-platform way. Imagine for a second that Windows could only be programmed in Visual Basic, or Linux could only be programmed in C. We'd absolutely hate it, and we'd be right to hate it.

    Now, granted, any given development platform generally displays a preference for a given programming language. If you're going to develop Gnome applications, you're probably going to use C, if Cocoa, then Objective C, etc. But right now the situation in the web space is one of total locking to Javascript, which isn't even all that good of a language.

    What I really want to see is a reasonable degree of cross-platform support for the use of a reasonable variety of object-oriented scripting languages embedded in the browser, as plugins. So I can develop web pages in HTML + Ruby, or HTML + Python, or HTML + Javascript, as is best suited for my application. The hooks are there in the HTML specs to do this, but browser implementations don't seem to have caught up.

    • Re:annoyed (Score:5, Insightful)

      by Stormwatch (703920) <rodrigogirao@@@hotmail...com> on Thursday February 26 2009, @08:58AM (#26997159) Homepage

      Am I the only one annoyed by "Google are..."

      That is UK-English, it seems TechRadar is a British site. I agree, it sounds really strange and illogical if you are used to US-English.

      • Re:annoyed (Score:5, Funny)

        by daybot (911557) * on Thursday February 26 2009, @09:09AM (#26997295)

        it sounds really strange and illogical if you are used to US-English

        Yeah, the normal and logical may seem that way if you're used to something so strange and illogical as US English - putting 'z' in almost every word, and I mean, MM/DD/YYYY? come on!

        Just kidding... we love how you've butchere^H^H^H^H^H^H^H^Hembraced our language :)

        • Re: (Score:3, Funny)

          by Anonymous Coward
          And I'm sure that the germans love how you've butchered theirs!
        • Re:annoyed (Score:5, Funny)

          by fuzzyfuzzyfungus (1223518) on Thursday February 26 2009, @09:20AM (#26997457) Journal
          We embraced during the colonial period. After the revolution we extended(and had Noah Webster ram our extensions through a standards body to give them an air of legitimacy).

          Don't worry, nothing bad could possibly happen next.
        • Re: (Score:3, Interesting)

          by Stormwatch (703920)

          and I mean, MM/DD/YYYY? come on!

          I like how the Japanese do it: year/month/day.

          • Re: (Score:3, Insightful)

            by MrNaz (730548) *

            YES!

            YYYY/MM/DD makes so much more sense, as it means that you get sane sorting when ordering using a computer.

            DD/MM/YYYY results in a mess of dates, whereas YYYY/MM/DD always orders dates in chronological order.

                • Re: (Score:3, Insightful)

                  by MightyYar (622222)

                  Well, mystery solved! I love it when it is that easy :) I guess the American way is slightly lazier... "February second, two-thousand and nine" is 2 fewer words. Is that lazier or more optimized?

          • Re: (Score:3, Insightful)

            ISO standard is YYYY-MM-DD which I use for documents when I need it. Good for sorting.

            • Re:annoyed (Score:5, Funny)

              by m.ducharme (1082683) <`moc.liamg' `ta' `emrahcud.cram'> on Thursday February 26 2009, @09:49AM (#26997853)

              incidentally, you may be unaware of the distinction made in the UK between pants and trousers, i.e. that pants are what one wears under trousers.

              • Re:annoyed (Score:5, Funny)

                by teh kurisu (701097) on Thursday February 26 2009, @10:14AM (#26998251) Homepage

                This is why Superman dresses as he does. He landed in America, and was told to wear his pants on the outside.

              • Re: (Score:3, Funny)

                by coopaq (601975)

                "incidentally, you may be unaware of the distinction made in the UK between pants and trousers, i.e. that pants are what one wears under trousers."

                So what the hell are under-pants in the UK then? Do they go under your pants?

                You guys wear 3 layers of pant?

                Do you wear a pair of pants or more? So confusing.

                All I know is if you wear pants under your trousers and that's all... well then you aren't wearing underwear and that's nasty.

      • Re:annoyed (Score:5, Funny)

        by hahiss (696716) on Thursday February 26 2009, @09:55AM (#26997981) Homepage

        Right. The US-English would render it:

        "Them thar Googles done been fixin' to. . . "

    • I do (Score:3, Insightful)

      by ConanG (699649)

      I use it as my main browser. I've got a portable Firefox and (of course) IE, but I only fire them up when something isn't working right in Chrome. This is happening less and less.

    • by jitterman (987991) on Thursday February 26 2009, @09:54AM (#26997963)
      Call me ignorant, or rash, or just living on the edge, but I actually use it on a daily basis for *almost everything. I haven't installed FF on this (brand new) machine and don't plan on it simply due to its bloat and slowness - things it didn't have when it was introduced.

      Chrome introduced features which IE and FF either have since included as well or are planned for future releases. I am certainly aware that Chrome is quite limited in some areas, but in the end its speed, flexibility, small memory footprint, and physical layout (minimal intrusion into the web page display area) make it my first choice despite its drawbacks. Feel free to correct me where I may be ignorant (seriously, no sarcasm intended).

      *Every now and then I find a web app that's just not well coded (mostly due to funky CSS that's poorly formed) that works or at least displays properly in IE but not Chrome. C'est la vie.
    • by Lord Ender (156273) on Thursday February 26 2009, @01:17PM (#27001061) Homepage

      The combination of your statement and your sig makes it clear that you are one of those people who has to be dragged kicking and screaming into the future. You weren't like that when you were young, were you?

      I think it's pretty clear when he means: the OS is becoming little more than the driver for the dumb-terminal you use to access your web-based applications. Stuff like file system management is pointless if all your data lives server-side in web apps.

      You can go after his terminology in a display of petty pedantry, but it doesn't change the fact that what he is saying is becoming increasingly the way things are. We may not be there yet. We may not ever get there. But that is certainly where the momentum is.