Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
- Clone this gist
npm install
npm start
- Open
http://localhost:8080
- Look at console
#define _USE_MATH_DEFINES | |
#include <math.h> | |
struct Point | |
{ | |
double x, y; | |
}; | |
// A class that contains a 2D angle as a pair of sine + cosine values. | |
// Sometimes, this approach saves substantial CPU time that would be wasted running these trigonometry functions. |
Minimal example making webpack and wasm/Emscripten work together.
Build instructions:
npm install
npm start
http://localhost:8080
This guide was adapted from https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278#running-ubuntu-server-for-arm64