Live data from Hacker News

Build desktop applications using Go and Web Technologies

github.com

11–20 of 82 posts

Re: Build desktop applications using Go and Web Technologies

#11

The lengths we will go to avoid writing a proper desktop application.

But I already know how to write a web app, I don’t know how to write a desktop app. It’s faster to just write and wrap a web app, and as far as most people can tell, it works just fine. Ya gotta be practical.

It's a strange world that I live in now.

Re: Build desktop applications using Go and Web Technologies

#12

The lengths we will go to avoid writing a proper desktop application.

because there is no proper UI library that does cross platform as well as the web

There are quite a few. Qt, React Native, Xamarin, and Flutter come to mind.

Re: Build desktop applications using Go and Web Technologies

#13
I really enjoyed building small apps with wails. Even though people would prefer that we all used native UI frameworks, the DX is simply incomparable to that of web technologies.

And for most apps using browser based rendering won't be an issue. People often underestimate how optimized mondern browsers really are. And because Chromium is not shipped the bundle size is managable.

Not wanting to use JS on the backend I tried both Tauri and Wails and found the simplicity of Go to just work perfectly for my use-cases

Re: Build desktop applications using Go and Web Technologies

#14

Earlier quoted context omitted.

because there is no proper UI library that does cross platform as well as the web

There are quite a few. Qt, React Native, Xamarin, and Flutter come to mind.

I wouldn't exactly call Flutter native. It uses its own rendering engine and doesn't necessarily behave like operating system native controls. It is not really different from using electron.

Re: Build desktop applications using Go and Web Technologies

#16

The lengths we will go to avoid writing a proper desktop application.

because there is no proper UI library that does cross platform as well as the web

My cross platform application written in C#/.NET and Avalonia strongly disagrees with this crazy assertion.

I can also think of QT and GTK for other languages too.

Re: Build desktop applications using Go and Web Technologies

#18
post #14

Earlier quoted context omitted.

There are quite a few. Qt, React Native, Xamarin, and Flutter come to mind.

I wouldn't exactly call Flutter native. It uses its own rendering engine and doesn't necessarily behave like operating system native controls. It is not really different from using electron.

What are the Linux native controls?

GTK and KDE controls are native to GTK and KDE.

Re: Build desktop applications using Go and Web Technologies

#19

Earlier quoted context omitted.

because there is no proper UI library that does cross platform as well as the web

There are quite a few. Qt, React Native, Xamarin, and Flutter come to mind.

Those are not native (on desktop) in any sense of the word. They don't use native controls. For that, you want WX or SWT, but those come with their own sets of problems.

On Windows, it's not even obvious what native is any more, even Microsoft just uses Web views. Mac is a bit better, but there are still 4 UI libraries to choose from (AppKit, UIKit through Catalyst, native SwiftUI and Catalyst SwiftUI).

I'm personally a fan of AppKit and Win32, but those are "dated" apparently.

Re: Build desktop applications using Go and Web Technologies

#20

Earlier quoted context omitted.

There are quite a few. Qt, React Native, Xamarin, and Flutter come to mind.

Those are not native (on desktop) in any sense of the word. They don't use native controls. For that, you want WX or SWT, but those come with their own sets of problems. On Windows, it's not even obvious what native is any more, even Microsoft just uses Web views. Mac is a bit better, but there are still 4 UI libraries to choose from (AppKit, UIKit through Catalyst, native SwiftUI and Catalyst SwiftUI). I'm personall…

I am working on the UI library and bindings for Go. Still not finished, but currently, the same app can be compiled for Win32, Cocoa, GTK2, GTK3, GTK4, Qt5, Qt6, and Motif. There is a web browser control, a GL canvas, and a regular canvas. I still work on the native table control, though.

https://github.com/gen2brain/iup-go

Post reply on HN