Live data from Hacker News

Improving startup time in Atom with V8 snapshots

blog.atom.io

111–120 of 173 posts

Re: Improving startup time in Atom with V8 snapshots

#111
post #53
post #43

Earlier quoted context omitted.

If this was truly that simple, don't you think someone would have already done it? Furthermore, is there even an actively maintained, open source, cross platform, development-focused text editor with native UI components?

IntelliJ does a good job of it without resorting to Electron.

No, it just resorts to the freaking JVM, which is not any more lightweight or native than Electron apps.

Re: Improving startup time in Atom with V8 snapshots

#112

Earlier quoted context omitted.

Using web technology was less about making development easier on us , because in many ways it made it harder. Web technology is about enabling extension authors to use a powerful and familiar technology to achieve their goals.

Could you give some examples of extensions that benefit from Atom being built on Electron instead of just embedding a JavaScript or Python interpreter?

An embedded scripting language is only part of the story. Think about all of the APIs the browser exposes. For starters there's the DOM... there's no UI toolkit more that's more universally understood. Then there's CSS. Look how many Atom themes there are out there because people can tweak styling with a system they already understand. Then there's the long list of other standardized APIs. WebRTC, fetch, WebGL. Chromium is a very full-featured cross-platform environment that offers us more than embedding a scripting language would. I'm not denying it doesn't come with some negative trade-offs, but I do think those will diminish as Chrome improves and we improve our usage of Chrome... we're also dropping critical components to C++, which Electron makes it easy to do, so over time Atom will evolve into an increasingly "native" application with a cross-platform standards-based interface layer. The overhead of that layer will always be there though.

Re: Improving startup time in Atom with V8 snapshots

#113

I'm way more worried about memory issues while running. Atom take up 1 gig+ with very little open. It pushes all my other tools out of RAM and into swap. Switching to the browser to see documentation takes a few seconds if I'm lucky. Compiling a few more seconds to page in. Ssh a few more. Everything on my laptop slows to a crawl as they fight for RAM with Atom taking up the way more than it should. I know the answer…

> I'm way more worried about memory issues while running. Same here. Start-up time is important when the average user is hitting a web app or application but for developers? We open something once and then keep it open pretty much all day. Unless I'm an edge case I'd suspect start-up time is mostly meaningless to developers with long running developer tools. At the same time we always have tons of tools open at once…

If Atom ran like vim, I'd take 60 seconds+ of startup time. If it ran like ed, maybe even an hour.

I probably spend more time hitting backspace when typing 'atom' than they saved in startup time.

Re: Improving startup time in Atom with V8 snapshots

#114
post #96

I'm way more worried about memory issues while running. Atom take up 1 gig+ with very little open. It pushes all my other tools out of RAM and into swap. Switching to the browser to see documentation takes a few seconds if I'm lucky. Compiling a few more seconds to page in. Ssh a few more. Everything on my laptop slows to a crawl as they fight for RAM with Atom taking up the way more than it should. I know the answer…

> For some reason, my machine seems to be getting slower and slower no matter how much I upgrade. I've been feeling this way for years, and I've mostly ascribed it to my faulty perception. I figured that if things simply aren't getting faster (i.e., they're not changing at all), I'm probably just imagining them getting slower. But then I start wondering why aren't things getting faster...

amdahl's law

Re: Improving startup time in Atom with V8 snapshots

#115
post #96

I'm way more worried about memory issues while running. Atom take up 1 gig+ with very little open. It pushes all my other tools out of RAM and into swap. Switching to the browser to see documentation takes a few seconds if I'm lucky. Compiling a few more seconds to page in. Ssh a few more. Everything on my laptop slows to a crawl as they fight for RAM with Atom taking up the way more than it should. I know the answer…

> For some reason, my machine seems to be getting slower and slower no matter how much I upgrade. I've been feeling this way for years, and I've mostly ascribed it to my faulty perception. I figured that if things simply aren't getting faster (i.e., they're not changing at all), I'm probably just imagining them getting slower. But then I start wondering why aren't things getting faster...

[deleted]

Re: Improving startup time in Atom with V8 snapshots

#117

I love it when new problems can be solved in old ways. In physics we say there aren't 10,000 problems there are just 10,000 manifestations of 5. And it really seems like that's true here. Maybe we should stop laying off people for being old lol.

The industry is doing fine without the old workers with outdated skillsets. Correctness does not matter as much as velocity to release.

Re: Improving startup time in Atom with V8 snapshots

#119
post #35

Earlier quoted context omitted.

Must every thread about VSCode and Atom start the same way? It's a trade off: performance for a cross platform JavaScript app development. If that is a tradeoff you don't have to make, don't do it. Atom and VSCode have made that tradeoff. I don't know what rehashing this can possibly accomplish.

> Must every thread about VSCode and Atom start the same way If many people believe this is the case, why not? All articles get some common types of responses based on the topic, this is just one topic/response combo that you happen to disagree with. > It's a trade off: performance for a cross platform JavaScript app development. It's an unnecessary tradeoff. If a single developer can create ST from scratch for Windo…

> If a single developer can create ST from scratch for Windows, OS X and Linux,

One of the reasons why some people are switching from ST to Atom/VSCode is the former's tortured development schedule, which has seen months or years go by without an update. Contrast VSC, which reliably delivers a heap of improvements every month. JavaScript is probably responsible for a big portion of this. Again, it's a tradeoff.

> then surely GitHub or Microsoft (for VSCode) can create a cross platform native set of UI components in C or C++,

Maybe they can. Or maybe they can't, and if they tried then they'd have the same slow pace as ST. You don't know.

Re: Improving startup time in Atom with V8 snapshots

#120
post #84

Great article. Avid ST3 user here, but glad to hear about the improvements. For anyone curious, I made a quick gif comparing startup times on my machine for Sublime Text 3 (Build 3129), Atom (1.16.0), Atom Beta (1.17.0-beta2, the one mentioned here), VSCode (1.11.2), and VSCode Insiders (1.12) https://media.giphy.com/media/3ohzdTHkfj5ISAAPq8/source.gif I should mention - my ST3 is heavily customized (28 plugins), whi…

Nice comparison! Would be even better to see them all side-by-side.
Post reply on HN