HACKER Q&A
📣 interactivecode

Best way to write Native apps for Mac, Windows and Linux?


I'm interested in building an desktop app for all platforms. I would like to move away from building apps in the browser but I'm only familiar with JavaScript and web-technologies.

Since Electron is frowned upon, what language or platform would be suitable?

Requirements: - Mature language - Mature ecosystem - Performance better than Electron or a fast website

A major plus: - Big community of quality tutorials - Big community of packages - It's not too hard to learn for someone who knows JavaScript

-----

I've looked at the Rust eco-system, but most GUI libraries are not there yet. Swift UI looks great to work with, but would only target 1 platform. React Native or Flutter for desktop is in alfa/beta state.


  👤 NikGeeonx Accepted Answer ✓
Perhaps give Geeonx https://www.geeonx.de a try. It is a multiplatform C shared library. Geeonx offers one C sourcecode for Linux, Windows and macOS.

👤 Akcium
Why Elector is bad btw? I haven't used it, but just curios, since I want to.

For small apps it seems okay?

I'm in the same boat as you, I'm a javascript developer but I want to also promote my app to desktop.


👤 pestatije
"Best" is relative. Two "classical" ones are c++ (qt) and java (swing, swt, or fx).

👤 rvz
Then the answer to your question is Qt or in your case QtQuick.

👤 kenniskrag
qt?