4 ms·
In what sense it is an alternative to ElectronJS? If size than not that much as Tauri is based on Node.JS that is 56 Mb executable by itself. Yet Node.JS is p
by c-smile 6y ago
In what sense it is an alternative to ElectronJS?
If size than not that much as Tauri is based on Node.JS that is 56 Mb executable by itself.
Yet Node.JS is pure C/C++ code. It is not clear what does "written in Rust" mean at all and what benefits Rust provides in that setup.
For the comparison: my scapp.js.exe ( https://github.com/c-smile/sciter-js-sdk#demos https://github.com/c-smile/sciter-js-sdk#demos ) that is Sciter.JS packaged as standalone exe without dependencies is of size 5.3mb - at least 10 times less than Node.JS, Tauri and ElectronJS.
That exe includes HTML/CSS, QuickJS (ES2020) engines and essential portions of Node.JS runtime: https://github.com/c-smile/sciter-js-sdk/blob/main/docs/md/module-sys.md https://github.com/c-smile/sciter-js-sdk/blob/main/docs/md/m...
So is the question above, alternative in what sense?
- datagram 6y agoTauri apps don't use the NodeJS runtime. You have to write your app's backend in Rust. Like you said, the NodeJS runtime is tens of MB; if you look at their demo app you'll see that it doesn't even break 3MB.
- hojjat12000 6y agoIf you look at the website you will see that it is not bundling Node.js, apps can be as small as less than 1mb. It is written in rust (because the backend is, also it will integrate with Deno in future which in Rust). It is still in development, but if you look at the website you will see the features that it provides or will provide (such as system integration) and the value that it adds.