News for hackers. Stuff that matters.
Re:Discord is ditching Electron and its new app uses less RAM by Swiffy0 on Thursday November 05, 2026 @09:09AM (#50379261)
Not sure what to think of this.

Sure, a Rust implementation will perform better and use less RAM, but it's quite obvious that the transition to Rust will be done almost entirely by AI.

Don't get me wrong, the AI coded Rust version of Discord will most likely work just fine. The thing I'm wondering about is if it's a good idea to rewrite your whole codebase (which I assume is handwritten since Discord predates AI coding) with AI because now there is nobody that knows how it really works - I'm wondering what's the value of having a human-written codebase + the people who wrote it. Just feels like one shouldn't throw that into the trash like it's nothing?

Re:Discord is ditching Electron and its new app uses less RAM by gjsman-1000 on Thursday November 05, 2026 @09:11AM (#50379282)
Here's the critical assumption: Somebody has to know how it works, in order for it to be usable.

That's not actually true. Nobody understands everything about how an airplane works, not even the lead engineers. Nobody understands everything about how a car works, or how medical billing works, or how taxes work, or how traffic flow works, or how a CPU works, or how almost anything works. You just need to understand the broad picture and be able to find the details when necessary.

Re:Discord is ditching Electron and its new app uses less RAM by add-sub-mul-div on Thursday November 05, 2026 @09:20AM (#50379389)
We're losing a respect and understanding of how basic competence works.
Re:Discord is ditching Electron and its new app uses less RAM by wolvesechoes on Thursday November 05, 2026 @09:29AM (#50379512)
> Nobody understands everything about how an airplane works, not even the lead engineers. Nobody understands everything about how a car works

Of course people do.

Re:Discord is ditching Electron and its new app uses less RAM by chasd00 on Thursday November 05, 2026 @10:15AM (#50380135)
Doubtful. The engine engineer doesn’t know the chemical engineering of modern fuels nor the code in the engine controller.
Re:Discord is ditching Electron and its new app uses less RAM by anthk on Thursday November 05, 2026 @01:34PM (#50382670)
In my country in order to earn a true CS degree you need to learn both Chemistry and EE.
Re:Discord is ditching Electron and its new app uses less RAM by skydhash on Thursday November 05, 2026 @06:34PM (#50386127)
I had to learn geology and engineering drawing, because the first two years syllabus overlapped with civil and electromechanical engineering.
Re:Discord is ditching Electron and its new app uses less RAM by rvz on Thursday November 05, 2026 @09:36AM (#50379606)
This is textbook whataboutism.
Re:Discord is ditching Electron and its new app uses less RAM by chneu on Thursday November 05, 2026 @09:41AM (#50379664)
Your post is absolute nonsense. Plenty of people know exactly how everything on a plane or car works, or a CPU. I've worked with tons of people who do.

The fear of deskilling is very valid and is already messing things up.

Re:Discord is ditching Electron and its new app uses less RAM by gjsman-1000 on Thursday November 05, 2026 @10:31AM (#50380368)
Your post is absolute nonsense. Even the people you are referring to do not know how everything works. Does your airplane engineer know the exact tensile strength of the tire as it hits the landing strip?
Re:Discord is ditching Electron and its new app uses less RAM by nozzlegear on Thursday November 05, 2026 @01:39PM (#50382729)
[delayed]
Re:Discord is ditching Electron and its new app uses less RAM by SZJX on Saturday November 07, 2026 @06:45AM (#50403702)
It's funny that I was just having this discussion with somebody yesterday. I guess it's always a question of degree. An airplane engineer may still not need to know every bit of detail regarding how all of their tools are produced before they can make use of the tools to build an airplane. But I agree that you raised a valid point in that at least they know how the components of an airplane itself fit together. Maybe it would be similar to how software engineers don't necessarily need to know all the details about how a computer is built (even though in some cases this would be beneficial), but if they don't even have the understanding of the actual _software_, building which is literally their job, it might be going too far. Similarly, a car driver doesn't necessarily need to know all the mechanics about a car, but is a software engineer more like a car driver or a car builder? Or indeed, is what we're currently doing with agents akin to wielding tools to build a system, which we still understand on a high level, or driving a black box? There is a balance there which people are still figuring out as everything is still rapidly in flux.
Re:Discord is ditching Electron and its new app uses less RAM by bccdee on Thursday November 05, 2026 @02:11PM (#50383099)
They know the tires are rated for hitting a landing strip under XYZ conditions, they know how to test the tires to ensure they're still confirming to the expectations of that rating, and they're in contact with the trusted organization that's responsible for issuing that rating. Each expert has a comprehensive understanding of their field, and the fields comfortably overlap with no gaps. For any given perspective, there are several people with the complete picture of that perspective.

Contrast this with a vibe-coded "airplane" where nobody actually understands the tires and you're basically operating on a set of assumptions. The tires are not rated and there's no trusted organization. Maybe it works, but you don't actually know. Very different; don't play language games.

Re:Discord is ditching Electron and its new app uses less RAM by subarctic on Thursday November 05, 2026 @02:53PM (#50383616)
My understanding was that for every component there's someone somewhere who understands exactly how it works at least in terms of smaller components/abstractions and for each of those, recursively, someone knows how it works
Re:Discord is ditching Electron and its new app uses less RAM by anonymous908213 on Thursday November 05, 2026 @03:40PM (#50384199)
"I'm clueless and don't know how anything works, therefore experts don't exist" is one of the worst takes to come out of this godforsaken tech.
Re:Discord is ditching Electron and its new app uses less RAM by gamblor956 on Thursday November 05, 2026 @10:33PM (#50387834)
You picked very bad examples. There are plenty of people who know exactly how everything in a plane or car works, how taxes work, how medical billing works, how a Cpu works.

Cal used to require EECS students learn how to make a basic CPU. Students at CalTech learn how to make advanced planes as student projects.

Re:Discord is ditching Electron and its new app uses less RAM by Emjayen on Friday November 06, 2026 @01:30AM (#50388900)
This sounds awfully like the self-soothing mantra slop-kiddies everywhere tell themselves.

Plenty of people have a deep understanding of software/hardware, as that's the context here. I personally can take you from usermode, through the kernel (both NT and Linux), down to the hardware interface, explaining the vast majority of systems along the way, and critically, as they relate to performance concerns.

So can plenty of others who actually know+understand things.

Re:Discord is ditching Electron and its new app uses less RAM by kombookcha on Thursday November 05, 2026 @09:14AM (#50379303)
[delayed]
Re:Discord is ditching Electron and its new app uses less RAM by stackbutterflow on Thursday November 05, 2026 @09:35AM (#50379581)
How is this different from when you join a company and learn your corner of the codebase? In a sufficiently large enough codebase no one had the whole mental model in their head even before AI. What you did was find and ask that one person who knew enough about some part of the project to answer your questions. Now you can ask a model.
Re:Discord is ditching Electron and its new app uses less RAM by theLiminator on Thursday November 05, 2026 @03:09PM (#50383816)
I believe institutional knowledge used to work on a ship of Theseus model. It's going to be completely different going forward.
Re:Discord is ditching Electron and its new app uses less RAM by robswc on Thursday November 05, 2026 @09:04PM (#50387238)
> How is this different from when you join a company and learn your corner of the codebase?

Because most AI generated code is incredibly verbose and noisy. This can be true for any codebase, but it is especially egregious in AI codebases. It is hard to prevent that by just saying "be concise" because knowing exactly where to be concise is the measure of true skill/intelligence.

Every time I have success with AI coding, it is because whatever I need done can work as a pure function, where the probability I have to return to it is very very low.

Making sense of a codebase is like putting together a puzzle. A purely AI generated codebase is like trying to put it together without a picture on the pieces.

Re:Discord is ditching Electron and its new app uses less RAM by port11 on Friday November 06, 2026 @05:22AM (#50390532)
This is more like ALL the developers have just joined a company where no other devs work and can pass along institutional knowledge. You know, the thing that makes all that complexity wieldy.
Re:Discord is ditching Electron and its new app uses less RAM by SoftTalker on Thursday November 05, 2026 @02:59PM (#50383698)
Also Reflections on Trusting Trust taken to a whole new level.
Re:Discord is ditching Electron and its new app uses less RAM by CamperBob2 on Thursday November 05, 2026 @03:17PM (#50383914)
Once your shared mental model of how the codebase works is gone it seems practically impossible to get it back.

You won't want it back. How much time do you spend surfing through your .o or .obj files today?

Re:Discord is ditching Electron and its new app uses less RAM by fao_ on Thursday November 05, 2026 @04:45PM (#50384895)
Back in the day you'd read reference manuals which would tell you about the library, they might be hand written or a listing of the addresses and names. Today in the modern day, we still use reference manuals for writing C and C++. It's just encoded in websites, e.g. https://pubs.opengroup.org/onlinepubs/9699919799/functions/c... and https://en.cppreference.com/

But there are still libraries where familiarising yourself with the header is important, for example stb's libraries. man(1) and GNU Info were both invented to be computer-stored reference manuals, and indeed to this day you can type `man 3p open` to get the POSIX documentation of the system up in front of you.

I am not aware of many codebases that have manuals as complete as this, but back in the day (1970s-era to the 1990s-era) there would be internal documentation written as par of course for the specification created by the waterfall model of development. Post-2010 companies are very lackadaisical about documenting internal interfaces and libraries because they come from startup cultures where "move fast and break things" is the name of the game.

Re:Discord is ditching Electron and its new app uses less RAM by dieortin on Friday November 06, 2026 @05:49AM (#50390738)
> How much time do you spend surfing through your .o or .obj files today?

Those are not the source of truth for the application logic. But the higher level code is.

The application code describes the behavior of the program and the compiler translates it into a different representation following a set of known, deterministic rules. This is unlike an LLM producing code from a prompt, which is why the source code is still the source of truth, and not a bunch of prompts.

Re:Discord is ditching Electron and its new app uses less RAM by CamperBob2 on Friday November 06, 2026 @12:49PM (#50395707)
Determinism is something you'll have to give up if you want to stay employed, I'm afraid. Don't shoot the messenger.
Re:Discord is ditching Electron and its new app uses less RAM by moralestapia on Thursday November 05, 2026 @04:59PM (#50385077)
I'd say they're betting on AI getting good and reliable enough to not have to go back to the "old" practice.
Re:Discord is ditching Electron and its new app uses less RAM by kombookcha on Friday November 06, 2026 @02:03AM (#50389095)
[delayed]
Re:Discord is ditching Electron and its new app uses less RAM by moralestapia on Friday November 06, 2026 @07:10AM (#50391434)
Yes, I wouldn't make that bet.
Re:Discord is ditching Electron and its new app uses less RAM by kombookcha on Monday November 09, 2026 @04:58AM (#50423445)
[delayed]
Re:Discord is ditching Electron and its new app uses less RAM by throwaway_new_1 on Thursday November 05, 2026 @11:08PM (#50388059)
>change your mind in 3 years

I think if people change their mind in six months, let alone 3 years, they would just rewrite it again with something different, or just double down on the AI rewrite to rewrite the rewrite to fix the gaps and so on. It's a rabbit hole.

What people are completely missing with AI is that when a company/someone makes the decision (which is most these days) to go heavily on the AI route, they are probably going to keep going that way.

We don't really know what’s the right balance of AI and People right now.

My personal take would be to leverage AI to fix and improve what already exists in a maintainable way and wait for others to experiment with going heavily AI. It's worked great for Apple who is generally years behind in a lot of things because they wait it out for others to experiment with things.

Re:Discord is ditching Electron and its new app uses less RAM by beardbandit on Friday November 06, 2026 @11:01AM (#50394059)
I don’t think this changes just because you don’t do a rewrite. This is happening already as engineering leans more on AI tools in our own company.

Things ship and change way too fast and the changes are massive.

Re:Discord is ditching Electron and its new app uses less RAM by petra on Thursday November 05, 2026 @09:38AM (#50379633)
When porting an app this way, don't functions/classes preserve the same functionality ?
Re:Discord is ditching Electron and its new app uses less RAM by j_w on Thursday November 05, 2026 @09:49AM (#50379771)
Well not really? You are going from a webpage (Electron) to a native application via Rust. Say you port a React website to a Rust native application, is anything about that code actually similar?
Re:Discord is ditching Electron and its new app uses less RAM by lukax on Friday November 06, 2026 @06:47AM (#50391210)
With GPUI quite a lot can be shared. Styling is similar, components can have same names. If your application logic is already cleanly separated, the resulting code can be quite similar.
Re:Discord is ditching Electron and its new app uses less RAM by tlonny on Thursday November 05, 2026 @03:37PM (#50384164)
I think there are lots of common patterns you find in GC’d languages that don’t translate well into idiomatic rust.

Consequently, porting my game engine from Java to Rust was more challenging than I had anticipated.

Re:Discord is ditching Electron and its new app uses less RAM by spunker540 on Thursday November 05, 2026 @12:12PM (#50381635)
It seems like the value is having something performant. Their choices were 1) stick to a web framework their employees know well 2) a performant native app their employees don’t know as well. And they chose 2.

If a model can tell you anything you’d hope to have a human tell you, what’s the difference? It’s a different point of failure— models can go offline, but employees can also quit anytime too.

Re:Discord is ditching Electron and its new app uses less RAM by mahart on Thursday November 05, 2026 @04:19PM (#50384595)
I share the intuition but pragmatically if the codebase will only ever be interacted with through AI agents it probably is nothing and wouldn't matter anyway. You can probably even generate an exhaustive amount of documentation instantaneously if you are concerned about a human knowing their way around.
Re:Discord is ditching Electron and its new app uses less RAM by port11 on Friday November 06, 2026 @05:27AM (#50390576)
You’d think we learned this during all the front-end rewrites of the 2010s…
Re:Discord is ditching Electron and its new app uses less RAM by 7bit on Friday November 06, 2026 @10:53AM (#50393907)
Your entire opinion is founded on assumptions.
Re:Discord is ditching Electron and its new app uses less RAM by superxpro12 on Friday November 06, 2026 @11:07AM (#50394164)
Would i rather have a massively bloated cross-platform electron app, or a native app in rust assisted by ai?

the native app wins every single time. Give me native or give me death!

Re:Discord is ditching Electron and its new app uses less RAM by SZJX on Saturday November 07, 2026 @02:52AM (#50402556)
Isn't that a concern peopld would have about all software? Not sure if there's something particular to a rewrite about this necessarily.