logoalt Hacker News

liftytoday at 7:09 AM6 repliesview on HN

Slightly off topic, but what is the best way to build a cross platform GUI app these days, but something with good graphics, typography, etc. I mean a beautiful app. I would prefer to have a shared core in Go, and then something around it to give me the GUI. I know on MacOS it is straightforward to build something beautifully looking with their native Swift toolkit, but not sure on Linux and Windows. Is it better to just use a web view, or perhaps Flutter?


Replies

SyneRydertoday at 7:40 AM

I keep coming back to this and not finding / choosing a solution. It sadly feels like people who are doing this are just going with Electron now. I'm mostly coding in Go now, so I seem to be looking for a similar solution to you.

This page has a lot of cross-platform GUI toolkits, but it focuses on C++:

https://philippegroarke.com/posts/2018/c++_ui_solutions/

I've been drawn to wxWidgets (actual native controls on each platform) or JUCE (most of the cross-platform commercial Windows/Mac/Linux audio effects I've bought are made in JUCE). But I've not had a chance to give either a proper try.

Years ago I used to all my cross-platform work with Xojo, a kind of cross-platform Visual Basic. That actually worked well for me, but then you're writing code in the Xojo Basic language, and it had some odd file formats for projects (not just raw text source files like C++ / Go would give me). Once LLMs hit I felt I probably needed to move on from Xojo to something less proprietary: https://www.xojo.com/

PaulKeebletoday at 9:08 AM

The last one I did was using Fyne in Go, which is quite cross platform but its software drawn not native. Its targeting phones as well so its cross compatibility is very good but at the cost of giving you the full complexity of desktop applications, it does not have a highly capable table view for example. Since its written in Go this is what you will develop in.

Otherwise I think its QT and GTK on C/C++ as the other option across the desktop operating systems, neither is native on anything but Linux but they also look OK but I think a lot of people would rather avoid C nowadays for application development.

hypendevtoday at 7:38 AM

I'm actually working on that - it's called Hypen - (hypen.space).

You can build your core in Go or any other supported language, and write the UI in the Hypen DSL.

While desktop is still in the works and should be out in the next week or two, currently the alpha supports Native iOS, Android, Web and Web Canvas, and just like mobile, the Desktop will be _real_ native.

show 2 replies
kitdtoday at 7:18 AM

I've not used it myself, but I've heard good things about Wails.

https://wails.io/

show 1 reply
aiscomingtoday at 7:21 AM

if typography is critical for you, nothing has better support for it than the web platform

show 1 reply
d12bbtoday at 9:09 AM

Only reasonable way is shared core with thin UI layer on top. For Rust there is Crux, don’t know for other languages. Everything else is just compromise, like all Flutter apps I know on iOS are just atrocious.

show 1 reply