Posted April 01, 2020
low rated
Just something I have been thinking about:
Suppose I want to write an app(lication), and I want it to run on both desktop and web platforms, and I am wondering what the preferred way of doing this would be.
Specifically, suppose I need to be able to target the following desktop platforms:
* Windows
* Mac OS
* Linux (64-bit x86)
* Raspberry Pi
And also the following web browsers (regardless of underlying OS):
* Firefox
* Chromium
I have found two main approaches and am wondering which one is preferred, or if there is another idea I haven't even thought of:
1. Develop the app as a web app and use Electron (or a similar technology) to create the desktop versions.
2. Develop the app as a desktop app in a language like C++ or Rust and use a compiler that targets WebAssembly (like emscripten) to port it to the web.
So, any thoughts? What would you do as a developer? What would you prefer as a user?
Suppose I want to write an app(lication), and I want it to run on both desktop and web platforms, and I am wondering what the preferred way of doing this would be.
Specifically, suppose I need to be able to target the following desktop platforms:
* Windows
* Mac OS
* Linux (64-bit x86)
* Raspberry Pi
And also the following web browsers (regardless of underlying OS):
* Firefox
* Chromium
I have found two main approaches and am wondering which one is preferred, or if there is another idea I haven't even thought of:
1. Develop the app as a web app and use Electron (or a similar technology) to create the desktop versions.
2. Develop the app as a desktop app in a language like C++ or Rust and use a compiler that targets WebAssembly (like emscripten) to port it to the web.
So, any thoughts? What would you do as a developer? What would you prefer as a user?