2 ms·
Atom and Slack often get critiqued for their use of an HTML5 stack. I'd also like better performance when it comes to startup time, memory usage and responsiven
by tosh 9y ago
Atom and Slack often get critiqued for their use of an HTML5 stack. I'd also like better performance when it comes to startup time, memory usage and responsiveness regarding interactions (I'm using a 12" Macbook) but the stack is so useful and universal that it is here to stay and worth figuring out how to get to great performance (similar to how Emacs figured out how to work around slow startup).
Are there examples for HTML5 apps that manage to have great performance? Are there inherent limits?
- aczerepinski 9y agoVS Code performs well.
- lucideer 9y agoI'll second this. There's been articles on HN specifically about how slow VS Code is, particularly the one about rendering cursor blinking, and of course anything running on Electron will never compete work the likes of vim, &c. However, as Electron apps go, I've found it noticeably faster and less resource intensive than any others. Slack in particular is comparatively terrible, as was Atom in the past (people have said it's improved but I've not felt the need to try it again recently)
- porkloin 9y agoI've turned my vim into a monstrosity with plugins in the past - believe me, it's possible to make your vim just as laggy :)
- marcelfahle 9y agoDiscord is pretty snappy, even with tons of users..
- moron4hire 9y agoIt's pretty buggy, though. On Windows, at least once a day it resizes down to a window only big enough to hold the X button to close the window. And it drains the hell out of my battery on Android.
- aspencer8111 9y agoCurrently running Slack App, Atom App, and Spotify App on my MBP. According to my system stats, I'm consuming 3GB of RAM across the entire system (OS and all of the above). So what I would like to know is wtf everyone is doing in these apps to create this CRAZY amount of resource hogging they keep bitching about? Or are they rockin chomebooks? Seriously? I want to know where all of this nonsense is coming from?
- daxaxelrod 9y agoFun Fact! The Spotify desktop client is written in C++! https://www.quora.com/What-is-the-technology-behind-the-Spotify-desktop-app https://www.quora.com/What-is-the-technology-behind-the-Spot.... But I agree, Atom and Slack are really useful to if they consume another 250mb of ram because "It's not optimal", let them use it.
- ianhawes 9y agoThe view layer is powered by Chromium Embedded Framework, so it's not entirely C++.
- daxaxelrod 9y agoVery true! I wonder how much more efficient the c++ makes the app in contrast to the node based electron infrastructure
- deleted 9y ago[deleted]
- piva00 9y agoMost of the time Slack is behaving quite well but I've experience it running into 80+% CPU for long periods of time while eating 2-3GiB of RAM, I always forced quit and didn't bother. But yes, sometimes it turns into a resource hog, same with VSCode or Atom, something sometimes makes them feel unresponsive and "laggy".
- lagadu 9y ago
- sokoloff 9y ago> similar to how Emacs figured out how to work around slow startup By dumping binaries, creating emacsclient, but mostly by waiting 25+ years for fast computers w/SSDs to come along? I love emacs, but slow startup was a problem for multiple decades, IMO.
- e40 9y agoThe emacs analogy is a terrible one. I start emacs once a month (or longer). I start slack once a day, sometimes more.
- sudhirj 9y agoIf you look outside first world countries, yes. Check out the progressive web apps talks in Google IO 2017 - most of the examples on stage were indian companies flipkart.com, housing.com and a few others. I work on www.justickets.in myself. We have a huge Android market here, but they're all phones with very low storage and slow 3G connections, so the default way to get an 'app' out is a HTML5 progressive web app. And the companies here work hard to make things run fast and smooth on slow devices.
- jrimbault 9y agoAnecdotal, I remember a few months back someone showed here on HN "skytorrents.in", which I assume was made by an Indian, it was blazzingly fast.
- usegolang 9y agoI'm not sure how effective it is but I always liked the idea of forcing engineers to use those 3g speeds 1 day a week so they are more inclined to support those customers. Iirc FB does this to some degree, but I think they have a different lightweight version of FB intended for those audiences
- k__ 9y agoSounds good, but in my experience 3g also varies by an order of magnitude (5 KB/s - 50 KB/s). When I have 20-50 KB/s stable 3g, browsing the web is a bit slow, but most sites work pretty good. Also messenger aren't a problem. But working below 20 KB/s is a pain.
- ed312 9y agoChrome dev tools has a reasonable connection bandwidth simulator. Is there a good one that also simulates variability / packet loss in addition to bandwidth caps?
- atonse 9y agoYup – I love this idea. I actually occasionally test my single page apps under 3g connections to see how the loading experience works.
- conradk 9y agoI've always found Fastmail's mobile app to be amazingly native-like even though it uses HTML5.
- dzhiurgis 9y agoI honestly don't understand why you need a desktop app to run chat.
- 013a 9y agoPlenty. Discord, VSCode, and MongoBooster are all apps that I feel hit 90% of native performance while still being based on web tech. Hyper terminal is another one which has very specific reproducible performance issues, but overall is pretty great and fast. Its incompetence on behalf of Slack and Github, not the tech itself.