Best Languages for Cross-Platform Desktop Apps?
Asked by
choir row 8
I'm working on a developer tool that needs to be a desktop app, so web and mobile frameworks aren't what I'm looking for. I want it to run on Windows, Mac, and Linux. I've been a bit burned out with JavaScript at my day job, so I want to avoid using Electron or Tauri. I'm considering Flutter, Kotlin, and I'm wondering if there are any other great options out there?
Answers
You have quite a few options! Java (which is somewhat similar to Kotlin), C#, Rust, Python, and Lua can all work for building desktop apps. However, saying _not JS_ doesnโt really limit your choices as much as you might think. Do you have any other preferences or specifics youโre considering?
Reply to this answer
I've played around with Kotlin and Go for cross-platform development. Just a heads up, no framework is truly cross-platform without some headaches. Each language brings its own libraries, and youโll likely end up compiling for different versions of Windows and Mac, plus dealing with platform-specific quirks for graphics and sound. So be prepared for that! Also, keep in mind that your app sizes might be larger due to these libraries.
Reply to this answer
You might also look into Java with Swing or JavaFX. I've had success with it on both Windows and Mac. Sure, you might have to write a little OS-specific code occasionally, but it's usually minor. Using a library like FlatLaf can help modernize your UI. Plus, JPackage works on all three platforms, making installation much easier.
Reply to this answer
If you want to use C# for cross-platform apps, Avalonia is a great choice! It might not be as well-known, but it works across Windows, Linux, and Mac, which is what you're looking for. Itโs worth checking out.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions