I could have sworn I saw some kind of portfolio page not too long ago, with screenshots from different projects using gpui. Can't seem to find it anymore.
it says a lot about who is involved to make it to the big year of 2026 with zero consideration that it would be useful to have these things
visual examples seen as an afterthought instead of a prerequisite
these are the people that cried ageism for the last 15 years not noticing their rejection was actually because they railed against javascript being used outside of jquery
Now they’ve finally found a way to skip from C++ straight to Rust for frontend work
hope the community picks it up and makes it more convincing and accessible, with visual aids
I mean the repo also has literally no content yet... I'm sure it's coming. Despite the title of this HN post, this isn't an announcement from Zed, it's just a random third party noticing that Zed created a GPUI repository and linked to it.
It was not maintained, there was also "gpui-kit" and "gpui-unofficial" which builds on the official repo. [1] Nobody will mourn for community fork. Having one official repo brings so much clarity.
it's not just this community, it seems like it's the entire internet. everyone is either ragebating or butthurt. i cannot imagine what goes through someone's head to downvote your comment - i imagine mostly nothing.
I very much disagree. Not everyone wants to be forced to give their source code to the world, which is what GPLing your library does. Use the MPL if you want that -- at least then the virus-ish nature of the GPL is contained to your library and doesn't force your ideals onto everyone else. This is, IMO, particularly bad for libraries like this one where the ones that are accessible with assistive technology are very limited.
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?
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.
Most of this no longer seems to be true. In fact I just happened to have evaluated especially the text box handling for all the important frameworks last week and egui ended up at the top: https://gist.github.com/CryZe/9dfc2aa74604b31d4f57144e1c92b5...
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.
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?
this kind of comment is such a meme at this point. imgui is perfectly fine for applications other than game debug menus. same with egui and other immediate mode ui frameworks. better, in fact, when you look at the state of pretty much every user interface written in a "proper, reactive ui library"
If you're looking to target web in addition to native platforms (GPU-accelerated), try Refract. Supports pre-rendering and hydration, enabling the initial view of applications to be served via SSR / bundled.
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.
It’s a one man project which yeah, does make it a bit brittle. But I am not sure that gpui docs are much better, and their governance structure brings its own concerns (bus factor for iced, VC culture for gpui).
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.
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.
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.
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.
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 <other_open_source_Rust_GUI>, 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.
TL;DR: (about a16z VC company) "a media company that monetizes through VC".
One of the article's themes was that it's about hockey stick growth, winner takes all mentality. Startups that win aren't necessarily first or best - often they just outspent others in PR and marketing department (especially to hype their IPOs).
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.
Slint is free of charge for commercial desktop projects.
Slint is under multiple licenses. The GPL makes it open source, the royalty free license makes it free of charge on desktop and mobile, only proprietary embedded projects need a commercial license.
I built myself a basic music player with gpui, and aside from not having used gpui-fast myself, I agree with everything they said. What are you basing your claim on?
I think one reason is because it's used by a widely used application in production. A good UI framework has to handle a lot of complex edge cases, and it's easy to trust that it's up to the task.
Or, there is a lot going on there and the library/Rust doesn't hide it from you. Your mileage will vary depending on which format you prefer and that's why I pick Rust.
Idiomatic Rust seemed to always use a ton of method chaining much more than any other language, even TypeScript, so a lot of Rust code just reads like "names.iter().cloned().map(|name|name.trim().to_string()).filter(|name| name.is_empty()).map(|name| name.to_lowercase()).filter_map(...)" all the time.
I've been using Rust pre 1.0 and even though it has come leaps and bounds, it is a very ugly language. Where I will give credit though, it is consistently and uniformly ugly.
Why? () is an empty type, it is used here twice because... well it is a hello-world example, they don't need any state to render, but API expects you to pass a reference to a state, so they use &() and _ as a placeholder for an arg name. And Widget gets () as a type parameter for the same reason.
Straightforward yes, syntactically nice no. Ideally you should at least be able to write
fn view() -> impl Widget {
or
fn view() -> impl BasicWidget {
but even that feels a little bit clunky. You could imagine this working by a) having traits let you choose one of a few different ways to implement them and automatically deriving the rest and b) either not forcing you to specify the <T> of a generic type when the T can be inferred, or making BasicWidget an alias for Widget<()>, or automatically deriving Widget<()> for types that implement BasicWidget.
Looks pretty clear to me and I’ve not written a line of Rust in my life.
New languages always feel a bit inapproachable. It’s like learning Russian (for a westerner). Super impenetrable at first, but at some point (early on!) the alphabet just clicks and then the rest is “just” regular language learning. Same with PL syntax. Overwhelming at first, until it clicks and then you can’t remember what you found overwhelming about it.
Ugly is a matter of taste. But I agree Rust isn't the best language to describe UI: it makes you focus on ownership and lifetimes and explicit memory allocation, instead of the layout. That's in Slint, we uses a DSL for the UI description and keeps the logic in Rust. I blogged about the subject here: https://slint.dev/blog/domain-specific-language-vs-imperativ...
That's pretty much what I ended up doing in a small app. Everything under the UI is Rust because it's fast and I don't have to worry about memory bugs, and the UI itself is QML. Worked out well so far.
It comes with the multi/cross-platform territory because at the end of the day (at varying degrees from one such lib/tool/paradigm to others) it's just one piece of clothing trying to dress every body type, size, shape, and colour.
Please don't post shallow dismissals or instigate generic tangents on HN. The guidelines make it clear we're trying for something much better here. https://news.ycombinator.com/newsguidelines.html
It is actually hard to objectively define how a programming language is ugly. Let the argument be countered. No need to get hurt (w.r.t. policies or rust)
I agree. There are some languages that looked at all the possible symbols on a keyboard and decided that every single one must be used as part of hello world. Then on the opposite end there are those who stopped at open and close parentheses.
This is common in most lower level languages in a large part because they are more powerful.
The funny thing is the replies insulting you for a fairly tame and rather accurate opinion. Almost like rust has this weird subset of users who cannot handle anything negative about their favorite tool.
The syntax highlighting is ugly. It's strange to me to use code that could have been written in exactly the same way in C++, Java, C# as an example of Rust's unique ugliness. There's a whole boat load of ugly programming languages out there for everyone!
I've been blown away by how rich the gpui-kit componentry is: https://gpui-kit.com/component/ I recently wrote a Rust desktop app using iced, and now look at gpui[-kit] with envy ;)
I love GPUI and GPUI-Kit, I think what make GPUI attractive is the Kit components. I've been building the desktop apps around it and love the result so far: https://gpui-kit.com/apps/vtcode/
We're looking forward to using this at ArtCraft. We've already forked egui (and we're going to try to upstream our work). Even so, we find lots of things we cannot use egui for.
GPUI is essential for some of the work we're doing.
I don't really understand the negative views towards egui in this thread. It works great. In my spare time I've been building an open source little harness thing ( https://www.byob.chat/ ) as a fun side project and egui is an absolute blast when it comes to functionality. It so far has behaved as an open canvas, I can press F2, and click and drag any components on my native desktop app to rearrange them, I can also theme it with anything, including live shaders.
I'm running nightly performance benches between all recent heard-off GUI frameworks. It measures the same looking picture with stress test for immediate and retained modes separately.
(Feel free to PR if you want to add another one or fix some non optimal implementation)
rudedogg | 15 hours ago
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 | 13 hours ago
okasaki | 15 hours ago
> No screenshots on web site, docs, or repo
thrance | 14 hours ago
jwstillwater | 11 hours ago
- https://github.com/zed-industries/awesome-gpui
nixpulvis | 14 hours ago
yieldcrv | 12 hours ago
visual examples seen as an afterthought instead of a prerequisite
these are the people that cried ageism for the last 15 years not noticing their rejection was actually because they railed against javascript being used outside of jquery
Now they’ve finally found a way to skip from C++ straight to Rust for frontend work
hope the community picks it up and makes it more convincing and accessible, with visual aids
FrustratedMonky | 10 hours ago
If you are posting a GUI product of any kind.
Put together a demo.
And then, put the link right at top where everyone can find it. Not buried in a help document on page 66.
I know they have one, i've seen it. Couldn't say how to find it again.
mort96 | an hour ago
giancarlostoro | 15 hours ago
nixosbestos | 15 hours ago
ref: https://gpui-ce.github.io/
edit: lmao downvotes for this? what even is this community anymore?
Ciantic | 15 hours ago
[1]: https://github.com/iamnbutler/gpuikit, https://github.com/gpui-archipelago/gpui-unofficial
nixosbestos | 14 hours ago
yedpodtrzitko | 15 hours ago
slopinthebag | 14 hours ago
throwaway69123 | 14 hours ago
nextaccountic | 13 hours ago
ethin | 10 hours ago
throwaway69123 | 8 hours ago
kelnos | 8 hours ago
throwaway69123 | 8 hours ago
looperhacks | 5 hours ago
slopinthebag | 14 hours ago
hmokiguess | 14 hours ago
slopinthebag | 14 hours ago
honourable mention to slint, seems mature and good but I’ve never personally used it.
Klonoar | 13 hours ago
socalgal2 | 13 hours ago
jensen_the_whit | 12 hours ago
you can make it work for whatever usecase you want. that's the beauty of oss.
CryZe | an hour ago
tensor | 10 hours ago
slopinthebag | 7 hours ago
devilsdata | 14 hours ago
nicoburns | 13 hours ago
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.
Klonoar | 13 hours ago
This is why people are flocking to it. Nothing else really matters.
nicoburns | 13 hours ago
aloha2436 | 11 hours ago
slopinthebag | 11 hours ago
Klonoar | 9 hours ago
bendangelo | 13 hours ago
katdork | 13 hours ago
Klonoar | 12 hours ago
There was some rumblings PR-wise of it becoming a thing but I don't know offhand if it went anywhere.
katdork | 13 hours ago
jensen_the_whit | 12 hours ago
bkvanmeter | 13 hours ago
https://refract.rs https://crates.io/crates/refract https://refract.rs/examples/chat
int0x29 | 11 hours ago
ogoffart | 8 hours ago
slopinthebag | 6 hours ago
int0x29 | 3 hours ago
Buttons840 | 9 hours ago
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?
mixmastamyk | 8 hours ago
edstarch | 6 hours ago
evolighting | 6 hours ago
GPUI, in fact, works quite well in most case.
ksec | 12 hours ago
https://nsh.dev/
mapcars | 4 hours ago
https://github.com/ppmpreetham/BUI
Some cool features (I guess coming from Blender) are builtin app menu search and Undo/Redo for UI fields.
rubyn00bie | 13 hours ago
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.
the__alchemist | 11 hours ago
FrustratedMonky | 11 hours ago
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 | 10 hours ago
I don't know anything about <other_open_source_Rust_GUI>, 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.
trymas | 5 hours ago
TL;DR: (about a16z VC company) "a media company that monetizes through VC".
One of the article's themes was that it's about hockey stick growth, winner takes all mentality. Startups that win aren't necessarily first or best - often they just outspent others in PR and marketing department (especially to hype their IPOs).
[0] https://www.oreilly.com/radar/what-happened-to-silicon-valle...
[1] https://news.ycombinator.com/item?id=50602947
tensor | 10 hours ago
edit: Slint has good accessibility support too, but it's commercial for commercial projects.
ogoffart | 9 hours ago
slopinthebag | 6 hours ago
sn0wleppard | 3 hours ago
skohan | 6 hours ago
drnick1 | 13 hours ago
cevn | 13 hours ago
zamalek | 11 hours ago
speed_spread | 10 hours ago
Kushvinthe | 6 hours ago
petterroea | 7 hours ago
...it also has a lot of really nice APIs, and traits allowing you to bolt on extra functionality "for free" is a big part of it.
I am relatively new to Rust but I do find shopping for API features harder than with other languages.
thousand_nights | 13 hours ago
csomar | 12 hours ago
eddythompson80 | 12 hours ago
bloppe | 12 hours ago
YuechenLi | 12 hours ago
the__alchemist | 11 hours ago
vor_ | 11 hours ago
kelnos | 9 hours ago
keyle | 11 hours ago
airstrike | 11 hours ago
The typical GUI example is a counter
Syntax is rarely a reason to choose a language
If Rust feels "ugly" to you, may I suggest you consider how that comes from lack of familiarity, rather than an intrinsic shortcoming of the language?
nicoburns | 10 hours ago
hresvelgr | 9 hours ago
mixmastamyk | 9 hours ago
stonogo | 8 hours ago
ordu | 5 hours ago
Pretty straightforward to my mind.
snackbroken | 58 minutes ago
BetterThanSober | 8 hours ago
> move |_| container::background(c)
There's no way anyone can see this and thinks it is legible
djriley | 8 hours ago
I really like :()), it looks like a monkey with two chins!
skrebbel | 6 hours ago
New languages always feel a bit inapproachable. It’s like learning Russian (for a westerner). Super impenetrable at first, but at some point (early on!) the alphabet just clicks and then the rest is “just” regular language learning. Same with PL syntax. Overwhelming at first, until it clicks and then you can’t remember what you found overwhelming about it.
ordu | 5 hours ago
I see this and think it is very legible. It is hard to imagine why anyone can have issues with this.
airstrike | an hour ago
imtringued | 56 minutes ago
Does it make more sense now?
ogoffart | 7 hours ago
saivon | 7 minutes ago
justauserid | 5 hours ago
tomhow | 5 hours ago
alt-machine-ref | an hour ago
It is actually hard to objectively define how a programming language is ugly. Let the argument be countered. No need to get hurt (w.r.t. policies or rust)
rustystump | 4 hours ago
This is common in most lower level languages in a large part because they are more powerful.
The funny thing is the replies insulting you for a fairly tame and rather accurate opinion. Almost like rust has this weird subset of users who cannot handle anything negative about their favorite tool.
imtringued | an hour ago
bmitc | 12 hours ago
chubs | 11 hours ago
vinhnx | 10 hours ago
m0guz | 8 hours ago
https://github.com/zed-industries/awesome-gpui
birdboat00 | 3 hours ago
SweetSoftPillow | an hour ago
hilti | 7 hours ago
https://yappologistic.github.io/CUI/
drcongo | 2 hours ago
echelon | 11 hours ago
We're looking forward to using this at ArtCraft. We've already forked egui (and we're going to try to upstream our work). Even so, we find lots of things we cannot use egui for.
GPUI is essential for some of the work we're doing.
bobajeff | 8 hours ago
scronkfinkle | 11 hours ago
chrismorgan | 3 hours ago
sarojbelbase | 8 hours ago
mort96 | an hour ago
faceless3 | 58 minutes ago
(Feel free to PR if you want to add another one or fix some non optimal implementation)
https://samoylenkodmitry.github.io/Cranpose/?tab=performance