Live data from Hacker News

Rust cross-platform GPUI components

github.com

71–80 of 225 posts

Re: Rust cross-platform GPUI components

#72
post #36

Rust certainly needs more GUI component collections. There are lots of GUI toolkits, but a comparatively small number of prebuilt components you can use with any of them. This collection looks quite useful, though the component list is mostly indistinguishable from a list of components for a web framework. The webview component is the only one that seems somewhat specific to native applications. So for something like…

> lose styling consistency Yes. And that is (almost always¹) a good thing. Only the designers of an app, product-owners etc. want their app to "look consistent over platforms". Your users want the file-dialog, window-chrome, menus etc consistent too. But for them consistent means consistent with the 20+ other applications they use on a daily base. So native. ¹ Obviously some software excepted. E.g. categories like "e…

> But for them consistent means consistent with the 20+ other applications they use on a daily base. So native.

This was probably true 20 years ago but is not true today.

The majority of apps your average (non-HN) user uses is actually on their phone and not using the native UI widgets.

On their desktop they’re using apps like Spotify, Slack, and Microsoft Office or Google Docs.

The average user of today is not using a lot of native apps.

Re: Rust cross-platform GPUI components

#73

It seems like trading applications tend to be what demands the performance to push R&D like this for Rust GUI. My team at Kraken worked on https://iced.rs/ which powers https://www.kraken.com/desktop , a very similar application. You can definitely feel the difference in a Rust GUI vs. a web view. It can maintain high frame rates doing so much on the screen at once.

Are any pieces of this open source by chance? (other than iced itself)

Re: Rust cross-platform GPUI components

#74
post #47
post #5

I find it sad that a lot of foundational open-source software is created/maintained by trading/crypto/money laundering companies. But OTOH it's great that they at least contribute _something_ to the society!

gpui itself is maintained by the folks at https://zed.dev . Also, Longbridge, who seem to be using this GPUI component library for their Longbridge Pro [1] app, look to me like a regular online brokerage company. What is your issue with that? 1: https://longbridge.com/desktop/

zed looks nice, but I am going to wait until the American port to use it.

Re: Rust cross-platform GPUI components

#75
post #5

I find it sad that a lot of foundational open-source software is created/maintained by trading/crypto/money laundering companies. But OTOH it's great that they at least contribute _something_ to the society!

I don't believe that to be the case. The ecosystems where this is most true would be Rust, which has a lot of crypto use, and maybe ocaml from Jane Street. But for the most part I have to doubt this.

Re: Rust cross-platform GPUI components

#76
post #3

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/

"Multi-platform Support, Professional Market Monitoring" imho is a good explanation

Re: Rust cross-platform GPUI components

#77

Earlier quoted context omitted.

No. What is the likelihood of an attack on a desktop program via memory unsafety?

Really high? What do you run your browser as?

Browser runs complex untrusted code from the internet. Most desktop programs don't do anything like that. The servo programmers were riding a motorbike. Using Rust for a desktop program would be more like wearing a crash helmet in a car.

Re: Rust cross-platform GPUI components

#79
post #47

Earlier quoted context omitted.

gpui itself is maintained by the folks at https://zed.dev . Also, Longbridge, who seem to be using this GPUI component library for their Longbridge Pro [1] app, look to me like a regular online brokerage company. What is your issue with that? 1: https://longbridge.com/desktop/

zed looks nice, but I am going to wait until the American port to use it.

May I ask what you mean by this? For all I know, Zed Industries Inc is incorporated in the US and funded by US venture capital.

BTW, I am not associated with zed in any way.

Re: Rust cross-platform GPUI components

#80
post #79

Earlier quoted context omitted.

zed looks nice, but I am going to wait until the American port to use it.

May I ask what you mean by this? For all I know, Zed Industries Inc is incorporated in the US and funded by US venture capital. BTW, I am not associated with zed in any way.

Its a stupid joke. Americans say Z==Zee, rest of the Anglosphere says Z==Zed
Post reply on HN