Skip to content

Comment on Show HN: Sauron-native – A native cross-platform GUI for Rustparent

Comments

I pimp this project any chance I get:

https://github.com/andlabs/libui

We're considering using it for the next generation of the ZeroTier desktop UI. Unfortunately no mobile support (but we already have native mobile UIs), but it looks like the best contender for a cross platform UI lib that is light and fluffy and simple. Rust bindings should be trivial. There are high quality Go bindings here:

https://github.com/andlabs/ui

> a cross platform UI lib that is light and fluffy and simple

Can you comment on whether you evaluated Java Swing or Java FX as a cross platform UI lib for your needs? I am curious to hear others thoughts on the matter.

Definitely not light and fluffy ...

When compared with having to deal with Electron, it surely feels like it.

What sort of memory consumption and general overhead are we talking about here?

If that is a major factor use wxwidgets. It is at least reasonably complete

Well, people run Java UIs on Raspberry Pis which demonstrates that the overhead can be very low.

Raspberry Pis have a ton of RAM. Most old ones have 512 or 1024 MB, and new RPi4s up to 4 GB.

If something runs on a Raspberry Pi, that's not exactly a proof it's light weight.

The problem I ran into using Pis was that 3D hardware didn't seem to want to play well with Qt. Unfortunately since using 3D acceleration for UIs is all the rage almost nothing worked without a lot of tinkering (and even then).

I'm pretty sure this has changed since the last major Raspbian update, but the Pi still isn't quite at parity with more mainstream desktop hardware.

okay then, I guess a better data point would be that Java UIs run on twenty year old desktops (500Mhz, 128 MB RAM)

libui is limited to the point of uselesness. You will very quickly reconsider once you try using it.

Javafx/tornadofx or maybe wxwidgets/qt is a better choice

I so forgot about tornadofx.. it's just what I was looking for. Thanks.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.