Simon Willison: TILs on webassembly

Atom feed for webassembly

webassembly Compiling to WASM with llvm on macOS - 2022-03-28

howto-wasm-minimal by Zalka Ernő (my fork here) is a neat demo of a minimal WASM module. It uses C++ to define functions for simple image manipulation including blurring an image, compiles it to WASM using llvm/clang++, then uses JavaScript to run those functions against an image loaded into a <canvas> element. …