News for hackers. Stuff that matters.
Re:Discord is ditching Electron and its new app uses less RAM by chasd00 on Thursday November 05, 2026 @10:08AM (#50380040)
The good thing is AI enabling web developers to write native apps.
Re:Discord is ditching Electron and its new app uses less RAM by swatcoder on Thursday November 05, 2026 @10:19AM (#50380203)
[delayed]
Re:Discord is ditching Electron and its new app uses less RAM by tmpz22 on Thursday November 05, 2026 @10:22AM (#50380241)
Is the average web developer benefitting from vibing languages they are not at all fluent with?

A bit like a translator who doesnt speak the language but has Google translate and a few beers in them right?

For example, is there still a massive .clone() problem in LLM generated Rust?

Re:Discord is ditching Electron and its new app uses less RAM by cloverich on Thursday November 05, 2026 @10:31AM (#50380356)
I re-wrote one of my apps in Swift. I don't know Swift. It's been fun. When it gets stuck I look at the code; I have it teach me via analogy to the e.g. mobx/react concepts I do know. In some cases I've improved the LLMs code after learning how something works. In others I work it more like an informed PM - ok the sidebar opening is slow but... its about 10x faster in my electron version. How is the sidebar "mounted" or rendered? I dump tricks I know from web dev and ask how analogues; sometimes that breaks its anti-patterns. Other times I throw constraints I don't know much about - "This is a native version, can we aim to make it 3x faster to start-up? How".

Personally I was surprised how quickly I surpassed my original code, feature wise. Will it stand the test of time? Too early to tell - need to see if I'm still using the native version of the app in a year. But its been more fun and informative - and fast - than I'd expected.

Re:Discord is ditching Electron and its new app uses less RAM by arecsu on Thursday November 05, 2026 @10:47AM (#50380575)
This is the way. I don't know why it's hard for other people to figure out this process.
Re:Discord is ditching Electron and its new app uses less RAM by tmpz22 on Thursday November 05, 2026 @12:08PM (#50381598)
Right fun is great but I'm speaking from a professional context. Examples should be production code at legitimate businesses.

For what it's worth I wholly agree with your point and that mirrors the personal project I have. But making personal projects a bit more fun and fluent is not the $10T proposition being championed at the professional level.

Re:Discord is ditching Electron and its new app uses less RAM by mahboi on Thursday November 05, 2026 @12:44PM (#50382000)
I was vibecoding CSS before AI could write code
Re:Discord is ditching Electron and its new app uses less RAM by nozzlegear on Thursday November 05, 2026 @01:24PM (#50382528)
[delayed]
Re:Discord is ditching Electron and its new app uses less RAM by bigstrat2003 on Thursday November 05, 2026 @10:50AM (#50380641)
I mean, they were always able to. They just were too lazy to do it and didn't care about doing a good job enough to overcome that laziness.
Re:Discord is ditching Electron and its new app uses less RAM by satvikpendem on Thursday November 05, 2026 @10:57AM (#50380748)
You know what they meant. This is the same argument that artists used when AI image generation came out, it's not very helpful. Being able to do something and actually doing it are different and we all benefit when web app makers rewrite their apps into native languages.
Re:Discord is ditching Electron and its new app uses less RAM by pjmlp on Thursday November 05, 2026 @12:25PM (#50381782)
Some of us are long enough in the business, to know that having Web development skills doesn't preclude having native development skills.
Re:Discord is ditching Electron and its new app uses less RAM by satvikpendem on Thursday November 05, 2026 @01:24PM (#50382520)
Maybe that was true in the past but it has definitely not been the case for the past 15 or 20 years for web developers who actually don't know anything about native development.
Re:Discord is ditching Electron and its new app uses less RAM by pjmlp on Thursday November 05, 2026 @03:28PM (#50384054)
Well if you put it that way, some of them don't even know anything about the browser technology that powers their JavaScript framework used to generate static content.
Re:Discord is ditching Electron and its new app uses less RAM by satvikpendem on Thursday November 05, 2026 @06:05PM (#50385808)
That is correct.
Re:Discord is ditching Electron and its new app uses less RAM by HoldOnAMinute on Thursday November 05, 2026 @01:18PM (#50382417)
Your use of "lazy" here really comes off as "ableist".

"I can do it, and you didn't do it, therefore you must be lazy, because I certainly am not lazy"

What's lazy is not diving into the reasons that people may or may not do things.

Re:Discord is ditching Electron and its new app uses less RAM by bccdee on Thursday November 05, 2026 @01:47PM (#50382814)
So, you're saying that the person you're responding to is really saying, "Developers are too disabled to write native applications"? No, that's nonsense. "Laziness" is not the reason for Electron applications, but disability is an even worse diagnosis.

Incidentally, I think it's kind of ableist to throw around the concept of ableism in places it doesn't make sense. Disability is a set of concrete barriers corresponding to real solutions which do not get the funding and consideration they deserve. Disability is not "when some people do a thing and others don't."

Re:Discord is ditching Electron and its new app uses less RAM by jarjoura on Thursday November 05, 2026 @12:56PM (#50382138)
Most electron projects exist because engineering organizations couldn't afford to hire platform specialists for every platform they want to run on.
Re:Discord is ditching Electron and its new app uses less RAM by HoldOnAMinute on Thursday November 05, 2026 @01:15PM (#50382360)
There were cross-platform C/C++ libraries in the late 80's to early 90's like Visix Galaxy. However, it was not free - far from it.

We developed on Windows NT and deployed onto HP/UX and Solaris.

Re:Discord is ditching Electron and its new app uses less RAM by nottorp on Thursday November 05, 2026 @02:17PM (#50383171)
Uh Qt is still around. Licensing might be as bad as this Visix Galaxy though these days.
Re:Discord is ditching Electron and its new app uses less RAM by tcfhgj on Thursday November 05, 2026 @01:24PM (#50382524)
certainly not valid for the most used electron projects
Re:Discord is ditching Electron and its new app uses less RAM by andix on Thursday November 05, 2026 @01:36PM (#50382690)
Also most native UI frameworks don't provide the primitives for modern UI. It's mostly just standard UI elements, sometimes with the possibility to theme them.

But most frameworks don't come even close to CSS and all the possibilities to create custom controls. It often requires to build everything from scratch in code, which is really hard for more complex layouts.

Re:Discord is ditching Electron and its new app uses less RAM by nottorp on Thursday November 05, 2026 @02:15PM (#50383150)
One could reply that it's a feature, since native UIs are more uniform and with less surprises you can concentrate on whatever the fuck you're doing instead of wondering what this app's designer was smoking.
Re:Discord is ditching Electron and its new app uses less RAM by andix on Friday November 06, 2026 @01:13PM (#50396072)
Depends on the UI framework. Most frameworks don't have enough features to make the UI actually good. It's not even about looks, much more about layout. CSS is really good with conditional layout: hide something and everything reflows around it, responsive layout (not just mobile, but also when making app windows smaller/larger). Typography is another issue with a lot of native UI frameworks. Even adaptive DPI support is not yet easy with most native frameworks.

Also things like accessibility. It's quite easy to make web ui accessible, much harder to do it with custom native control.

Re:Discord is ditching Electron and its new app uses less RAM by Telaneo on Thursday November 05, 2026 @07:48PM (#50386740)
Maybe they should take the hint and not make a modern UI, given where UIs like that have taken us.
Re:Discord is ditching Electron and its new app uses less RAM by gib444 on Thursday November 05, 2026 @02:02PM (#50382984)
[delayed]