WASM and Emscripten

A Collection of notes

Installation and Setups

Getting Visual Studio Code setup for Emscripten.

Notes on C++ as it relates directly to the DSP code from Ahmet

template Image

The Image struct is interesting in the example.cc, where we use a templated struct. An "instance" of the struct is doesn't have a constructor like a class would. So a declaration of a variable also includes it's type Image≺int, width, height≻ scope; creates a new image struct with it's type width and height named "scope".

printf

more of an emscripten note:
In printf always add \n at the end of the string. If not then the printf will not get printed to the js console. I guess there's something that needs to get "flushed"