News for hackers. Stuff that matters.
Re:Chrome has transcended version numbers by masklinn on Monday May 23, 2011 @08:11AM (#2575689)
> Somehow, we have to be able to automatically update software while it is running without interrupting the user at all. Not if -- but when -- the infinite version arrives, our users probably won't even know.

For what it's worth, this is already available in Erlang (although it was built in for different reasons, closer to getting the fluidity of web applications updates on just about any server software): two versions of the same code can live in parallel in the VM, and there are procedures for processes to update to "their" new version without having to restart anything (basically, you switch functions mid-flight and the next time an updated function is called the right way, the process just switches to the new code path).

You need follow a few procedures and may have to migrate some states, but by and large it's pretty impressive. And it could certainly be used for client-side software. The sole issue I'd see would be the updating of a main GUI window in-flight (how do you do that without closing and re-opening it?). But I doubt this one changes that much in e.g. chrome these days.

Re:Chrome has transcended version numbers by jerf on Monday May 23, 2011 @12:04PM (#2576371)
I've caught some flack on HN here recently for saying it's past time to move beyond C, but this is a great example from the real world. Yes, you can update C code live with the proper magic invocations, but you have to be a wizard and even then probably still a bit lucky for it all to work. Or you can build an infrastructure that at the most primitive layer contains this ability, and then create systems where the programmer is encouraged to maintain the invariants that permit this update, and it may still not be trivial and still requires thought but no longer requires a wizard, so maybe it will actually happen.

And there are just so many features like this that we need to get all the way down to the OS level before we can fully harness them, and we aren't going to get them in C. We need an upgrade of our fundamental programming primitives.

Re:Chrome has transcended version numbers by jamii on Monday May 23, 2011 @09:00AM (#2575769)
Following ideas from both erlang and android, each gui screen within the application would be attached to a single process. When a new screen is opened the process is killed and a new process starts. If new code has been loaded the new process will switch.
Re:Chrome has transcended version numbers by masklinn on Monday May 23, 2011 @10:14AM (#2575972)
Screenwise is not really a problem, you can just delete and reload the controls the next time the thing becomes visible. To get back to chrome, you could even swap the JS engine and DOM: leave the old one running in existing tabs, switch new or reloaded tabs to the new one, that's pretty much seamless.

The issue I have is for the "static" chrome around the mobile parts: title bar, URL bar, that kind of stuff. There isn't much opportunity to switch that to a new process, I think. Especially if there are changes to make to the UI.

Re:Chrome has transcended version numbers by bonzoesc on Monday May 23, 2011 @12:56PM (#2576601)
Fortunately, those don't actually need to be changed very often (no matter what the Chrome team says). As long as the rendering, JavaScript, and other parts that touch untrusted data stay up to date, you're probably fine with a URL bar that hasn't had today's unfashionable components removed.
Re:Chrome has transcended version numbers by masklinn on Monday May 23, 2011 @02:08PM (#2576899)
I did note that in my original comment, but you need to note the following: if the software never needs to be restarted, you will find somebody who never restarts it. The result is that sections of the code base may get out of sync, resulting in nonsensical behavior. 6 months from now, somebody will push code which does not work anymore with right now's awesomebar (or whatever), and the results may be minor or may lead to significant loss of state and information.
Re:Chrome has transcended version numbers by abraham on Monday May 23, 2011 @01:28PM (#2576726)
Chrome already automatically adds/removes browserAction buttons for syncing on the fly. I don't see any reason Chrome couldn't wait to be inactive for 5 minutes and just change it. Most people would never notice the faint flicker.