r/programming • • Feb 06 '19

Visual Studio Code: January 2019 (version 1.31)

https://code.visualstudio.com/updates/v1_31
790 Upvotes

340 comments sorted by

View all comments

Show parent comments

13

u/phire Feb 07 '19

If I was Microsoft, I'd be focusing on minimising the amount of time the restart takes during an update. Do as much as possible in the background while the computer is running, then just swap all the files on the reboot. Should only take a few seconds.

Sure, having to restart is annoying. But what really pisses people of are restarts that take 10-30min.

25

u/IceSentry Feb 07 '19

That's pretty much what they are already doing

5

u/iphone6sthrowaway Feb 07 '19

While Linux sytems tend to be more lightweight (or less featureful, if you prefer) than Windows, upgrades take way less time to install than on Windows and the time to reboot is the same as any other reboot. The downside is that a few programs don't handle the underlying files being replaced on-the-fly and may break/crash.

I think that NixOS (an 'unusual' Linux distro) has the most futuristic update system I've seen so far. It can save multiple system configurations and almost instantaneously swap them either live or in a reboot, so that e.g. you can launch an update, keep working for however long you want without anything breaking, then when you reboot it will load the updated system without any extra delay. It can also load an old system configuration ('rollback' the update) in seconds as well.

4

u/IceSentry Feb 08 '19

As was somewhat explained previously, windows takes longer to reboot after an update because it needs to make changes to files that were locked while the computer was running. This is mostly for legacy/security reasons as far as I understand. Linux reboots faster because it doesn't need to do anything special while rebooting.

2

u/vetinari Feb 07 '19

Fedora Atomic / Fedora Silberblue with their ostree can also do that; with the upside, that you don't have weird paths, or have to recompile the world when something at the root of dependency tree changes.

2

u/clgoh Feb 07 '19

That's pretty much how Chrome OS works.

2

u/cat_in_the_wall Feb 08 '19

chrome os is a Linux

4

u/Schmittfried Feb 07 '19

I slightly disagree. Yes, of course 10-30min restarts are really off-putting (I'd say they are quite unacceptable when you are currently doing important work), but any kind of forced disruption is already annoying in and of itself, no matter the duration. And it doesn't exactly help that Windows does a clean restart so you have to reopen all your apps afterwards. Even on macOS I find restarts annoying, but at least I will be (almost) exactly where I left off.

1

u/jl2352 Feb 07 '19

They do that already. My PC does a full restart in about 10 seconds.

4

u/elint Feb 07 '19

Not for the restart after an update.