Live data from Hacker News

Ask HN: How to build a desktop app in 2022

news.ycombinator.com

21–30 of 38 posts

Re: Ask HN: How to build a desktop app in 2022

#21
Recent evaluation (not mine) can be found here: https://github.com/benjamin-thomas/wails-elm-template#note-o...

This user ends up with Wails + Elm. Some further discussion on his choice here: https://discourse.elm-lang.org/t/fancy-some-gui-programming-...

If your visualization needs are covered by https://elm-charts.org/ then this might be a fitting combo for you.

Re: Ask HN: How to build a desktop app in 2022

#22

If I was going to try using something new it would be Flutter/Dart. If I was going to use something (old) that might be Qt, or something that I know from way back straight up Java Swing. For something big a framework like Eclipse RCP. Should be able to use Kotlin for these now at least.

I don't understand the hype around Flutter for desktop. It's possible to make a cross platform app, but it only looks good for Android and iOS. I haven't used react native, but I imagine it would be better for cross platform apps because you could create a separate UI for mobile and web, but keep the same backend logic for both.

Re: Ask HN: How to build a desktop app in 2022

#23
Flutter is the most obvious answer here to me.

Very modern, cross platform (windows, mac, linux, fuchsia, iOS, android, web and embedded devices), excellent tooling / developer experience, outputs to native compiled code, battle tested in a lot of real world scenarios against billions of dollars in revenue like Google’s Ads apps for example.

On desktop specifically, Ubuntu last year or two said they were going all in on providing first class Flutter support on Linux and would be using it as their new default for their own desktop apps starting with the installer in the recently released Ubuntu 22.04 (repo link here https://github.com/canonical/ubuntu-desktop-installer)

Should be simple to pick up if you have a JS or even better good TS experience.

https://flutter.dev/ also here is a good charting library to get you started https://github.com/google/charts

Re: Ask HN: How to build a desktop app in 2022

#24

If I was going to try using something new it would be Flutter/Dart. If I was going to use something (old) that might be Qt, or something that I know from way back straight up Java Swing. For something big a framework like Eclipse RCP. Should be able to use Kotlin for these now at least.

I don't understand the hype around Flutter for desktop. It's possible to make a cross platform app, but it only looks good for Android and iOS. I haven't used react native, but I imagine it would be better for cross platform apps because you could create a separate UI for mobile and web, but keep the same backend logic for both.

That was true for a while but no longer. Not sure when you last tried it but maybe take a look here especially in the section of the readme where it has downloads for platform specific sample apps https://github.com/flutter/gallery

Re: Ask HN: How to build a desktop app in 2022

#25
post #23

Flutter is the most obvious answer here to me. Very modern, cross platform (windows, mac, linux, fuchsia, iOS, android, web and embedded devices), excellent tooling / developer experience, outputs to native compiled code, battle tested in a lot of real world scenarios against billions of dollars in revenue like Google’s Ads apps for example. On desktop specifically, Ubuntu last year or two said they were going all in…

How is the responsivity of the UI? I found that all web based UIs have weird delays, like you start writing text and the first couple of letters get lost, or weird delays on pressing buttons that 90s native UIs never had.

Re: Ask HN: How to build a desktop app in 2022

#26
post #25
post #23

Flutter is the most obvious answer here to me. Very modern, cross platform (windows, mac, linux, fuchsia, iOS, android, web and embedded devices), excellent tooling / developer experience, outputs to native compiled code, battle tested in a lot of real world scenarios against billions of dollars in revenue like Google’s Ads apps for example. On desktop specifically, Ubuntu last year or two said they were going all in…

How is the responsivity of the UI? I found that all web based UIs have weird delays, like you start writing text and the first couple of letters get lost, or weird delays on pressing buttons that 90s native UIs never had.

Web support is early days at the moment and right now but you can take a look here https://gallery.flutter.dev/ to see for yourself where it’s at.

I’ve seen hints of the medium term plan however which is AFAIK move from optimised JS to WASM, bring in WebGPU support, use faster canvas based rendering (rather than DOM although both are supported) and rewrite the rendering engine which is currently happening here https://github.com/flutter/engine/tree/main/impeller

I don’t suspect those problems will remain on web for very long, that looks like a very credible path to push out great native level performance on web as well to me.

Re: Ask HN: How to build a desktop app in 2022

#27
I would go for whatever is native on each platform (on Windows, WPF is still the best way, ignore anything WinRT/UWP related), as what bonus points are concerned, Qt would be my answer.

If staying with Web stack is relevant, then PWAs.

Re: Ask HN: How to build a desktop app in 2022

#28
If you're ok with electron's size, then you could look at dotnet + avaloniaui. WPF-like and very portable, desktop and mobile. http://avaloniaui.net/

I'm mentioning the size because dotnet itself will take some space unless some other app already installed it. Or you can try native compilation with it.

Post reply on HN