News for hackers. Stuff that matters.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by onion2k on Thursday March 23, 2017 @11:41AM (#13940735)
Google Docs takes a good 2-3 seconds to spin up a UI on my i7.

I doubt much of that time is spent building the DOM tree for the UI. Google Docs does a lot more than a simple text editing widget - there's a networked file system, a multi-user collaboration engine, a realtime notification system, etc that all get initialised. Instantiating all that over a network in 2-3 seconds is really fast.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by dheera on Thursday March 23, 2017 @12:11PM (#13941083)
> there's a networked file system > a multi-user collaboration engine > a realtime notification system

None of these apply to a new, unshared document. Those subsystems can be loaded slowly over the following 10 seconds, that's fine. Is it such a hard thing to ask to make the UI responsive within 0.1 s? Like, be able to type stuff and have it appear on the screen without delay?

It's so bad that I often use the basic HTML version of Gmail because it loads in less than 1 second. The normal "AJAX" version loads in 3-4 seconds. And I have a 200 megabit connection. Who wins at getting me my information faster?

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by mercer on Thursday March 23, 2017 @12:22PM (#13941203)
Over the past year or two Gmail has gotten really slow. I'm not sure what happened, because there are no new features I can think of that would cause this.

It's gotten so bad that I'm considering moving to another provider or using a good old email app again.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by fetbaffe on Thursday March 23, 2017 @05:50PM (#13944688)
Outlook.com as well. When it launched, it was blazingly fast. Now it comes with a loading screen and really laggy.

Bloated single page apps is the curse of the modern web.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by ashark on Thursday March 23, 2017 @11:02PM (#13946266)
Use the basic HTML version. It's worth the loss of a couple features from regular gmail or inbox for a much snappier UI (even with it fetching full new pages from the server all the time!)
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by mercer on Friday March 24, 2017 @03:09AM (#13947222)
I like my vim-style keyboard shortcuts thought :-/.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by criddell on Thursday March 23, 2017 @01:06PM (#13941686)
I've noticed that too! Do you use Inbox? I do and I was thinking about going back to the classic interface to see if it's faster.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by dheera on Thursday March 23, 2017 @01:47PM (#13942151)
I tried Inbox. I thought for a while that Gmail stars == Inbox pins. When I found out that I was missing out on emails I had previously starred, I quit and went back to Gmail.

Also, Inbox did not show me full e-mails on my Android Wear smartwatch while Gmail did. Also, I couldn't figure out how to set up the filters I needed in Inbox.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by mercer on Thursday March 23, 2017 @01:52PM (#13942207)
Oh, I tried Inbox but Gmail was nice and fast compared to that pos.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by merrvk on Thursday March 23, 2017 @04:06PM (#13943736)
I would recommend Fastmail. Moved over for similar reasons and never looked back
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by smitherfield on Thursday March 23, 2017 @02:38PM (#13942745)
I imagine it would be hard for Google to run integration tests if the whole app took 15 seconds to load instead of 3. Not to mention that if there's an error loading part of it, people will complain that they wrote a document but it wasn't saved/shared like they expected.

Google Docs is truly amazing technology for the browser. It's just bringing its model to "native" apps that I have very mixed feelings about.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by logicallee on Thursday March 23, 2017 @02:07PM (#13942368)
>Instantiating all that over a network in 2-3 seconds is really fast.

I see. In your opinion, do you think Chrome would be even faster if it managed to spin up an entire sandboxed docker container (in case any web site wanted one, to do whatever it wants with), as well as another one with a full Postgresql install (again in case any web site wanted one, to do whatever it wanted with, oh, and also for Chrome's own bookmarks and stuff), yet still launched within a blazing 14 seconds?

Would that be even faster, considering?

Because from where I'm standing, that wuold be 5-7 times slower.

And 3 seconds to start is 2.95 seconds too slow for me to start typing into a URL box, which could appear within 50 ms if it was done right instead of done wrong.

Chrome does things wrong instead of doing things right, and it really is that simple. I'm a human, not a network share. I use software so I can interact with it. It should do the rest on it's own time and as needed.

Loading a bunch of stuff "quickly" does not equal being quick. Google should know better.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by cr0sh on Thursday March 23, 2017 @11:49AM (#13940822)
...a whole 2-3 seconds!

Sometimes I think that comments like these arise out of not having experienced text-only rendering at 300 baud...

I know that's a generalization, and most likely unfair - but damn, today's phones, to this old man, are pocket super-computers (for that matter from my vantage point, an Arduino is a wonder, and a RasPi is utterly amazing)!

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by pyre on Thursday March 23, 2017 @12:02PM (#13940974)
> Sometimes I think that comments like these arise out of not having experienced text-only rendering at 300 baud...

At the same time, we are now living in the future. With "pocket super-computers" that are more powerful than the Crays that existed when you were waiting on 300 baud text rendering, yet we are using 13% of that power just to render a blinking cursor? Does that not seem like we haven't made as much progress as we should have?

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by TeMPOraL on Thursday March 23, 2017 @12:03PM (#13940989)
That's totally unfair. You should compare it to startup time of Word from, I don't know, 10 - 20 years ago. Around the same time (if not less), and Google Docs still can't match the features of old Words.

The point being, for the past decade or two, we've been burning all hardware performance improvements on things that are neither visible to user, nor enable them to do more with their computer. Surely, there must be ways of spending those CPU cycles and RAM bytes on things that are actually useful and enable people to do more / better / faster work.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by ballenf on Thursday March 23, 2017 @12:10PM (#13941072)
On a per-application basis, you are probably correct. But if the additionally abstraction layers allow there to be greater diversity of applications and more tools for more niche cases because development is easier and/or faster, then that is directly immediately beneficial to the end user. Not to mention faster design iteration, implementation of new features etc.
Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by dom0 on Thursday March 23, 2017 @02:25PM (#13942595)
> On a per-application basis, you are probably correct. But if the additionally abstraction layers allow ...

Windows 7 boots in approx. 5 seconds to the desktop (if no password is set), and stuff like Word or Visio starts instantaneously. Web applications on the very same computer are a whole different story.

Let's just acknowledge that SaaS is not and never was about any kind of benefits for the user or customer, but just about either centralising resources and services back to the vendor's control and/or increasing money extraction.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by sqeaky on Thursday March 23, 2017 @03:56PM (#13943626)
I have never seen word open instantly. When I do it there is always a second or two for teh obnoxious splash screen, then often 10 to 15 seconds waiting for it to do whatever. Notepad++, yeah, that opens nearly instantly.

I mostly use Ubuntu and there Libreoffice still has a stupid splash screen. After that though the amount of time is too small for me to count.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by sedachv on Thursday March 23, 2017 @06:03PM (#13944771)
> But if the additionally abstraction layers allow there to be greater diversity of applications and more tools for more niche cases because development is easier and/or faster

Please try to find a single example where this is true. Niche cases and greater diversity all come from a lot of work keeping runtimes up to date and APIs backward-compatible. This is only because of Free Software. Trying to credit this to "abstraction layers" is insulting to all of the programmers working on Free Software libraries, compilers, runtimes and operating systems.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by ballenf on Thursday March 23, 2017 @06:42PM (#13945014)
What I'm suggesting is that, e.g., there are more Slack, Atom, VS Code, (and those are just Electron apps) etc. and/or those apps have more features because of the speed of development and iteration afforded by these inefficient abstraction layers.

So, I can't give a specific example but am instead pointing at the diverse ecosystem of applications and rich functionality. It's logically impossible for me to prove that these apps wouldn't exist without inefficient abstraction layers. It's my supposition, and the developers who write electron apps would probably agree.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by sedachv on Thursday March 23, 2017 @08:38PM (#13945631)
> It's logically impossible for me to prove that these apps wouldn't exist without inefficient abstraction layers.

The literally millions of applications not written on top of the specific crapware you list are an existence proof. This was the case even with assembly/Pascal/BASIC applications on microcomputers in the 1980s. Your whole argument is that somehow the web stack is easier to write applications on top of because <insert nonsense adjectives like "diverse" and "rich">. To go back to the Pascal example, a lot of people who program in Delphi strongly disagree even today, and Delphi has been around since 1995. What makes you think that the web stack has a higher speed of development than other software tools? Why do you think that high-speed development depends on inefficient abstractions? That is all total nonsense. There are a lot of problems with the web stack. You need to stop making up bullshit rationalizations and learn about other approaches to software development.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by ballenf on Saturday March 25, 2017 @12:08AM (#13954055)
Very good questions that I can't answer. And it's not my 'bullshit rationalization' -- I'm not the one who decided to build all these products on this "crapware" stack. I'm just suggesting that this stack was chosen for some (hopefully) logical reason.

If speed of development isn't the reason, then what is the attraction? I'm serious and curious. I looked through your profile and you clearly know your shit. Are we just in a period of a bad stack being popular and used despite there being other, better options?

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by Pharylon on Thursday March 23, 2017 @12:15PM (#13941133)
Why should he compare it to Word? Was it a cloud-based product that synced all files between multiple machines of radically different form-factors from PCs to phones? No?

Google Docs uses the Internet, so did anything on an old modem. Word didn't (especially 20 years ago).

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by throwaway2048 on Thursday March 23, 2017 @02:25PM (#13942594)
So word processors have to be slow to use the network?

I'm not sure your arguement makes any sense.

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by eltoozero on Thursday March 23, 2017 @03:11PM (#13943127)
I can't remember the stand-up routine, but the punchline applies:

"10secs! I was supposed to be at work 15 seconds ago!"

Re:VS Code uses 13% CPU when idle due to blinking cursor ren... by nissimk on Thursday March 23, 2017 @05:29PM (#13944506)