Using WebAssembly modules can significantly enhance system capabilities.
I propose an example of potential usage: a big number calculator with a limit of only 10,000 digits.
The mathematical module was written in Rust and compiled into a WebAssembly module. To load the module into memory, it was converted to base64 format and directly embedded into the client-side script.
I specifically implemented it not as a widget but as a client-side script for use in forms and UI actions, though it would be straightforward to package it as a widget as well.
PS. One thing that didn’t work: I couldn’t run the module as a server-side script.
PPS. The attached archive also includes the original Rust source code. Please don’t be too harsh on it—the goal wasn’t to achieve 100% perfect accuracy, but it matches the results of a standard calculator for smaller numbers.
big-math-wasm.zip (68.0 KB)
