This repo explores building C programs using specific features to WASM using Emscripten, Asyncify, and JSPI.
Explorations related to JSPI support for WordPress Playground:
WordPress/wordpress-playground#134
Explore specific directories and read the code to learn more. Each directory has a Makefile and a few build targets. Most examples can be build and ran as below.
Remember to install Node.js v22 as JSPI is only supported there as of April 26th, 2024
make build_node
make run_node
Try in Chrome with #enable-experimental-webassembly-jspi flag turned on chrome://flags
make build_web
make run_web