Our guide now has a walk through on how to store WASM modules in Fission’s webnative file storage.
Thank you to @bgins for putting this together!
We should probably take a short detour and give some background on Web Assembly:
Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications.
What this means is that you can program in a number of different programming languages that will then compile down to wasm. Yes, you can write C or Rust code, and then have that run in the browser. The webassembly.org developer’s guide has starting points for a number of different languages.
An introduction to storing WASM modules in web native storage
The guide has the full walk through with code explanations. It uses the C programming language to make a very simple addition function that is compiled to Web Assembly so it can run in the browser.
You don’t need to know C to try this out
Fission and Web Assembly
We plan to do more work with Web Assembly and make it a first class component of running apps on Fission. We will likely use Rust as the language we build Fission Web Assembly components in. With powerful edge devices, running computation in the browser makes a lot of sense, especially when paired with Fission’s authentication + storage for users and apps, like an open source iCloud.
- Guide https://guide.fission.codes/webassembly/storing-webassembly-modules
- Source code https://github.com/bgins/fission-stored-wasm-example
- Other posts tagged #wasm
- @expede’s primer A Quick Wasm Primer