News for hackers. Stuff that matters.
Re:Discord is ditching Electron and its new app uses less RAM by ethin on Thursday November 05, 2026 @02:05PM (#50383017)
The fact they're using gpui is... Bad. Is someone trying to make it integrate with native accessibility frameworks? If not (and if they force the native app on us) this transition is going to lock out a ton of people who use assistive technologies.
Re:Discord is ditching Electron and its new app uses less RAM by tensor on Thursday November 05, 2026 @02:12PM (#50383106)
Yes, see: https://github.com/longbridge/gpui-kit. I've been following these rust UI toolkits and things like accessibility have consistently been missing. This is the first time I've seen a UI library that appears complete enough to build a real product with.
Re:Discord is ditching Electron and its new app uses less RAM by ethin on Thursday November 05, 2026 @02:36PM (#50383408)
Yeah, that's what worries me. Pretty much every Rust UI library I've seen which isn't wxdragon/Relm/GTK lacks accessibility. And most of them don't even have the primitives for it (given that most of them are abandoned).
Re:Discord is ditching Electron and its new app uses less RAM by nextaccountic on Thursday November 05, 2026 @03:21PM (#50383960)
It was real world use by COSMIC that motivated Iced to add a11y support in the first place

So Discord using gpui could mean it may get the needed features

Re:Discord is ditching Electron and its new app uses less RAM by tensor on Thursday November 05, 2026 @03:30PM (#50384070)
I don't understand. You can do accessibility with GPUI today. I linked a repo that shows how.
Re:Discord is ditching Electron and its new app uses less RAM by ethin on Thursday November 05, 2026 @03:49PM (#50384298)
Yes, and this is good progress (my comment downthread was before I just looked). According to it it uses accesskit, which is quite good already but still in development so accessibility would not be as good as using UIA directly. I am hopeful though that accesskit (which is also used in Godot) will keep getting better and these gaps can be closed.
Re:Discord is ditching Electron and its new app uses less RAM by tensor on Thursday November 05, 2026 @04:01PM (#50384413)
Yeah, and big products like discord using them should help push that along.
Re:Discord is ditching Electron and its new app uses less RAM by Klonoar on Friday November 06, 2026 @09:12AM (#50392497)
COSMIC runs a fork of iced and things don’t make it back upstream nearly fast enough due to the one-maintainer-bus-factor.

You can’t exactly lump them together.

Re:Discord is ditching Electron and its new app uses less RAM by ecshafer on Thursday November 05, 2026 @04:30PM (#50384721)
This response doesn't make sense?

GP you asked if there is accessibility P response: yes, here You then respond that worries you and dismiss the proof?

Re:Discord is ditching Electron and its new app uses less RAM by ethin on Thursday November 05, 2026 @04:53PM (#50384995)
> This response doesn't make sense?

Apologies. I was noting that the lack of accessibility worried me (well, and weird accessibility breakage too).

Re:Discord is ditching Electron and its new app uses less RAM by rat9988 on Friday November 06, 2026 @02:23AM (#50389230)
You are dismissing again the answer you are getting. Why do you think it is lacking accessibility despite using a framework claiming " GPUI Kit ships 75+ documented components and primitives, WebAssembly support, AccessKit accessibility"
Re:Discord is ditching Electron and its new app uses less RAM by d1sxeyes on Friday November 06, 2026 @04:09AM (#50389953)
To be clear, GPUI Kit is not the same as GPUI. I am not sure if Discord is using GPUI Kit, but accessibility natively is possible with either.

It's reasonable to be concerned that Discord may not have focused on accessibility while rewriting.

It's less reasonable to be concerned that it may be impossible to write accessible apps using GPUI, as that is now possible (https://github.com/zed-industries/zed/blob/main/crates/gpui/...) although this is a fairly recent addition.

It's also less reasonable to assume that an app made with GPUI Kit will automatically be accessible. You still need to put effort into it.

Re:Discord is ditching Electron and its new app uses less RAM by somenameforme on Friday November 06, 2026 @09:43AM (#50392907)
I don't know why people are ignoring the pink elephant here. For medium scale projects, like a Discord app is going to be, LLM competence level is now at a superhuman level, including on higher level architectural/structural type decisions. I would be beyond surprised if the rewrite wasn't largely done by Claude (or similar). And in this context accessibility is also just a prompt away, if it wasn't included from the get-go, which it probably would have been.
Re:Discord is ditching Electron and its new app uses less RAM by ethin on Friday November 06, 2026 @10:47AM (#50393824)
Accessibility isn't just something you one-shot. It takes a lot of back-and-forth and testing with actual screen readers/accessibility scanning tools to be good.
Re:Discord is ditching Electron and its new app uses less RAM by ethin on Friday November 06, 2026 @10:50AM (#50393870)
I'm not dismissing it, just uncertain how good it is. Quality over quantity and all that. You can have 75 or 100 or 200 UI components and some can be perfectly accessible while others might not be even things accesskit supports right now. Or Accesskit may only partially support a widget. As I've said downthread, I'm hoping that Discord using a UI toolkit like this will cause upstream effects with respect to Accesskit coverage, so we'll have to see when they start migrating people over to it.
Re:Discord is ditching Electron and its new app uses less RAM by marcprux on Thursday November 05, 2026 @05:51PM (#50385671)
[delayed]
Re:Discord is ditching Electron and its new app uses less RAM by tommica on Friday November 06, 2026 @01:24AM (#50388865)
Oh that looks fricking neat! Might wanna port my little diff-tool to this for funsies!
Re:Discord is ditching Electron and its new app uses less RAM by selfmodruntime on Friday November 06, 2026 @12:58PM (#50395849)
Turns out the browser (electron) wasn‘t always horrible after all.
Re:Discord is ditching Electron and its new app uses less RAM by the__alchemist on Thursday November 05, 2026 @02:43PM (#50383492)
This is one angle. I do not see it as a deal breaker in the way you phrase it. I suppose we all have our own. If everyone's had to be satisfied, we'd have no software!
Re:Discord is ditching Electron and its new app uses less RAM by Forgeties79 on Thursday November 05, 2026 @02:51PM (#50383590)
It’s potentially a dealbreaker for millions of people whether they want it to be or not unfortunately. For them accessibility is not optional or can otherwise be taken as a “wait and see” issue.
Re:Discord is ditching Electron and its new app uses less RAM by ethin on Thursday November 05, 2026 @03:10PM (#50383825)
This is a dealbreaker for me even if I didn't want it to be. If your application does not either interact with a11y frameworks (UIA, AT-SPI, NSAccessibility, ...) or does not implement an equivalent that communicates with my screen reader, I literally cannot use your application. I could OCR your application, or use AI and have it use your app for me via screenshots, but neither are even remotely comparable to using the native platform accessibility frameworks.
Re:Discord is ditching Electron and its new app uses less RAM by veverkap on Thursday November 05, 2026 @03:32PM (#50384101)
Could someone use AI to make the GPUI kit become accessible? You (or someone else) mentioned that it doesn't even have the primitives so is it a non starter?
Re:Discord is ditching Electron and its new app uses less RAM by ethin on Thursday November 05, 2026 @03:46PM (#50384268)
No, I mentioned that most rust UI toolkits lack even the primitives. The primitives for even basic accessibility, without accessibility frameworks, would be things like focus events, carrot navigation, navigation in containers such as list/combo boxes, line/paragraph handling in multi-line edit boxes and the like. Adding native accessibility forces you to do a lot of this but just in a different way than routing text directly to a screen reader.

As for me doing it? According to prior comments in this thread it's already done, although I haven't tested it so I don't know how complete it is. Adding UIA support to a framework is different from making that support good (screen readers can be very picky). As an example, say you have a label of an edit box. If you position the label just right within it's parent container a screen reader will pick it up automatically and just announce it as you focus the edit box. But if you don't, all you'll hear is "edit <contents|blank>". There are ways around this (e.g., you can override label detection) but the "ideal" state is that the screen reader picks up that stuff automatically and you just give it the bounds of the various controls and UI elements.

Re:Discord is ditching Electron and its new app uses less RAM by selfmodruntime on Friday November 06, 2026 @01:02PM (#50395909)
Neatly phrased comment, where „fuck the blind“ would have sufficed.
Re:Discord is ditching Electron and its new app uses less RAM by davkan on Thursday November 05, 2026 @02:45PM (#50383513)
Could maybe use the browser client as a workaround.
Re:Discord is ditching Electron and its new app uses less RAM by anthony-eid on Thursday November 05, 2026 @02:59PM (#50383691)
gpui does have a11y support for accessibility, Zed just hasn't piped it through yet. I'm also pretty sure Discord is using their own fork of gpui with patches to add any missing functionality they needed
Re:Discord is ditching Electron and its new app uses less RAM by ethin on Thursday November 05, 2026 @04:54PM (#50385008)
I really hope Zed gets in the support, I'm curious to try it given all the good things said about it (particularly on HN :))