Top
Best
New

Posted by xvilka 1 day ago

Rust cross-platform GPUI components(github.com)
499 points | 210 commentspage 2
unwind 1 day ago|
That showcase application (other than Zed) looks awesome, but the very fancy-looking home page [1] fails to have a one-liner explanation of, uh, what the application does. Please consider fixing.

[1]: https://longbridge.com/desktop/

nicce 1 day ago||
I guess they expect that most people come there from the top level domain. (https://longbridge.com)
ribelo 1 day ago||
"Multi-platform Support, Professional Market Monitoring" imho is a good explanation
Animats 1 day ago||
Unfortunately, it's a framework. That is, it demands to own the event loop. It has a type "Application" (This is Rust, don't get to say "it has a class Application, which you subclass", but that's how it works.) That's fine for a cold start where you do everything their way, but tough if there's already an event loop. egui, in contrast, is just a library crate which needs to be called on each frame.
ratatoskrt 1 day ago||
No mobile support. I get that a desktop UI framework doesn't want to target smartphones, but I think iPads (and bigger Android tablets) can cope well with more traditional desktop paradigms.
ramon156 1 day ago||
Although its still very vertically scoped for zed, I'm way more hyped about this UI than iced, dioxus ui, gtk-rs, etc. because of how complete it already is in an early stage.

Then again I love zed so I might be biased.

Keyframe 1 day ago||
I'm interested in how's the battery life while running a thing ilke this. Another thing I'm interested in does it support rendering to texture.. usage being used as a texture on an object (monitor let's say) in a game or rendered as a texture with opacity on a quad/triangle over a screen as a UI layer or a HUD
daakus 1 day ago|
A quick check with release build on macOS shows the component demo has a non-zero energy impact in the background (per activity monitor), but the input example has zero energy impact while in the background. This is already better than many new from-scratch UI libraries. The foreground impact is harder to measure.
sagacity 1 day ago||
It's interesting to see more people building on top of GPUI. I recently also saw https://github.com/Augani/adabraka-ui which looks fairly similar.
nu11ptr 1 day ago|
This looks great too! Hopefully one or more of these component libraries catch on and stay well maintained.
georgeburdell 1 day ago||
2 hours after it's posted on HN, the repo has its first "readme.md typo fix" commit.
klaussilveira 1 day ago||
Sad to see that the C++ community is sleeping on this. There are no modern GUI components or toolkits, specially under such a permissive license.

Excited about the future of Rust GUI development, this is fantastic.

pjmlp 17 hours ago||
Qt is modern enough, still there are hardly any Rust libraries as feature rich in capabilities and designer related tooling.

It is also the KDE infrastructure, used in plenty of infotaiment, factory dashboards and medical devices.

lelanthran 1 day ago|||
> Sad to see that the C++ community is sleeping on this. There are no modern GUI components or toolkits, specially under such a permissive license.

I'm not sure what you are talking about (there are plenty of x-platform C++ GUI toolkits with components). Maybe you mean "accelerated toolkits"?

fschuett 1 day ago||
Azul.rs is making lots of progress now and it'll have decent C / C++ / Python bindings (so it won't be Rust-only). But I guess for now GPUI is more mature.
SilverSlash 1 day ago||
I was expecting something ugly but these actually look beautiful!
brainless 1 day ago|
This looks very good from the screenshots. I will try this as quickly as I can. I have been building with egui and have tried Iced, Slint and Makepad.

I built (agentic coded) a stocks viewer app for Indian stock market data: https://github.com/brainless/Indistocks. It was a fantastic experience as to how easily I could build a GUI app.

My main product also uses egui: https://github.com/brainless/nocodo. It used to have a web app frontend and I moved to desktop app after the experiment with Indistocks. The experience has been really good, also coded with agents.

Desktop apps are fun and even on my somewhat old and slow laptop (i5 8th gen, 16 GB RAM, 2GB nvidia dedicated graphics), they are so much faster than web apps on Chrome (on Linux). I want desktop apps to make a big comeback, we could use so many old devices.

More comments...