News for hackers. Stuff that matters.
Re:Electron 9.0 by fermienrico on Monday May 18, 2020 @09:15PM (#23230297)
I can instantly tell, not by the looks or aesthetics, but by the way an Electron app behaves that it's not a native app. It has got that "browser"-like feel to it. VSCode/Slack/etc have a different "feel" to the UI vs. say Mail/Messages/Photos app. Not sure how to describe it. It is just the way it reacts and responds. Does anyone else experience the same?

If there was a A/B test, I am pretty sure I can nail almost 100% of the Electron-based apps. Same thing with MacOS vs Windows apps - Windows is a lot "snappy" and MacOS is very "rounded and smooth" when it comes to the UI feel (not looks).

For those curious about why we describe non-visual things in terms of visual metaphors (sharp, smooth, etc) is because of adjacency of brain structures and cross-wiring between them . It is called the Bouba/Kiki effect, "Bouba" is round shape, and "Kiki" is a sharp shape, in almost every culture and it's universal: https://en.wikipedia.org/wiki/Bouba/kiki_effect

Edit: It feels like it is impossible to talk about opinions without getting shafted by the "Electron lovers/haters" crowd. Wtf. I am not saying one is better than the other. Even if I did, why can't we talk about it if it is substantiated? A lot of this stuff is subjective and experiential.

Edit2: Stop upvoting you people! There is nothing to see here and I don't know anything about the original topic, i.e. 9.0 release. Dump this thread please.

Re:Electron 9.0 by spankalee on Monday May 18, 2020 @09:54PM (#23230548)
> why can't we talk about it if it is substantiated?

Because we don't need every bit of news about Electron to turn into a thread of people saying, yet again, "I don't like them compared to native apps".

We know already, and it's not relevant to the article. If the article was opinion or research on the differences between Electron and native apps, or suitability of Electron for certain use cases, etc., then your complaint would be relevant.

But your comment is not relevant - it has almost nothing to do with the contents of the article.

Re:Electron 9.0 by thomasfedb on Monday May 18, 2020 @10:03PM (#23230599)
This. I almost didn't click to read the comments simply because I knew that it would be the same old religious argument. I hoped I was wrong, but wasn't.

Any half-decent dev is aware that VSCode would be slightly better if it was a native app. Any half-decent dev is also aware that doing so with cross-platform support would be a humongous PITA.

Re:Electron 9.0 by bootlooped on Monday May 18, 2020 @10:37PM (#23230788)
The biggest magnet for this phenomenon on Hacker News is Amazon. Every Amazon article will undoubtedly have at least one comment complaining about counterfeits.
Re:Electron 9.0 by saagarjha on Monday May 18, 2020 @10:42PM (#23230818)
It'll show up everywhere. Apple articles will get something about MacBook keyboards (perhaps a bit less now that they've "fixed" it), Microsoft doing anything with open source will get "EEE", Google will be "Google needs better support", Facebook is "why would you ever use this privacy-violating democracy-destroying nightmare". I haven't even gotten into non-company topics yet.
Re:Electron 9.0 by fermienrico on Monday May 18, 2020 @10:08PM (#23230635)
You're right about the relevancy. Nothing to do with the 9.0 release. I had an itch that I asked and now its blowing up. I can't delete my comment now.
[dead]
Re:Electron 9.0 by dang on Tuesday May 19, 2020 @05:39AM (#23233019)
Could you please stop posting unsubstantive and/or flamebait comments to HN? You've been doing it a lot lately, and it's against the site rules: https://news.ycombinator.com/newsguidelines.html.
Re:Electron 9.0 by fermienrico on Monday May 18, 2020 @10:51PM (#23230860)
I hope you're not saying I am trolling because I have no such malicious intentions. The aftermath is troublesome though, I need to get off of HN.
Re:Electron 9.0 by tomc1985 on Monday May 18, 2020 @10:02PM (#23230597)
Yes we do. Maybe if we annoy Electron devs (and their fans) enough the framework will get its act together
Re:Electron 9.0 by orlandoco on Monday May 18, 2020 @09:48PM (#23230509)
I think that the problem it's not the "Electron lovers/haters", the problem it's that the post it's above the 9th release, you expect to see discussion regarding the release, not above that non-native apps feels round or sharp, that's matter of preference, and everyone here knows about the resource hungry of Electron
Re:Electron 9.0 by thefounder on Monday May 18, 2020 @09:32PM (#23230409)
VS Code looks/behaves quite "native" to me...You can have success if you choose Electron. Many projects proved. The tech doesn't seem that important. Now go build something great and people won't unpack it to see if it's electron or native. As always the execution is more important(and the project/idea itself).
Re:Electron 9.0 by rubber_duck on Monday May 18, 2020 @09:28PM (#23230387)
Meh - I used IntelliJ IDEA, Visual Studio and Visual Studio Code on a daily basis and VSCode is the most responsive environment by far - both in terms of UI responsiveness and operation speed. Now you can argue it's not as fully featured as the mentioned IDEs but it's obviously not just about native vs electron, and electron can provide a good enough experience.
Re:Electron 9.0 by gruez on Monday May 18, 2020 @10:30PM (#23230743)
Your anecdotes seem to be directly contradicted by hard data. IDEA with zero latency typing[1] has an order of magnitude lower latency than vscode[2]

[1] https://pavelfatin.com/typing-with-pleasure/

[2] https://github.com/Microsoft/vscode/issues/27378

Re:Electron 9.0 by rubber_duck on Tuesday May 19, 2020 @01:16AM (#23231468)
The performance I'm talking about is stuff like code analysis chugging and stalling the editor so I don't understand how your link is contradicting anything from my post.

Lint/hints taking forever to update after code editing, autocomplete popup takes a second to show, etc. This depends on codebase naturally but in my experience for the cases where VS Code works well (mostly typescript) on the same codebase and same PC it's much more responsive than IDEA tools or Visual Studio (and I'm running this on a i9 MBP with 32GB ram so not a weak HW thing).

I type on a 60hz monitor and I'm not particularly sensitive to that kind of latency (this is where I consider VS Code good enough)

Re:Electron 9.0 by chillee on Monday May 18, 2020 @10:43PM (#23230832)
Latency of the typing is not the same thing as general UI responsiveness.
Re:Electron 9.0 by aPoCoMiLogin on Tuesday May 19, 2020 @05:20AM (#23232905)
The zero latency sounds cool, but there are other issues with the IDE on OSX. There is issue [1] how the UI is repainted on any interaction with the IDE [2]

[1] - https://youtrack.jetbrains.com/issue/JBR-526

[2] - https://photos.app.goo.gl/UmZ8GiVmrGYBbzyV9

Re:Electron 9.0 by veidr on Tuesday May 19, 2020 @04:03AM (#23232454)
That is like comparing cars based on the latency of the door unlock button.

I mean sure, faster is better, but door unlock speed is probably not the problem that makes people think a car is “slow”.

Re:Electron 9.0 by mekster on Wednesday May 20, 2020 @03:12PM (#23250579)
Definitely VS code feels so much more responsive than IntelliJ.

If the feature becomes on par with IntelliJ, everyone would jump ship. But not today.

Re:Electron 9.0 by fermienrico on Monday May 18, 2020 @09:31PM (#23230406)
Is JetBrain stack native? I don't think it is.
Re:Electron 9.0 by jvolkman on Monday May 18, 2020 @09:40PM (#23230469)
No, it's based on Java's Swing.
Re:Electron 9.0 by rubber_duck on Monday May 18, 2020 @09:42PM (#23230479)
Visual Studio is, JetBrains is JVM - but still closer to native than DOM.
Re:Electron 9.0 by Avi-D-coder on Monday May 18, 2020 @10:02PM (#23230595)
How is Swing closer to native than DOM?
Re:Electron 9.0 by rubber_duck on Tuesday May 19, 2020 @01:21AM (#23231496)
You aren't sandboxed - you can reach out to native API/code if you hit some limits, you have threads, etc.
Re:Electron 9.0 by tomc1985 on Monday May 18, 2020 @10:04PM (#23230611)
For one, Swing isn't build on top of technologies that specialize in displaying interactive documents
Re:Electron 9.0 by Avi-D-coder on Tuesday May 19, 2020 @12:08AM (#23231190)
Intuitively it it feels like that should make swing faster, but experientially swing feels heavy and slow.

Is swing poorly optimized, is it due to being in Java?

I'm not a UI dev and have not thought about it much.

Re:Electron 9.0 by tomc1985 on Tuesday May 19, 2020 @01:15AM (#23231462)
I'd agree that Swing feels heavy... but Electron feels an order of magnitude heavier.

Though, when done right, it feels fairly close to native. I earn my pay working with IDEA and if you turn off the plugins you don't need its actually quite snappy where you would reasonably expect it to be. I would bet it takes far less optimization to get there than an equivalent Electron application

Re:Electron 9.0 by Iwan-Zotow on Monday May 18, 2020 @09:37PM (#23230443)
Java/Kotlin mix, I believe
Re:Electron 9.0 by fermienrico on Monday May 18, 2020 @09:39PM (#23230459)
That's another thing, Java apps just feel heavy. Like its got a couple of kilos of lead attached to it. Ever used Eclipse IDE? Holycrap.

Also, Eclipse and Jet Brains software feel more similar to each other and now that you mentioned Java, that makes sense.

Re:Electron 9.0 by meddlepal on Monday May 18, 2020 @09:44PM (#23230486)
Have you actually ever used IntelliJ? It doesn't feel "heavy" compared to say Visual Studio (the real one, not Code).
Re:Electron 9.0 by TylerE on Monday May 18, 2020 @10:21PM (#23230688)
I have used IntelliJ for years. I have found nothing I prefer to it. It is absolutely, beyond a shadow of a doubt, heavier than depleted uranium.
Re:Electron 9.0 by tomc1985 on Monday May 18, 2020 @10:03PM (#23230604)
VS on small projects feels pretty light. It's only on the larger projects and maybe Resharper in the mix that it becomes difficult
Re:Electron 9.0 by fermienrico on Monday May 18, 2020 @09:48PM (#23230515)
I haven't used IntelliJ per se but I've used CLion which is similar sofware from Jet Brains. To me, both feel super heavy.
Re:Electron 9.0 by TylerE on Monday May 18, 2020 @11:28PM (#23231039)
It's not similar, it's the exact same code, just with features turned off. If I open a C project in IntelliJ it's literally the CLion plug-in.
Re:Electron 9.0 by new_realist on Monday May 18, 2020 @10:03PM (#23230601)
They’ve piled everything on the UI thread like a freshman, now they are paying the price.
Re:Electron 9.0 by cageface on Monday May 18, 2020 @09:20PM (#23230334)
Matching native UI with non-native toolkits is extremely difficult. But the success of so many electron apps suggests that in many cases this doesn't matter that much.
Re:Electron 9.0 by fermienrico on Monday May 18, 2020 @09:33PM (#23230415)
I don't know - success of x and some property of x can be orthogonal. It probably is orthogonal in the case of electron apps. The main reason for their popularity is because they are easy to develop in cross-platform way. Doesn't mean that "x property doesn't matter".
Re:Electron 9.0 by cageface on Monday May 18, 2020 @10:12PM (#23230657)
Users choose to use them anyway. So obviously being platform native matters less than other considerations.
Re:Electron 9.0 by stepanhruda on Monday May 18, 2020 @09:23PM (#23230355)
I think it’s because the DOM just isn’t as responsive as native components - interacting with anything in a browser or in an electron app has that subtle latency that doesn’t make it feel as good. Seems that this could go away with react native desktop.
Re:Electron 9.0 by saagarjha on Monday May 18, 2020 @10:34PM (#23230764)
Not only is not as responsive, but it doesn't respond "correctly" either.
Re:Electron 9.0 by yokohummer7 on Monday May 18, 2020 @09:56PM (#23230558)
> Does anyone else experience the same?

The first time I experienced such a feeling was when Visual Studio .NET came out. Compared to the previous version, Visual Studio 6, the dialogs and wizards in VS.NET gave me a "web-like" feeling. I guess it was one of the first attemps to use the web technologies to make a desktop app. Along with the Active Desktop feature, they were truly ahead of time.

However, that doesn't mean I loved them. VS.NET was slow as hell and I believe it was one of the reasons why VS6 lasted for so long.

Re:Electron 9.0 by orange8 on Monday May 18, 2020 @09:54PM (#23230545)
> but by the way an Electron app behaves that it's not a native app. It has got that "browser"-like feel to it.

Aren't browsers native apps? Edit: Chrome on windows is just as native an app as MS Word on windows, so that "feel" may have nothing to do with the tech it was built on, but a native vs browser mindset that even blinds you to the fact that all mainstream browsers are actually very native apps, regardless of the "feeling" they give you.

Re:Electron 9.0 by taliesinb on Monday May 18, 2020 @09:46PM (#23230499)
Yup. I'm just shocked that https://github.com/microsoft/vscode/issues/76594#issuecommen... has been open for more than year now. Two finger scroll that lags for up to 1 second! Imagine the uproar if Apple introduced this bug into XCode and then ignored the ticket for an entire year.
Re:Electron 9.0 by tln on Monday May 18, 2020 @09:55PM (#23230549)
Are you under the impression that Apple diligently replies to bug reports or that XCode is not buggy?
Re:Electron 9.0 by XCSme on Monday May 18, 2020 @10:26PM (#23230720)
I don't know, for example for me VSCode feels 1000x faster than Photoshop, which is a native app. Photoshop takes a long time to open, breaks the "Windows" keyboard shorcut, is basically slow in general. VSCode has a fast start-up time and everything in it feels responsive. I see a lot of comments from Apple users, maybe Electron works better on Windows than on Mac for some reason?
Re:Electron 9.0 by saagarjha on Monday May 18, 2020 @10:33PM (#23230756)
The reason you see a lot of comments from Apple users is because the system has had a consistent paradigm for desktop applications, designed by the party making the operating system, for years, which means that they have come to rely on and become used to such software. The fact that Electron breaks all of those expectations and is a horrendous resource hog to boot is an unwelcome development if you've been used to high-quality native applications for all this time.
Re:Electron 9.0 by testbot123 on Tuesday May 19, 2020 @02:18PM (#23238188)
Except Apple's design system has taken a backseat in the post-Jobs iPhone cash grab era, and becomes less and less consistent with every release.

And we're saying that people who use Catalina are expecting a gold-standard, performant experience? Do we use the same Catalina? Because it represents a major regression in the macOS line.

Maybe we're long overdue for a paradigm shift.

Re:Electron 9.0 by sk0g on Monday May 18, 2020 @10:31PM (#23230746)
Photoshop has miles more functionality, and typically deals with much bigger data.

VS Code is also not an outlier for Electron apps, as most of them are a lot jankier, IMO.

Re:Electron 9.0 by sk0g on Tuesday May 19, 2020 @03:58AM (#23232430)
Meant to say VS Code _is_ an outlier, sorry
Re:Electron 9.0 by ArgyleSound on Monday May 18, 2020 @10:35PM (#23230774)
For whatever it’s worth, the macOS messages app uses an embedded webview to render the message threads.
Re:Electron 9.0 by saagarjha on Monday May 18, 2020 @10:43PM (#23230830)
Also FWIW, Messages.app is poorly maintained almost certainly next in line to be converted to Catalyst. (Web views are used in other parts of the OS as well; all the "services" panes for example, as well as Safari's web inspector.)
Re:Electron 9.0 by MuffinFlavored on Tuesday May 19, 2020 @12:05AM (#23231180)
Didn't Slack rewrite their app to be native and move off of Electron?
Re:Electron 9.0 by guessmyname on Tuesday May 19, 2020 @04:15AM (#23232536)
> Didn't Slack rewrite their app to be native and move off of Electron?

What are you talking about? That has never happened.

They posted this blog post [1] on July 22, 2019 and you probably misunderstood their point.

They did not rewrite the application to build on native libraries, they simply redesigned the architecture of their UI logic to draw web components only when strictly necessary, sharing states between workspaces and stuff like that, but it is —as of today May 19, 2020— still 100% a web application running on top of Electron. They recently announced another visual rewrite [2] on March 18, 2020 which also resulted in the same web application running on top of Electron, no changes in that part whatsoever.

[1] https://slack.engineering/rebuilding-slack-on-the-desktop-30...

[2] https://slackhq.com/simpler-more-organized-slack

Re:Electron 9.0 by MadafakinBATMAN on Monday May 18, 2020 @09:23PM (#23230358)
Its quite simple. Most electron app suse HTML stuff that is really really hard to make in native windows app and most not put time and effort in it.