Lurker News

Comments (140) 23 threads

Earlier comments
sarojbelbase1 reply#
I know this helps lots of people but very strange that it wasn't by default.
mort96#
It started out as a GUI library made by the Zed developers for Zed. An implementation detail, more or less.
slopinthebag6 replies#
i'm confused why gpui get's so much attention; it's not fast, it's not accessible, it's not ergonomic, and it's not beautiful. there are more mature options in the rust space. what gives?
hmokiguess1 reply#
can you share those options? curious about your take
slopinthebag3 replies#
egui is the most mature, has built in accessibility, and is quite ergonomic and flexible. iced is a good alternative, it’s used for cosmic desktop and is a good option if you don’t want an imgui. if you’re happy with the trade off of using a web view, dioxus is really good - you still build the ui in native rust (not wasm) and the web view is used purely for rendering so that negates some of the cons of something like tauri (no ipc mechanisms required), and you get the rendering and accessibility of the web.

honourable mention to slint, seems mature and good but I’ve never personally used it.

Klonoar#
Cosmic runs a fork of iced, not iced proper.
socalgal23 replies#
egui is designed for english only game dev tools. It is not remotely mature for actual tools that support CJK, IMEs, and accessibility

Continue this thread — 3 replies

tensor3 replies#
egui is immediate mode. That rules it out for reasonable performance for complex apps.

Continue this thread — 3 replies

devilsdata3 replies#
What else would you recommend? egui?
nicoburns6 replies#
Not the OP, but:

   1. egui (30.3M total / 9.2M last 90 days) (note: immediate mode)
      https://crates.io/crates/egui

   2. Iced (3.2M / 770k)
      https://crates.io/crates/iced

   3. Slint (2.4M / 955k) (note: GPL/commercial license)
      https://crates.io/crates/slint

   5. Dioxus Native (181k / 26k)
      https://crates.io/crates/dioxus-native

   6. Freya (49k / 12k)
      https://crates.io/crates/freya

   7. Floem (45k / 15k)
      https://crates.io/crates/floem

   8. Vizia (7k / 700)
      https://crates.io/crates/vizia
All of those options are technically superior to GPUI in my subjective opinion. GPUI focusses pretty narrowly on Zed's use case, and suffers from severe NIH syndrome (so has put a bunch of time and effort into building things that already exist as crates in the Rust ecosystem).

GPUI does have a pretty nice component library. And of course an excellent code editing control. And it's... fine. But I wouldn't choose it over the other options.

Klonoar5 replies#
> GPUI does have a pretty nice component library.

This is why people are flocking to it. Nothing else really matters.

Continue this thread — 5 replies

bendangelo2 replies#
Iced has a lot of limitations. Just look at their roadmap. For example it doesn’t support text highlighting but maybe it does now.

Continue this thread — 2 replies

katdork1 reply#
egui is probably worse technically (advocating for its use is like advocating for people to write their applications with imgui; it's good for game dev uis but please don't otherwise). iced is probably the best there?

Continue this thread — 1 reply

int0x294 replies#
How many of those have any compatibility with OS accessibility APIs? GPUI appears to have some support natively which is more than a lot of native Rust UI frameworks.

Continue this thread — 4 replies

Buttons8403 replies#
Iced, one of the top Rust GUIs, has a little less than 10 pages of documentation--that's it, that's ALL of it.

In the past month 1 person has made commits.
What does it matter if it's superior?
Actually, AI has come into existence since I last looked at it, so maybe docs aren't needed anymore?

Continue this thread — 3 replies

evolighting#
When I still wrote code by hand about a year ago, on Windows, all those crates didn't really work as expected, or weren't that easy—so many edge cases didn't really work and needed to be fixed: IME, CJK font, anti-aliasing, zooming, mouse event, and so on.

GPUI, in fact, works quite well in most case.

ksec1 reply#
I have been trying to submit NSH on to HN. It is still early days but worth checking out.

https://nsh.dev/

swaptr#
This is incredible work.
mapcars#
BlenderUI is a unbelievably fast ui and a young project with some potential, in their own words its "Twice as good as GPUI"

https://github.com/ppmpreetham/BUI
Some cool features (I guess coming from Blender) are builtin app menu search and Undo/Redo for UI fields.

rubyn00bie1 reply#
There is accessibility, but it’s not fully baked. I’m currently building something with it, using Claude and Deepseek, and one of my requirements was accessibility… I forget the specifics, it’s either missing references in the docs or on main. Either way, Claude found it and I told Claude it would have to implement anything missing. It took about a week, and used my entire quota that week, but everything seems to be good at this point.

Thus far, it has also been quite fast hitting my performance targets which were also quite aggressive. The only real issue I’ve had is memory usage is higher than I’d like but it’s still 1/3rd of what I’d get if I was using Electron… and if I’m remembering right it’s mostly because of the driver stack.
I need to figure out what I plan on doing with the app when this first version is finished: open sourcing it, charging for it, or some combination of the two. Though I can’t imagine not trying to upstream or release the accessibility work.

cameron1024#
Hi, I implemented the accessibility support in GPUI (disclaimer: I am a zed employee). If you have patches for missing features, I'd love to get them upstreamed. Feel free to tag me on github (username is cameron1024) if you have any and I'd be happy to take a look.
the__alchemist4 replies#
It's from a VC-funded company. I don't understand the mechanism, but VC-funded software tends to dominate in social media attention and online discussion when introduced.
FrustratedMonky#
Its because a VC is going to throw at least some money at marketing.

You'd be surprised what throwing just 1 or 2 people at marketing can do to get visibility.
Compared to just a group of engineers crunching out code.
The group of engineers might be building something great, but its just a tree falling the forest. Nobody hears it. You have to spend some time broadcasting it, making demo's, posting about it.

Buttons840#
I think it's because a project with funding is going to have progress and at least some community. If people are being paid to work on it, they probably have time and care to do things.

I don't know anything about , but I expect the documentation to be half-baked, and if I look at the GitHub repo the most recent activity is going to be somebody who made a bug report 6 weeks ago and nobody has responded to it yet.
The team behind the software matters and a team with funding is appealing.

smrtinsert#
Heavy discovery channel efforts. Search, socials, llms...
tensor3 replies#
GPUI kit is the only UI framework that is accessible, actually. And it is fast. Beautiful is irrelevant as you can style it however you like. It can do nice smooth animations if you want too. There is also gpu-fast that fixes some important performance issues.

edit: Slint has good accessibility support too, but it's commercial for commercial projects.

Continue this thread — 3 replies

Continue this thread — 1 more reply

rudedogg1 reply#
It would be better to call it zgpui, zed-gpui, or Dear GPUI.

I feel like naming a library after either GPUI/GPUGUI make talking about this technique difficult. And the technique didn’t originate in this library.

nextaccountic#
But this isn't called gpugui. Gpui is a given name, it doesn't describe any specific technique

Load more comments