Apologies if this comes off as trolling. I really want it to be snappy so I can switch over.
Apologies if this comes off as trolling. I really want it to be snappy so I can switch over.
I have nothing to really back this up, but it looks like they are in the "death by 1000 cuts" mode of trying to speed things up. Little improvements here or there, little speedups across the board, refactoring bits of code to skip processes that aren't necessary when possible. Those kinds of things. If you are waiting for a big event like "hey we did X and now it's 5x faster across the board" i don't think you are going to see it any time soon (and if it does happen, you can be sure it'll be in the title!).
That being said, this release does bump the node version up, and the npm version. A lot of the startup slowness is from finding and loading node modules (at least from the bit of profiling I did months ago), and NPM3's flatter structure should allow maximum "reuse" of modules meaning less time reparsing identical modules.
I don't know if this will have any actual visible changes, but again, death by 1000 cuts.
I'm actually trying VisualStudio Code now, mostly because Atom handles indentation terribly. Trying to copy and paste and preserve indentation is a lost cause as of now.
I had numerous instances where Atom would crash at inopportune times on my 2015 16GB MBP.
I Really hope these core issues have been fixed. Seems like a great editor and I’d love to be able to give it another shot.
I've thought about using underlying tech for a desktop app. I don't know how easy it will be to sell given that it would drain battery at probably 1.5 the rate of a normal Java or QT app.
Also, I'm not sure why Slack needs ~250MB of RAM. Seems a bit extreme for a chat app.
Something is wrong when a chat app takes more RAM than my Vagrant VM running an entire OS!
I think that's more than reasonable, and trying to get that number down to anything lower would be such a waste of resources for almost no payoff (what percentage of users do you think will have their lives measurably improved by having slack use 100MB less RAM?)
Oh, and mine is only using 100MB and has been running for a few days at least.
Not of what you wrote is even remotely difficult to be achieved, even in a 50MB-using native app.
In fact most of those things come for free with the OS and relevant native libs are already loaded into memory:
"renders every known written language under the sun side-by-side in multiple fonts", "supports a stupid number of emoji" (the OS font-renderer can give all that to all apps for nearly free)
"can display 4k assets", "has an inline image viewer" (I can do that in a trivial app that's 1MB or less).
"includes syntax highlighting for a bunch of languages" ...
Really, none of these features, and neither all of them combined, warrant 250mb of RAM.
If slack had taken the time to devote another team to developing another application (because they still need to support the web), possibly multiple applications for each platform, would they be where they are today?
Would that time and money pay off in any way? I really believe it wouldn't. To save a few hundred mb of RAM, you are looking at triple or quadruple your development and maintenance costs, not to mention making it that much more costly to add new features. That doesn't seem like a good payoff.
Obviously in places where it did make a difference (mobile platforms) they went completely native, and it shows in both the positive and the negative. Their mobile apps look and feel native, and work quite well, but they lag behind the "web based" clients in features. (most notably the new voice chat options are not in the mobile versions)
In a perfect world every application would be custom developed for each and every platform, and no expense would be paid to ensure that there are 0 wasted resources, but we are far from a perfect world.
Having a slack app that runs on any desktop platform, feels the same between all of them, and allows Slack as a company to exist is a win in my book, even if it uses a few hundred mb more than it should (which again, for me it only uses 100mb of ram, that's 1/320th of my total ram on this machine, and only like 40mb more than the tab that i'm writing this comment on is taking).
I don't think writing native apps is so much more difficult that a web app like Slack. If anything, it's probably the opposite.
There are cross-platform (native) apps with custom UIs, like DAWs and NLEs that are an order of magnitude more complex in both their UI and their logic code, and yet are done with teams and by companies that have an order of magnitude less funding than a company like Slack.
Plus then there is ongoing maintence costs, probably a ton more documentation costs (unless they all look and act the same), more coordination needed with new features to ensure parity, and more bugs and security issue surface area.
That's not a trade-off I'd want to make unless it was required for some other reasons.
However, both are pretty successful services, and since the parent comment expressed concern if an Electron app "would sell", these are examples that such apps are comercially viable (even with all the problems they have).
At the very least, one can use them to go to market faster and/or validate an idea. I do hope that Electron (or other similar techs) apps reach a point where they are viable long-term in terms of performance and battery-efficiency. I also dislike slow, memory-hungry and battery-draining apps as much as pretty much anyone, but one should not dismiss Electron as useless.
I know there have been several (browser based programming editors) over the years, but all have been equally crappy and slow on medium to large files, and not that better at normal workflows either.
I mean, there's the odd one here or there, but compared to the last time I was in Kansas, they might as well not exist.
It still takes a while to launch, but that isn't as important to me as performance once it is running.
My peeve is with font rendering. The same fonts look better in pycharm. I hope they improve this.
Yay, we can open a file!