Simple C++ function which can be used in browser.
Goal of project is to learn how to add WebAssembly to website. t uses a very simple C++ function (which takes a number as an argument and returns its square) in a wasm module. This function can be used from JS file. WebAssemby file was generated with WasmFiddle
- [WasmFiddle] (https://wasdk.github.io/WasmFiddle/)
- WasmExplorer
- Bootstrap
- Count square using WebAssemby module.
How to run this project.
-
Clone this repo
-
To run, go to project folder and run Python 2: python -m SimpleHTTPServer 8000
Python 3: python -m http.server 8000\ -
visit - http://localhost:8000/
Project is finished.
MIT