r/technology • • 26d ago

Social Media Every Windows 11 app should kill Electron, and Discord just showed why: no “Starting” screen and 70% less RAM, even with two accounts signed in

https://www.windowslatest.com/2026/11/06/every-windows-11-app-should-kill-electron-and-discord-just-showed-why-no-starting-screen-and-70-less-ram-even-with-two-accounts-signed-in/
2.9k Upvotes

147 comments sorted by

381

u/No-Snow-7618 26d ago

the native vs portable app wars will never end lol.

but it’s always been a no-brainer that native apps run faster. the trade off was always development speed and portability.

159

u/randomman87 26d ago

Replace portable with web. Electron is just a wrapper around a web app that makes it appear as a desktop app.

Discord is just now realising why MS dropped it in Teams v2

68

u/Vijchti 26d ago

It's not "just a wrapper". The wrapper part is true only for the UI. But the core feature of electron is that it can interact with your machine (read/write files, talk to databases natively, run executables, etc.), which websites, by design, cannot equally do.

18

u/FuzzyEgg1050 26d ago

Tell that to microsoft where I still can’t drag files from new outlook to other nagive apps like its own onenote.

That was a rant but I didn’t realise that difference so thank you

9

u/[deleted] 26d ago

[removed] — view removed comment

4

u/Vijchti 26d ago

No, you have it backwards. 

Backend can read and write files to the server, not the user's machine. That's why electron is modeled to make the server and the user's machine one and the same. That's the trick that gives it all the special access the web sites don't have.

I can disprove your point easily with one challenge: write me a web app for a modern browser that can read an arbitrary file from the host file system without stopping for user consent.

You can't.

And you can't do any of the things I listed full stop, even if you tried to get user consent.

0

u/_choam_ 26d ago edited 26d ago

Well i cant read arbitrary files from the browser, but I can have a full file system in all the major browsers. And i do not need user consent for this.

Also i dont grt the "arbitrary file" part. There are plenty of application systems (flatpak is one, containers as well i guess) where apps can not read arbitrary files anyway.

https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system

Eidt:

My point is that the line between a native app and a web app is not thay clear.

What is the use of electron for discord when modern browsers can do pretty much anything it needs to do anyway?

You can do anything you listed in a mldern browser except read arbitrary files without a users consent.

5

u/euph-_-oric 26d ago

Your giving me real. Check out my site. Localhost vibes

2

u/Vijchti 26d ago

You linked to an API for a sandboxed file system, not the actual machine file system. That's exactly my point: you can't arbitrarily access the user's file system.

Why am I using the word "arbitrary": just to hedge in case someone wants to play games and pretend like cookies, local browser storage, or user-consented files are "the machine's file system".

But realistically electron does let you arbitrarily read and write to the machine's file system (with some caveats like the user's existing file permissions).

3

u/euph-_-oric 26d ago

It's a bunch non engineers pretending they know what they are talking about don't worry about them

2

u/Vijchti 26d ago

Haha I figured it's either that, or bots that know they can gain legitimacy by posting the same misunderstandings and getting frustrated engagement from dummies like me.

1

u/_choam_ 26d ago

Not everyone is a bot.

If I can have native apps where the app can ot read arbitrary files, then maybe that part is not actually that important.

I can also run executables in web apps, i can run databases in them, i can program for the gpu in them.

→ More replies

1

u/_choam_ 26d ago

My point is that the line between a native app and a web app is not thay clear.

What is the use of electron for discord when modern browsers can do pretty much anything it needs to do anyway?

You can do anything you listed in a mldern browser except read arbitrary files without a users consent.

24

u/obliviousjd 26d ago

I think it's less that "Discord is just now realizing native apps are faster" and more AI has made the tedium of native apps a practical non-issue.

11

u/FuujinSama 26d ago

Exactly. Everyone keeps saying they haven't seen consumer faced improvements from AI. This is the sort of thing where AI completely changes the math.

5

u/slightly_drifting 25d ago

Yup. Anytime I need to assist enterprise developers, it’s always these cross platform frameworks that are fucking up the standard. The decision was made so they don’t have to maintain support for diff environments and only have a “single” codebase.

That “single” codebase idea lasts about a week. Then the branches start. A year later, you’ve got multiple codebases that share assets for the one app across environments. 

Hopefully this will allow things like Flutter to go the way of the buffalo. 

3

u/kawag 24d ago

Developing for the web has always been 10x more tedious (at least) than developing native apps, in large part because it is not so easy to make something actually portable.

The “problem” is that you need to hire more people.

7

u/UKbeard 26d ago

teams replaced electron with WebView2 which also use the web but using microsoft edge instead of bundling chromium embedded framework.

4

u/justfarmingdownvotes 26d ago

WAIat

Teams finally dropped electron?!

5

u/chucker23n 26d ago

Yes and no. Yes, they dropped Electron, but no, they're not using a native UI framework. They're using a more efficient web view.

32

u/mcmouse2k 26d ago

It will. LLMs have made native app development much cheaper. You will see a trend away from Electron over the next few years.

11

u/No-Snow-7618 26d ago

"why use 5 token when 1 token good enough" - 19 year old COO or something

8

u/pyrospade 26d ago

my dude we now have native recompilations of pc and console games running on phones, if a teenager in a basement can do a native port over a weekend with a claude sub there is literally no excuse for native apps everywhere, let alone basic web ui apps

5

u/OddProfessor7253 26d ago

And the teenager’s gonna maintain that app with SLAs for the next 10+ years?

3

u/No-Snow-7618 26d ago

woosh goes the joke

9

u/jahermitt 26d ago

Also ease of use. And before anyone tells me how simple it is to setup a PWA, try to walk your 40 year old mother, or 12 year old cousin who just wants to play minecraft. See if they prefer adding a PWA, or just want an exe.

2

u/nagatoyuki505 26d ago

it's sort of tragic that PWA isn't popular. for a lot of apps it's enough for the use case, and is instantly cross platform. also gets around the mobile store bs like app review and the 30% iap cut. but nobody installs them......

3

u/jahermitt 26d ago

Definitely wished they were pushed harder. I know for Chrome it’s a one-button click, but it’s more of a “what’s this icon do” than something that makes instant sense.

And Apple has the feature buried.

1

u/djzenmastak 25d ago

I know what y'all are talking about, I've read the comments, but I cannot AT ALL agree with it.

3

u/jaephu 26d ago

Now with ai, maybe easier to manage multiple native versus a single platform.

5

u/Scoth42 26d ago

Apples and Oranges, really. Portable just means that it compiles cleanly to multiple platforms, which depending on the language and optimizations can be nearly if not as fast as a hand made assembly program. This is more of a write once/run everywhere thing like Java is/was that brings along a whole interpreter.

2

u/FuujinSama 26d ago

The weird thing is that there are a bunch of frameworks that do it much more efficiently than Electron.

1

u/FillAny3101 23d ago

I don't really get the Portability argument tho. Aren't frameworks like Qt portable too?

0

u/PMARC14 23d ago

I feel like you misunderstand the actual change, cause this shit isn't native truly, it is more like everything is the same now and the web browser is the OS. The way Tauri works it uses the native webview implementation, which is again a browser derived rendering engine with better native stuff, using Rust instead of Node. The way GPUI works is that websites now have webassembly and webgpu directly as options for rendering. In this way all modern application UI's can all be native and portable because all modern systems support them enoughish sort of.

1.4k

u/Zak_InGeniusPrep 26d ago • Bravo

Discord is a chat app, and Electron is the toolkit a lot of desktop apps are built with. Not you, the article just skipped the basics.

Discord is text, voice and video chat organized into "servers," which are basically group chat rooms. It started with gamers and now all kinds of communities use it.

Electron lets developers build a desktop app out of the same stuff websites are made of. The catch is that every Electron app quietly bundles its own copy of the Chrome browser engine. So if you have Slack, VS Code and Discord open, you're kind of running three extra browsers in the background. That's where the high memory use and the "Starting..." splash screen come from.

The article's point is that when an app drops Electron and uses the operating system's own building blocks instead, it opens faster and uses a lot less memory.

282

u/LimeLoop 26d ago

Thank you for the great summary! People keep complaining about reddit, but I always learn something.

125

u/JCTrick 26d ago

People who think Reddit is stupid, follow stupid shit. It’s what you make of it.

34

u/grandpohbah 26d ago

When someone tries to paint Reddit with one brushstroke of stupid, i send them something from r/AskHistorians as a counterpoint.

10

u/j_bus 26d ago

I can't agree more. If you have critical thinking faculties reddit is great.

People always want to judge it off of the worst posts, instead of searching for the good ones.

18

u/coffee_ape 26d ago

It’s worth noting it’s an AI summary; they threw the article into a Clanker and pasted it.

“Not you, the article just skipped the basics.” Screams AI

11

u/dorox1 26d ago

The commenter likely asked "is it just me, or..."

5

u/coffee_ape 25d ago

More likely yeah. I’m conflicted with it. They’re seeking out information but it’s making people lazier and dumbs down their critical thinking.

4

u/dorox1 25d ago

Yeah. It specifically bothers me that people don't differentiate between a copy-pasted AI response and their own thinking.

Like, sharing what you feel is a useful AI-generated result is one thing, Posting it like it was your own thoughts is another.

It's like if I searched up an article and, instead of linking or quoting it, I just copied the text into a comment like it was my own.

4

u/Melvinci 24d ago

The catch is… Or Every electron app QUIETLY bundles…

14

u/Ruined_Passion_7355 26d ago

If they complain about reddit but unironically use twitter, they are bandwagoning.

-2

u/super_starfox 26d ago

Both platforms serve to bitch about the other

4

u/Zak_InGeniusPrep 26d ago

Welcome!! Same!

3

u/coderstephen 26d ago

Reddit the company I don't like, but community discussion I do like

102

u/Clyzm 26d ago

It's worth saying that the reason apps ship this way is purely developer convenience. Electron works on multiple platforms, so it's easy to port over apps. When you make an interface that runs on the operating system's UI calls, it's harder to translate that application to to a different operating system, I.e. Windows vs MacOS.

We could've had apps working this way since the 2000s, but back then we were so obsessed with building for web that those frameworks progressed faster. When it came time to put all that web functionality on a local device, it became convenient to bundle all the dependencies instead of rewriting the interface.

In short, it's about damn time.

17

u/this_is_life_now 26d ago

Java use to be the solution to 'build once and it'll run on every platform'. It just didn't run in browsers (applets tried), and that's where all the consumers were spending their time.

4

u/stevecrox0914 22d ago

Java's problem was native OS integration from a look/feel perspective.

There was a standard toolkit which looked equally alien and terrible on Linux and Windows. It looks very Motif from the 90's. Apple wrote a Cocoa implementation for OSX and so applications looked pretty good.

For many years if you wanted something to look decent your only real choice was Eclipse's SWT which had its own limitations.

What Java needed was something like QT a framework designed to provide a native look/feel in all target environment.

I think people forget C#/.net started life as Java with lots of Microsoft specific extensions to make it look like a native windows application.

15

u/tiboodchat 26d ago

Problem with that premise is that not every OS even has building blocks. And then the building blocks that exist aren’t all interoperable.

Chromium for example has a lot more APIs and system integration than a simple rendering engine.

HTML/JS isn’t a bad platform to run on it’s just most runtimes are extremely heavy, and the #1 incentive devs have is feature delivery, not performance optimization. When corporate shouts at you, you don’t have much choice.. VSCode is a good example of a successful use of it.

You can easily make a worse native port if you’re not being careful.

4

u/netz_pirat 26d ago

With hardware being as expensive as it is right now, I have the feeling optimization might make a comeback. If I can run your software, i won't buy it.

4

u/StarsMine 24d ago

What OS that matters doesn’t have the building blocks

We have Linux, Mac, and windows. They all have it. Do we care about having it run on templeOS?

2

u/coderstephen 26d ago

Sciter is a good example of how HTML/CSS can be bundled into a fairly lightweight development toolkit (some overhead but not a ton), but it does not implement the entirety of what we call "the web" because that's a huge number of APIs, and partly where the bloat comes from.

10

u/NekoDesukedo 26d ago

Unfortunately, Electron also makes the app semi-transparent. I created my own custom client, because the inability to disable Discord's spyware in the official client was really bothering me. (I don't believe Discord has any business in uploading every game I am playing to their servers at all times.)

Them re-writing it in a compiled language like Rust is going to make that infinitely more difficult.

5

u/AyrA_ch 26d ago

I just open it in my regular web browser, which limits the spyware behavior to what the browser allows.

2

u/lkmk 25d ago

…Oh, Chrome. Of course.

2

u/BitterOnTheVerb 26d ago

Wish there were one of these for every post that requires context. Appreciate the write up - down the Electron rabbit hole I go.

-7

u/xmsxms 26d ago

You're kind of in the wrong sub if you didn't know all that already.

4

u/BitterOnTheVerb 26d ago

What's the point of saying this? I know what Discord is because I use it. If this reaches people who don't know any better then great, they get an easily digestible overview. Extremely weird take.

-38

u/wubrgess 26d ago

The article's point is that when an app drops Electron and uses the operating system's own building blocks instead, it opens faster and uses a lot less memory.

jfc duh. the point of electron is portability and potentially ease of development. if you point development resources to build a native OS application, you can save resources for the user. it just shifts "resource usage" from dev to user, which is a trade devs are more likely to be in favour of and users won't.

what a pointless article.

12

u/Horat1us_UA 26d ago

> jfc duh. the point of electron is portability and potentially ease of development.

It used to be like that. But now we've got AI.

1

u/outofband 26d ago

The point is that something that before was effectively unfeasible (rebuilding an entire application with rust) is now possible because AI enables it. duh

129

u/Quintuplin 26d ago

The Electron era was strong because web devs moving into desktop apps wanted transferrable skills. That came with terrible performance, but RAM was cheap and development times accelerated.

Now, RAM isn't cheap, and AI makes building a native desktop client easy. The equation has changed. I'm glad to see it in some ways, not so much in others, just noting that Electron has a place where it used to fit, but probably won't for much longer

12

u/coderstephen 26d ago

I've hated Electron since the beginning. I was there when it was created for the Atom text editor.

32

u/nephelokokkygia 26d ago

It was because web devs were too lazy to learn new skills. Electron has always been a terrible solution to its very core, trading a relatively small amount of upfront developer effort for eternal, obscene resource expenditure on every client's machine.

21

u/Dudeonyx 26d ago

That's quite a take, in reality it was never about being too lazy to pick up new but that creating and maintaining an App that runs on multiple OSes was really really freaking hard.

Just maintaining the UI alone was a horrid experience that even large companies like Snapchat often had a lot of UI and features disparities between platforms.

You really seem to have forgotten how before electron most apps where only released on a single OS, and Linux often got the short end of the stick.

Honestly I think that electron may have given Linux a huge boost, since it made porting and supporting apps on Linux very easy.

Learning rust didn't and wouldn't solve any of those problems, but AI can.

But don't let that stop y'all from blaming web Devs, easy target and all.

1

u/kawag 24d ago

It was because companies didn’t want to hire additional developers for native apps. Much cheaper to reuse web developers, who tend to be cheaper already because there are more of them.

16

u/0sko59fds24 26d ago

Please Figma go Native

12

u/Abject-Kitchen3198 26d ago

Ask Claude to do it Rust.

/s /s /s

8

u/jehva50 26d ago

/serious /serious /serious

5

u/Ja_Shi 26d ago

Nooooooooooo you forgot to tell it to make no mistake 😱 we're fucked.

0

u/TeutonJon78 26d ago

ArtCraft already did that with FigCraft.

1

u/Abject-Kitchen3198 26d ago

All of them transformed to rust already?

1

u/TeutonJon78 26d ago

Yes, all of the ArtCraft apps are all rust based.

1

u/Abject-Kitchen3198 26d ago

Open source alternatives to popular applications that few people develop for years for a dozen of users at least have some charm and appeal.

1

u/marumari 26d ago

Figma already is pretty close, it’s C++ compiled down to webasm.

59

u/rahvan 26d ago

Every time I open up Discord and BitWarden on Windows 11, I am incentivized to get up from my chair and come back 5 minutes later, because it physically raises my blood pressure to see how slow these Electron-backed apps load.

44

u/wrosecrans 26d ago

It has always blown my mind that the world is willing to accept that modern applications start up slower than they did on a single original Pentium loading from a mechanical disk. For no real benefit. Something like Discord admittedly has some UI conveniences that something like mIRC didn't have in the mid-90's. But those ancient apps weren't also badgering you to BUY NITRO so being able to drag a file from explorer into a chat is at-best a net wash in UX advancement.

It's like everybody forgot that using a computer could just be... good.

6

u/Additional-Staff-326 26d ago • Heartwarming

Can we get AI to go back to the era when coders cared about efficiency.

4

u/OddProfessor7253 26d ago

So the apps you use need to be developed and maintained, and ease of cross-platform development and maintenance is a real benefit.

How many component devs are familiar with HTML, CSS and JS, vs Qt for example?

1

u/igmyeongui 26d ago

I do get it man. I use discord in the terminal 99% of the time. Ram is free.

1

u/SIGMA920 26d ago

If you have semi-modern hardware they're not exactly slow, 8 GBs of RAM should be considered usable but subpar for example. 16 should be what most people have upgraded to and 32 or higher for gaming/intensive work.

3

u/autogyrophilia 26d ago

Yes but what does discord do, that the combination of the elements that compose it couldn't do with a fraction of of the memory required?

1

u/SIGMA920 26d ago

Combine all of them together in a single cohesive program. You could take any software and break it into parts, even a web browser, and manually control every individual part. But why would you?

That comes at a cost of needing newer hardware to run, you can't reasonably expect 8 GBs of RAM to go far today on anything that's not light use anymore. The norm until AI blew up the consumer market was trending towards 16 being the minimum for that very reason.

1

u/autogyrophilia 26d ago

<<It is what it is >> is not a valid reason, if anything, the application ought to be more lightweight than the sum of it's parts, as the redundant features are stripped.

After all, the backend part is extremely lightweight. But the interface was allowed to become a slog.

1

u/SIGMA920 26d ago

It was egregious on how much it used, yes. That is a fair complaint.

But you cannot take components and combine them to get a lighter weight end product, it will always be heavier than the parts used unless you're removing a lot of redundant parts. That's how reality works. And with a computer that didn't come from the 2000s, it shouldn't be an issue.

0

u/Dudeonyx 26d ago

I can tell you haven't used a pc with a mechanical harddrive in quite some time.

I recently had to use a 13th gen intel system with a HDD and I promise you, you've forgotten how slow things used to be, and why splash screens became a thing.

Even opening tiny apps was a gamble of "did I double click correctly and it's just taking forever, or did I misclick and just spent the last 3 minutes staring at my screen"

6

u/wrosecrans 26d ago

I am currently sitting 1 foot away from a PC with several mechanical drives in it. And my last day job involved a lot of focus on care and feeding of thousands of filesystems, and the performance differences between disk and SSD. I once gave a talk at a tech conference about chasing down performance problems in-kernel of the Linux XFS implementation at scale on those filesystems.

But sure, I just don't know how slow or fast hard drives go, I guess, because somebody on the Internet says so.

I'm being a bit grumpy for comic effect. But seriously, I remember waiting ages for big apps to open. But back in the 90's, there were also tons of apps that were small and opened quickly, even on the very constrained systems of the day. Yeah, if you use a modern 13th gen Intel system, with the modern software stack that runs on such a modern system you'll be miserable with slow IO. When big systems only had a few MB, and the dynamic linker - if it existed at all - was clearly written by a pack of drunken monkeys during a blackout, software was a lot smaller. If you had a simple executable file with no dynamically linked libraries and no external resources to load, a mechanical disk could load the entire application with perhaps two or three seek operations and small stuff absolutely could be running in under a second.

Something like a chat app is not inherently very complicated. We've just engineered a disaster of an ecosystem in the 30+ years since software was forced to be small. But those were mostly down to bad choices, not inherent requirements.

3

u/Corgiboom2 26d ago

The heck? Mine loads in seconds. Do you have a ton of extra junk running in the background?

-1

u/NapsterKnowHow 26d ago

Are you running an old ass HDD? How does Discord take long to load for you?

1

u/rahvan 26d ago

Nah, SSD. It was top-of-the-line in its time.

….. 12 years ago …. 🥲

Honestly surprised this champ still runs lol. I was gonna replace my old computer but, alas I don’t want to pay the price of a car for a new PC these days.

2

u/NapsterKnowHow 26d ago

Damn. Well either way it's good to see Discord working to improve the app!

6

u/Zatujit 23d ago

The problem is not that it runs faster, the problem is that it is cheapier ans easier to get webdev to do the job

5

u/roodammy44 26d ago

Great that discord is reducing their resources for us.

The only reason people use electron in the first place is because it’s really really easy for developers to use.

A forked and obscure rust ui framework is like the utter opposite for ease of use for developers. I wonder if they are going to be causing problems for themselves in the future. They are basically staking the future of the company on unproven tech.

4

u/Abject-Kitchen3198 26d ago

That's shocking discovery.

4

u/scheb 26d ago

At least we’re finally going to be able to leave electron behind….hopefully this age of 8GB ram laptops does it!

16

u/Mixter_Master 26d ago edited 26d ago

"downloads and updates in the background instead of when launching the app"

Sounds like a background process running at device startup, not a true cold start. 

I disable all apps from auto launch. If I don't manually launch a process, it is unwelcome on my systems. 

If this is just faster because it's doing the updating earlier as a background process, I am not that convinced it'll be monumentally faster on a true cold start. 

I won't be upset if it is truly faster, but I won't accept it adding auto launch services on my system. 

(Somehow controversial -_-)

36

u/pisandwich 26d ago

Im getting real tired of every damn piece of software installing an automatic start service or running itself at startup. I disable that shit en masse.

9

u/Mixter_Master 26d ago

In the age of AI making EVERYTHING an attack vector, any unfamiliar process or service is immediately suspect. Security through familiarity. Plus, it's just annoying as hell to turn on a system and have every program under the sun trying to auto launch and update at the same time. Then looking into the task manager and wondering what the hell everything is doing already at startup. 

Like, if I have everything disabled from auto launch, and have also culled the unwanted auto launch services, any unexpected process in the task manager is a pretty big red flag. 

Sure, I can identify and get used to whatever discord's new background process will call itself, but have you seen the dozen random names discord gives it's task manager startup process? Do you think it's going to be clearly named? Nah, it's going to be something stupid and vague like "GitHub" or "update" that doesn't identify itself as discord. 

5

u/The0nlyMadMan 24d ago

Ultimately wanting more granular control is what pushed me to use Linux. The inconveniences were minor with a learning curve but I’m glad I did. YMMV

3

u/derefr 24d ago

If you think about it, it's weird that every app wants a background service just for auto-updates yet the OS vendors don't notice the demand for this and just make an OS API that allows apps to register with the OS to have their updates downloaded and installed by one central OS app auto-update service. That's the kind of thing OSes were supposed to be for, centralizing the bullshit that every app would otherwise have to reimplement for itself.

I'm guessing that Microsoft and Apple don't do it because they have app stores and implement it for app-store apps, and want to do everything they can to incentivize app devs who are "still" shipping apps independent of the store to switch to shipping apps on the store "so they can benefit from automatic updates." (And a 30% haircut.)

(You do kinda get this on Linux, though, at least if you distribute your app as a Flatpak image or Snap. But it'd be nice if there was an open framework / IPC message standard abstracted out from these that could be shared between the app:OS update coordination mechanisms of different package sandboxing backends, such that it could be implemented even for non-packaged apps by an OS service, that could then be silently installed by these apps on Windows and macOS, like a fancier COM-server version of Sparkle/Squirrel.)

2

u/ParsingError 26d ago edited 26d ago

To be fair, a lot of the reason for this was Microsoft dragging their feet on having a proper integrated update system in Windows, and Windows software delivery in general being awful, forcing app developers to do everything themselves.

They only introduced UOP (which lets non-Microsoft apps use Windows Update) last year, and it only started being usable 3 months ago.

Part of why it took so long was them putting all of their chips on the UWP/Windows Store misadventure too.

3

u/xsrvmy 26d ago

More likely it just means the update can be applied when discord is running, and you get the updated version when you close and relaunch discord.

1

u/TheDebateMatters 26d ago

How does one do this?

6

u/Mixter_Master 26d ago

Task manager > startup apps > disable. You can safely disable practically everything, though I leave windows defender enabled. 10/10 recommend 

Then, if you are bold and willing to actually do research into what you are doing, search for "services" and change annoying things from automatic to manual. This is mostly to get rid of more annoying, persistent processes, like Adobe activation servers, and other cancerous programs like that that don't respect task manager and believe they are above your consent to run. You can screw things up in the services menu by culling things willy nilly, so do research more extensive than asking a clanker about it first.

2

u/noideaman 26d ago

And then when you get even more bold, regedit

1

u/li_shi 25d ago

They are definitely softwares that used to be startup app become services to hide from the startup fix.

1

u/13chase2 26d ago

Rust is the most efficient programming language that’s not low level. It’s going to rip.

I recently wrote an application and it’s running on a server with only 1 vcpu and 500mb ram. It uses 16mb and can handle 1800 concurrent connections.

Unbelievable

13

u/VileTouch 26d ago

Steam next, please

3

u/JoshTheSquid 26d ago

Steam is not Electron.

12

u/VileTouch 25d ago

You are correct. It's not Electron, but it's entire UI is drawn in html+javascript inside CEF containers which suffer from exactly the same issues as Electron. What i mean is it needs to be a native app

7

u/Several_Ant_9867 26d ago

Windows support Progressive Web Apps that can be added to the desktop. They can launch offline and use the installed browser. No need to package a web app on an Electron container

18

u/roodammy44 26d ago

They are extremely limited in what they can do on the OS. PWAs are just fancy websites.

4

u/wrosecrans 26d ago

A pretty large chunk of electron apps are really no more than regular websites, packaged with electron. Some do quite native desktop-app things. But certainly not anywhere near all of them.

7

u/big-oofs-only-0193 26d ago

The memory cost isn't due to Electron, it's the inefficient use of html+js. Electron is just a browser wrapper. A PWA will have the same problems.

7

u/ChaosinaCan 26d ago

The memory cost of a web app is partly the HTML + JS that makes up the app and partly the web browser needed to run and render it. Assuming you already have a web browser open, a PWA is closer to just opening an extra tab that shares browser resources, while an Electron app is running its own, separate web browser.

1

u/widowhanzo 26d ago

Maybe we should have some sort of electron app launcher that allows multple apps to share the underlying base!

2

u/PIODOWPAY 26d ago

Se Deus quiser eles hão de acabar!

2

u/frame_limit 23d ago

didnt take long for people to warm back up to discord, huh

2

u/rostol 26d ago

shocking ... having a whole chrome browser to run your web app is inefficient ?
who knew?

fucking everyone.

1

u/erfg12 26d ago

Use Avalonia or Maui if you plan on using C#. Resources will be so much lower. If you want to use C++ or Rust you’ve got lots of options too.

Just don’t bother with Electron, its not a good idea.

1

u/UKbeard 26d ago

I think .NET 11 is adding Avalonia support.

3

u/mCProgram 26d ago

What lol dotnet has had avalonia support since like 8 ?

1

u/susimposter6969 24d ago

What would be interesting is if all these election apps could share the chrome browser

-1

u/kitne_aadmi_the3 26d ago

Every window's user should kill windows and shift Linux or Mac

0

u/Historical-Lion6552 26d ago

I remember browsing internet over 20 years ago when it was such a lively place. It's not my nostalgia but an experience shared by others. I think a large part of why internet spurred so much creativity and uniqueness was the tooling available namely flash. Despite all the hysteria about resource usage, flash worked flawlessly on computer with as little ram as 128mb. I think it was the politically motivated attacks by apple and co. which killed flash. Competing big corporation only wanted control of delivery platform. Html5 was promoted as a replacement, touted as open standard when no entity backing it cared about open standard. It was a incoherent mess without proper tools like flash builder for regular folks. Everyone resorted to injecting large 18mb JS frameworks into their websites as replacement. The internet and, consequently, the browser began bloating up.

What, I think, should have happened was flash should have been open sourced and accepted as iso standard a la pdf.

-11

u/ElysiumSprouts 26d ago

Articles like this make me feel old. I read the whole thing and I still don't understand what they're talking about. It assumed I'd know what words like "electron" and "discord" mean. I know what the words mean, but also they clearly don't mean what I think they mean.

7

u/FollowingFeisty5321 26d ago

Electron wraps a web(-like) app in a standalone chromium browser, it's used for a lot of software to support multiple platforms instead of doing a version for each as it simplifies releasing software for many platforms and mostly re-utilizes their web apps. Discord just rewrote their software so it doesn't and subsequently requires fewer resources, until they turn it to shit all over again.

9

u/costconormcoreslut 26d ago

This article is definitely a 'preaching to the choir' type. But the other problem is that the article is borderline unintelligible because it was likely written or heavily edited by AI. It has that 'talking much but saying very little' quality that is the hallmark of AI writing.

-2

u/Marshall_Lawson 26d ago

I don't think you read the article 

2

u/costconormcoreslut 26d ago

I most certainly did.

4

u/MistrFish 26d ago

TLDR: Discord, an application for online chatting and group calls for gaming, is rewriting their desktop client in Rust because it's significantly more performant than their old client, which used Electron. A lot of software is moving to Rust for this reason, and also because AI programming makes the conversion significantly faster.

-2

u/slightly_drifting 26d ago

Electron blows ass anyway. “Everything JS” is bad. 

-2

u/f4ern 25d ago

It everything html because the only interface designer exist now is web designer. No one is dicking around any other gui development anymore.

-16

u/[deleted] 26d ago

one of the nice things about ai is that our software is gonna become incredibly optimized in a few years

-7

u/mlghty 26d ago

Shouldn’t happen Electron is basically chromium, so basically the argument here you are using web tech for chat which is already done?? This is a dumb article, not only was discord infra first made before ai, but the take away hereditary should be the lessons learned from discord not that electron is bad.

4

u/maqbeq 26d ago

They should kill electron in MS teams too