HACKER Q&A
📣 obdev

Rust vs. Go vs. C++ for web-based desktop applications?


Rust has Tauri, Go has Wails, C++ has wxWebView and webview libraries. They link OS-provided modern browser engines into the compiled application, so the resource usage is modest compared to the popular Chromium + Node.js combo known as Electron.

I could not find a fulfilling discussion comparing these three. Rust vs C++ are usually measured for kernel, embedded, performance-critical tasks, and such. Go vs Rust are often measured for server-side efficiency.

How would you evaluate Rust, Go, and C++ for implementing the "business logic" of an application that's going to run on a user's Linux/macOS/Windows personal computer, when the GUI mechanics are offloaded to the web widget?


  👤 ogoffart Accepted Answer ✓
Why do you want to make your desktop application "web-based", instead of using a framework that renders without the need of a browser?

👤 sim7c00
i wouldnt know what is best honestly. but i can say rust is giving me the most fun and least headaches. (thats saying a lot because i am not some kind of borrowchekerguru). the tooling and docs etc. make it just very nice to work in. hate go package mgmt with a passion wont ever touch it again :')