is a webassembly build possible?

50 views
Skip to first unread message

elpeleq42

unread,
Dec 2, 2021, 9:18:24 AM12/2/21
to nw.js
Considering there isn't much interest in making an android/iOS version of NW.js, would it be reasonable to ask for a webassembly compilation? 

In case it worked, NW.js could basically run anywhere(android, iOS, web browsers, maybe even consoles)

The Jared Wilcurt

unread,
Feb 23, 2022, 11:06:34 AM2/23/22
to nw.js
NW.js is essentially a Chromium browser with Node built in and light API layer to interact with desktop operating system. I can't be ported to mobile because the chromium and node version are for desktop systems and the NW.js API is accessing OS specific API's under the hood. On top of all of that WASM tends to increase the total size in bytes of the original code (if using a tool like emscripten, or something similar), and NW.js is already over 300MB in size. This is acceptable for a one-time download of a desktop app (especially since it will be zipped on download and much smaller at that point). But WASM would need to sit and wait for the app to download in your browser.

You are much..... MUCH.... better off writing your JS app in a way that works with NW.js (cross-platform desktop) AND a cross-platform mobile tool, such as:
  • NativeScript-Vue
  • VueNative
  • Weex
  • NativeScript
  • Ionic
  • PhoneGap
  • ReactNative
  • etc.


Reply all
Reply to author
Forward
0 new messages